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

Add a system for video layout customisation #1

Open
garymooney opened this issue Jan 10, 2023 · 0 comments
Open

Add a system for video layout customisation #1

garymooney opened this issue Jan 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@garymooney
Copy link
Owner

It would be good to have a system that allows easy customisation of video output. A grid could be used to specify in what tiles do certain bits of information take up in the video frame, similar to matplotlib's subplot_mosaic method. For example, subplot_mosaic is already used for subplotting layouts in the video generation of this project with code that looks like:

grid_spec = {
    "bottom": 0.08,
    "top": 0.95,
    "left": 0.07,
    "right": 0.99,
    "wspace": 0.05,
    "hspace": 0.09,
}
ax_dict = fig.subplot_mosaic(
    [
        ["pure_state_2", "main", "main", "pure_state_3"],
        ["pure_state_4", "pure_state_5", "pure_state_6", "pure_state_7"],
    ],
    gridspec_kw = grid_spec,
)
plots_order = ["main", "pure_state_2", "pure_state_3", "pure_state_4", "pure_state_5", "pure_state_6", "pure_state_7"]

Custom colour layouts would also be useful.

A class that handles layout and customisation could work well. Templates of premade layouts could be chosen by the user by calling a method that instanciates the class object and fills it out with layout information, or by instantiating a specific derived class.

@garymooney garymooney added the enhancement New feature or request label Jan 10, 2023
@garymooney garymooney changed the title We need a system for video layout customisation Add a system for video layout customisation Jan 13, 2023
@garymooney garymooney mentioned this issue Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant