Skip to content

Allow users to choose plotting library #855

@NicolaCourtier

Description

@NicolaCourtier

Feature description

Allow users to choose between plotly and matplotlib by separating the creation of plotting data and options from the creation of the plot.

Motivation

To enable users to create plots in their preferred style and suitable for publication, e.g. using the scienceplots package.

Possible implementation

It may be possible to extend our StandardPlot for different plotting libraries, or we could change the plotting class structure to make it more flexible.

Additional context

The Voronoi functions are based on the pints.plot.surface. For comparison, Matplotlib has a voronoi_plot_2d function.

Where possible, we would like to follow similar design principles to PyBaMM. For example, our result.plot_convergence allows users to view their results in a similar way to PyBaMM's solution.quick_plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions