Plotting#
Constants#
Some constants (colors, conversion factors, …) are provided at Constants.
Manipulate Figures and Axes#
|
Optimize whitespace in the figure. |
|
Add labels to all suplots in fig. |
|
Set physical size of ax. |
|
Set horizontal position of ax relative to reference_ax. |
|
Set horizontal position of ax relative to reference_ax. |
|
Get distance between columns of axes in inches. |
|
Get distance between rows of axes in inches. |
|
Set the minimum distance between columns. |
|
Set the minimum distance between rows. |
|
Get all axes from fig and sort them into a 2D grid. |
|
Get margins of the figure. |
|
Get the bounding box of ax in inches, excluding labels, titles, etc. |
|
Get bounding box of ax including labels in inches. |
|
Get left, right, top, bottom margins of ax. |
|
Get the renderer of the fig. |
|
Format polar axes to be squared. |
|
Add a visual guideline to polar plots based on Ylm fits. |
|
Set the color cycle in plots. |
|
Sets a theme me likes. |
|
Enable a latex backend for rendering figures. |
Colorbars#
|
Add a colorbar to axes. |
|
Re-align colorbars to their parent axes. |
Clear reference to all colorbars that were created by |
|
|
Return a colormap within (x,y) range |
Plotting#
|
Plot 1D dataset(s). |
|
Plot 2D data. |
|
Return a tuple to create a dotted line that fits perfectly into a legend. |
|
Return a tuple to create a dash-dotted line that fits perfectly into a legend. |
|
Return a tuple to create a dashed line that fits perfectly into a legend. |
|
Plot text with matplotlib surrounded by a box using LaTeX commands. |
|
Store an image with its extents, ready to be plotted with imshow. |
|
Store 2D data such that it can be plotted with pcolormesh |
Miscellaneous#
|
Wrapper for things that are at the left, right, top, bottom edge of something (e.g., the margins of a |
|
|