Skip to content

Commit

Permalink
Add display bar and option to save as svg
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuboudreau committed Feb 13, 2024
1 parent 9fb0c94 commit 3056dda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1272,13 +1272,13 @@
"from plotly.offline import init_notebook_mode, iplot, plot\n",
"config={\n",
" 'showLink': False,\n",
" 'displayModeBar': False,\n",
" 'displayModeBar': True,\n",
" 'toImageButtonOptions': {\n",
" 'format': 'png', # one of png, svg, jpeg, webp\n",
" 'format': 'svg', # one of png, svg, jpeg, webp\n",
" 'filename': 'custom_image',\n",
" 'height': 2500,\n",
" 'width': 500,\n",
" 'scale': 2 # Multiply title/legend/axis/canvas sizes by this factor\n",
" 'width': 1100,\n",
" 'scale': 1.5 # Multiply title/legend/axis/canvas sizes by this factor\n",
" }\n",
" }\n",
"\n",
Expand Down Expand Up @@ -1499,8 +1499,8 @@
"\n",
"fig.add_annotation(\n",
" dict(\n",
" x=-0.07,\n",
" y=-0.04,\n",
" x=-0.06,\n",
" y=-0.03,\n",
" showarrow=False,\n",
" text='<b>A</b>',\n",
" font=dict(\n",
Expand All @@ -1513,7 +1513,7 @@
"fig.add_annotation(\n",
" dict(\n",
" x=0.5,\n",
" y=-0.04,\n",
" y=-0.03,\n",
" showarrow=False,\n",
" text='<b>B</b>',\n",
" font=dict(\n",
Expand Down

0 comments on commit 3056dda

Please sign in to comment.