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

Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 23 additions & 1 deletion doc/api/next_api_changes/2019-07-18-SL.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
Reduced default value of :rc:`axes.formatter.limits`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Changed the default value of :rc:`axes.formatter.limits` from -7, 7 to -5, 6 for better readability.
Changed the default value of :rc:`axes.formatter.limits` from -7, 7 to
-5, 6 for better readability.

.. plot::

import matplotlib.pyplot as plt
import numpy as np

fig, (ax_old, ax_new) = plt.subplots(1, 2, constrained_layout=True)

ax_new.set_title('new values (-5, 6)')
ax_old.set_title('old values (-7, 7)')

x = np.logspace(-8, 8, 1024)
y = 1e-5 * np.exp(-x / 1e5) + 1e-6

ax_old.xaxis.get_major_formatter().set_powerlimits((-7, 7))
ax_old.yaxis.get_major_formatter().set_powerlimits((-7, 7))

for ax in [ax_new, ax_old]:
ax.plot(x, y)
ax.set_xlim(0, 1e6)
ax.set_ylim(1e-6, 1e-5)