8000 FIX cleaned up the frontpage examples a bit · matplotlib/matplotlib@87c08b5 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87c08b5

Browse files
committed
FIX cleaned up the frontpage examples a bit
1 parent 18a1503 commit 87c08b5

File tree

6 files changed

+2
-5
lines changed

6 files changed

+2
-5
lines changed

doc/_static/contour_frontpage.png

-1.3 KB
Loading

doc/_static/histogram_frontpage.png

-1.47 KB
Loading

doc/_static/membrane_frontpage.png

-2.27 KB
Loading

doc/_static/surface3d_frontpage.png

-4.61 KB
Loading

examples/frontpage/plot_contour.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
import numpy as np
1111
from matplotlib import mlab, cm
1212

13-
# Default delta is large because that makes it fast, and it illustrates
14-
# the correct registration between image and contours.
15-
delta = 0.5
16-
1713
extent = (-3, 3, -3, 3)
1814

15+
delta = 0.5
1916
x = np.arange(-3.0, 4.001, delta)
2017
y = np.arange(-4.0, 3.001, delta)
2118
X, Y = np.meshgrid(x, y)

examples/frontpage/plot_membrane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
datafile = cbook.get_sample_data('membrane.dat', asfileobj=False)
16-
x = np.fromstring(open(datafile, 'rb').read(), np.float32)
16+
x = np.fromfile(datafile, np.float32)
1717
# 0.0005 is the sample interval
1818

1919
fig, ax = plt.subplots(figsize=(1.62, 1.38))

0 commit comments

Comments
 (0)
0