Skip to content

Commit

Permalink
Merge pull request #83 from Carifio24/default-viewer-dimensions
Browse files Browse the repository at this point in the history
Add default viewer dimensions for Plotly-based viewers
  • Loading branch information
Carifio24 authored Jul 26, 2024
2 parents c6c3150 + 8cab99f commit a7eff74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue_plotly/common/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def dimensions(viewer):
elif isinstance(viewer, BqplotBaseView):
return 1200, 600 # TODO: What to do here?
else: # For now, this means a Plotly-based viewer
return viewer.figure.layout.width, viewer.figure.layout.height
return viewer.figure.layout.width or 600, viewer.figure.layout.height or 400


def layers_to_export(viewer):
Expand Down

0 comments on commit a7eff74

Please sign in to comment.