Package plottools

Simplify production of publication-quality figures based on matplotlib.

Expand source code
"""
Simplify production of publication-quality figures based on matplotlib.
"""

import sys

# avoid double inclusion of plottools modules if called as modules,
# e.g. python -m plottools.text`:
if not '-m' in sys.argv:

    from .version import __version__

# somehow pdoc3 gets confused by this:
#__all__ = ['figure',
#           'colors',
#           'spines',
#           'ticks',
#           'labels',
#           'axes',
#           'text',
#           'arrows',
#           'insets',
#           'scalebars',
#           'significance',
#           'styles']

Sub-modules

plottools.align

Align axes labels …

plottools.arrows

Drawing arrows …

plottools.aspect

Adapting plots to aspect ratio of axes …

plottools.axes

Setting axes appearance …

plottools.circuits

Electrical circuits …

plottools.colors

Color palettes and tools for manipulating colors …

plottools.common

Reduce common axis labels …

plottools.figure

Size and file names of a figure …

plottools.grid

Setting grid appearance …

plottools.insets

Insets made easy …

plottools.labels

Annotate axis with label and unit …

plottools.latex

Translate LaTeX texts …

plottools.legend

Enhance legend text …

plottools.neurons

Draw sketches of neurons …

plottools.params

Functions setting default rcParams settings for all modules …

plottools.plottools

Import all plottool modules and install their functions in matplotlib …

plottools.rcsetup

Additional validators for matplotlib.rcsetup

plottools.scalebars

Labeled scale bars …

plottools.significance

Indicating statsitical significance …

plottools.spines

Modify the appearance of spines …

plottools.styles

Plotting styles …

plottools.subplots

Enhanced subplots with margins …

plottools.tag

Tag axes with a label …

plottools.text

Enhance textual annotations …

plottools.ticks

Setting tick locations and formats …

plottools.version

Version of plottools and other packages …