Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create figure templates #30

Open
joshuawe opened this issue Jan 13, 2024 · 0 comments
Open

Create figure templates #30

joshuawe opened this issue Jan 13, 2024 · 0 comments
Assignees

Comments

@joshuawe
Copy link
Owner

To make life easier and have a consistent style, we should introduce figure templates. These handle most of the layout and provide axes for which a metric function can perform its plotting on without worrying about the layout again and again.

This is simpler for singular plots compared to a figure with multiple plots.
So we should introduce classes as

class SinglePlotFigure():
  ...


class MultiplotFigure:
  def __init__():

  def get_axis():

  def tight_layout():

  def draw_figure():
    # All commands/settings that are required to finalize/draw the figure

For the multiple plots template the init function would require

MultiPlotFigure.__init__(num_plots: int, fig_title: bool, ...)

And then to get the axis when plotting multiple metrics:

for ax in MultiPlotFigure.get_axis():
  continue
@joshuawe joshuawe self-assigned this Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant