Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 262ccba

Browse files
Update figure_size_units.py
Remove old reference to 72 DPI
1 parent 4052a10 commit 262ccba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

galleries/examples/subplots_axes_and_figures/figure_size_units.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,12 @@
5757
# tedious for quick iterations.
5858
#
5959
# Because of the default ``rcParams['figure.dpi'] = 100``, one can mentally
60-
# divide the needed pixel value by 100 [#]_:
60+
# divide the needed pixel value by 100:
6161
#
6262
plt.subplots(figsize=(6, 2))
6363
plt.text(0.5, 0.5, '600px x 200px', **text_kwargs)
6464
plt.show()
6565

66-
# %%
67-
# .. [#] Unfortunately, this does not work well for the ``matplotlib inline``
68-
# backend in Jupyter because that backend uses a different default of
69-
# ``rcParams['figure.dpi'] = 72``. Additionally, it saves the figure
70-
# with ``bbox_inches='tight'``, which crops the figure and makes the
71-
# actual size unpredictable.
72-
7366
# %%
7467
#
7568
# .. admonition:: References

0 commit comments

Comments
 (0)