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

Skip to content

Use classic style in old what's new entries #25623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 14, 2023
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
8 changes: 8 additions & 0 deletions doc/users/prev_whats_new/whats_new_0.99.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ installs). See :ref:`mplot3d-examples-index` and
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D


plt.style.use('classic')

X = np.arange(-5, 5, 0.25)
Y = np.arange(-5, 5, 0.25)
X, Y = np.meshgrid(X, Y)
Expand Down Expand Up @@ -92,6 +95,9 @@ new mpl installs. See :ref:`axes_grid1-examples-index`,


fig = plt.figure()

plt.style.use('classic')

ax = RGBAxes(fig, [0.1, 0.1, 0.8, 0.8])

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

fig = plt.figure()

plt.style.use('classic')

x = np.linspace(0, 2*np.pi, 100)
y = 2*np.sin(x)

Expand Down
2 changes: 2 additions & 0 deletions doc/users/prev_whats_new/whats_new_1.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ to address the most common layout issues.

.. plot::

plt.style.use('classic')

plt.rcParams['savefig.facecolor'] = "0.8"
plt.rcParams['figure.figsize'] = 4, 3

Expand Down
2 changes: 2 additions & 0 deletions doc/users/prev_whats_new/whats_new_1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ minimum and maximum colorbar extensions.

import matplotlib.pyplot as plt
import numpy as np

plt.style.use('classic')

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