sc_plotting#
Extensions to Matplotlib, including 3D plotting and plot customization.
- Highlights:
sc.plot3d()
: easy way to render 3D plotssc.boxoff()
: turn off top and right parts of the axes boxsc.commaticks()
: convert labels from “10000” and “1e6” to “10,000” and “1,000,0000”sc.SIticks()
: convert labels from “10000” and “1e6” to “10k” and “1m”sc.maximize()
: make the figure fill the whole screensc.savemovie()
: save a sequence of figures as an MP4 or other moviesc.fonts()
: list available fonts or add new ones
Classes
An adaptation of Matplotlib's ConciseDateFormatter with a slightly different approach to formatting dates. |
|
A class for storing and saving a Matplotlib animation. |
Functions
Shortcut for creating a figure with 3D axes. |
|
Create a 3D axis to plot in. |
|
Plot 3D data as a line |
|
Plot 3D data as a scatter |
|
Plot 2D or 3D data as a 3D surface |
|
Plot 2D data as 3D bars |
|
Create a stacked bar chart. |
|
Removes the top and right borders ("spines") of a plot. |
|
A small script to determine how the y limits should be set. Looks at all data (a list of arrays) and computes the lower limit to use, e.g.::. |
|
Alias for |
|
Alias for |
|
Use commas in formatting the y axis of a figure (e.g., 34,000 instead of 34000). |
|
Apply SI tick formatting to one axis of a figure (e.g., 34k instead of 34000) |
|
Get the number of rows and columns needed to plot N figures. |
|
Get the number of rows and columns needed to plot N figures. |
|
Alias to both |
|
Maximize the current (or supplied) figure. |
|
List available fonts, or add new ones. |
|
Format the x-axis to use a given date formatter. |
|
Format a numeric x-axis to use dates. |
|
Save a figure, including metadata |
|
Save the requested plots to disk. |
|
Load a plot from a file and reanimate it. |
|
The emptiest figure possible |
|
Allows the legend of a figure to be rendered in a separate window instead |
|
Create a legend with a specified order, or change the order of an existing legend. |
|
Save a set of Matplotlib artists as a movie. |