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

Skip to content

Commit d2e9603

Browse files
Use classic style in old what's new entries (#25623)
* whatsnew 0.99 rendered with classic style * whatsnew 1.1 rendered with classic style * whatsnew 1.2 rendered with classic style
1 parent 584cda0 commit d2e9603

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

doc/users/prev_whats_new/whats_new_0.99.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ installs). See :ref:`mplot3d-examples-index` and
3333
from matplotlib import cm
3434
from mpl_toolkits.mplot3d import Axes3D
3535

36+
37+
plt.style.use('classic')
38+
3639
X = np.arange(-5, 5, 0.25)
3740
Y = np.arange(-5, 5, 0.25)
3841
X, Y = np.meshgrid(X, Y)
@@ -92,6 +95,9 @@ new mpl installs. See :ref:`axes_grid1-examples-index`,
9295

9396

9497
fig = plt.figure()
98+
99+
plt.style.use('classic')
100+
95101
ax = RGBAxes(fig, [0.1, 0.1, 0.8, 0.8])
96102

97103
r, g, b = get_rgb()
@@ -139,6 +145,8 @@ well as "detach" the spine to offset it away from the data. See
139145

140146
fig = plt.figure()
141147

148+
plt.style.use('classic')
149+
142150
x = np.linspace(0, 2*np.pi, 100)
143151
y = 2*np.sin(x)
144152

doc/users/prev_whats_new/whats_new_1.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ to address the most common layout issues.
5858

5959
.. plot::
6060

61+
plt.style.use('classic')
62+
6163
plt.rcParams['savefig.facecolor'] = "0.8"
6264
plt.rcParams['figure.figsize'] = 4, 3
6365

doc/users/prev_whats_new/whats_new_1.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ minimum and maximum colorbar extensions.
7878

7979
import matplotlib.pyplot as plt
8080
import numpy as np
81+
82+
plt.style.use('classic')
8183

8284
x = y = np.linspace(0., 2*np.pi, 100)
8385
X, Y = np.meshgrid(x, y)

0 commit comments

Comments
 (0)