Posts Tagged ‘Python’

Creating a custom bar plot in matplotlib

Saturday, November 3rd, 2007

Bar plots are one of the simplest kinds of plots, but for some reason in many programs it’s difficult to get the labels you want, correct error bars, and control over every aspect of the plot. Here’s how to create a custom bar plot using the Python plotting module matplotlib. (more…)

Modules in Python

Saturday, November 3rd, 2007

What is a Python module?

A module in Python is a collection of code that can be used in other programs. You can think of a module as being like a toolbox, where another program can import all or just a few of the tools found in the module. Here are some reasons to use modules, and some examples of their use.
(more…)