Skip to content

Conversation

@FlynnOConnell
Copy link
Collaborator

@FlynnOConnell FlynnOConnell commented Dec 14, 2025

Recommended by @raghavchhetri

Expand / collapse button

Recording.2025-12-13.182946.mp4

@github-actions
Copy link

github-actions bot commented Dec 14, 2025

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/collapse-gui

@FlynnOConnell
Copy link
Collaborator Author

image

@FlynnOConnell
Copy link
Collaborator Author

Full height

collapse_full.mp4

@FlynnOConnell
Copy link
Collaborator Author

FlynnOConnell commented Dec 14, 2025

Pretty easy to add a keybind to toggle visibility,

@figure.renderer.add_event_handler("key_down")
def toggle_collapse(ev):
    if ev.key == " ":
        right_gui = figure.guis["right"]
        if right_gui is not None:
            right_gui.collapsed = not right_gui.collapsed
            figure._fpl_reset_layout()
collapse_full_keybind.mp4

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

Successfully merging this pull request may close these issues.

3 participants