| 2 | | plotting.py |
|---|
| 3 | | |
|---|
| 4 | | Routines and classes that make plotting and image processing |
|---|
| 5 | | with Matplotlib and the Python Imaging Library (PIL) easier. |
|---|
| | 2 | NeuroTools.plotting |
|---|
| | 3 | =================== |
|---|
| | 4 | |
|---|
| | 5 | This module contains a collection of tools for plotting and image processing that |
|---|
| | 6 | shall facilitate the generation and handling of NeuroTools data visualizations. |
|---|
| | 7 | It utilizes the Matplotlib and the Python Imaging Library (PIL) packages. |
|---|
| | 8 | |
|---|
| | 9 | |
|---|
| | 10 | Classes |
|---|
| | 11 | ------- |
|---|
| | 12 | |
|---|
| | 13 | SimpleMultiplot - object that creates and handles a figure consisting of multiple panels, all with the same datatype and the same x-range. |
|---|
| | 14 | |
|---|
| | 15 | |
|---|
| | 16 | Functions |
|---|
| | 17 | --------- |
|---|
| | 18 | |
|---|
| | 19 | get_display - returns a pylab object with a plot() function to draw the plots. |
|---|
| | 20 | progress_bar - prints a progress bar to stdout, filled to the given ratio. |
|---|
| | 21 | pylab_params - returns a dictionary with a set of parameters that help to nicely format figures by updating the pylab run command parameters dictionary 'pylab.rcParams'. |
|---|
| | 22 | set_axis_limits - defines the axis limits in a plot. |
|---|
| | 23 | set_labels - defines the axis labels of a plot. |
|---|
| | 24 | set_pylab_params - updates a set of parameters within the the pylab run command parameters dictionary 'pylab.rcParams' in order to achieve nicely formatted figures. |
|---|
| | 25 | save_2D_image - saves a 2D numpy array of gray shades between 0 and 1 to a PNG file. |
|---|
| | 26 | save_2D_movie - saves a list of 2D numpy arrays of gray shades between 0 and 1 to a zipped tree of PNG files. |
|---|