pymatgen.apps.battery.plotter module¶
-
class
VoltageProfilePlotter(xaxis='capacity')[source]¶ Bases:
objectA plotter to make voltage profile plots for batteries.
Parameters: xaxis – The quantity to use as the xaxis. Can be either capacity (the default), or the frac_x. -
add_electrode(electrode, label=None)[source]¶ Add an electrode to the plot.
Parameters: - electrode – An electrode. All electrodes satisfying the AbstractElectrode interface should work.
- label – A label for the electrode. If None, defaults to a counting system, i.e. ‘Electrode 1’, ‘Electrode 2’, …
-
get_plot(width=8, height=8)[source]¶ Returns a plot object.
Parameters: - width – Width of the plot. Defaults to 8 in.
- height – Height of the plot. Defaults to 6 in.
Returns: A matplotlib plot object.
-