plotprofile API¶
Submodules¶
plotprofile.cli module¶
Command line entry point: plot a reaction profile from JSON files.
plotprofile.plot module¶
Reaction profile plotting.
- class plotprofile.plot.ReactionProfilePlotter(style='default', **kwargs)[source]¶
Bases:
objectDraws reaction profiles. Style keys come from styles.json, overridden by kwargs.
- plot(energy_data, filename=None, annotations=None, point_labels=None, file_format='png', dpi=600, include_keys=None, exclude_from_legend=None, secondary=None, x=None)[source]¶
Draw a profile from a dict of named series, a list of lists, or a single list.
x gives the series a real reaction coordinate instead of the point index. Annotations are given in indices either way.
Saves to filename.`file_format` if a filename is given. Returns None, so that Jupyter’s inline backend does not display the figure twice.
- plotprofile.plot.cubic_bezier_points(p0, p1, p2, p3, num=500)[source]¶
Sample a cubic bezier defined by control points p0-p3.
- plotprofile.plot.desaturate_colour(color, factor=1.2)[source]¶
Desaturate a colour, for the fill under a curve.