FFFF add kwarg for axes visibility by clewis7 · Pull Request #891 · fastplotlib/fastplotlib · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions fastplotlib/layouts/_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ def show(
self,
autoscale: bool = True,
maintain_aspect: bool = None,
axes_visible: bool = True,
sidecar: bool = False,
sidecar_kwargs: dict = None,
):
Expand All @@ -606,6 +607,9 @@ def show(
maintain_aspect: bool, default ``True``
maintain aspect ratio

axes_visible: bool, default ``True``
show axes

sidecar: bool, default ``True``
display plot in a ``jupyterlab-sidecar``, only in jupyter

Expand Down Expand Up @@ -644,6 +648,11 @@ def show(
_maintain_aspect = maintain_aspect
subplot.auto_scale(maintain_aspect=maintain_aspect)

# set axes visibility if False
if not axes_visible:
for subplot in self:
subplot.axes.visible = False

# parse based on canvas type
if self.canvas.__class__.__name__ == "JupyterRenderCanvas":
if sidecar:
Expand Down
Loading
0