diff --git a/doc/api/next_api_changes/2019-07-18-SL.rst b/doc/api/next_api_changes/2019-07-18-SL.rst index f9038e290475..659e63b47033 100644 --- a/doc/api/next_api_changes/2019-07-18-SL.rst +++ b/doc/api/next_api_changes/2019-07-18-SL.rst @@ -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) diff --git a/doc/api/next_api_changes/2019-08-08-TH b/doc/api/next_api_changes/2019-08-08-TH.rst similarity index 100% rename from doc/api/next_api_changes/2019-08-08-TH rename to doc/api/next_api_changes/2019-08-08-TH.rst