Skip to content

Commit

Permalink
set margins on all plotly templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Nov 1, 2023
1 parent 0815ff6 commit ba8de16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources/jupyter/lang/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
pio.renderers.default = "notebook_connected"
else:
pio.renderers.default = "notebook"
pio.templates['plotly'].layout.margin = dict(t=30,r=0,b=0,l=0)
for template in pio.templates.keys():
pio.templates[template].layout.margin = dict(t=30,r=0,b=0,l=0)
except Exception:
pass

Expand Down

0 comments on commit ba8de16

Please sign in to comment.