Skip to content

Add function for "concatenating" figures #203

Open
@lukelbd

Description

@lukelbd

Problem

It is quite common to want separate figure-files for individual subplots along with a single larger figure containing the exact same subplots in a grid. In matplotlib, there is currently no good way to do this. This stackoverflow answer suggests defining separate functions that accept an axes and do all the plotting, but a more intuitive way would be nice:

Solution

At some point I would like to add a pplt.concatenate_figs function used for "concatenating" smaller figures (usually, but not necessarily, containing just one subplot) into larger figures with multiple subplots. Users should be able to pass lists of axes and have proplot concatenate them along rows or columns with e.g. pplt.concatenate_figs(..., rows=True|False), or pass lists of lists of subplots in which case they are concatenated according to this 2D layout.

This shouldn't be very difficult to code, but I might need to wait for #110 to finish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions