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 filesBrowse files
committed
FIX cleaned up the frontpage examples a bit
1 parent 18a1503 commit 87c08b5
Copy full SHA for 87c08b5

File tree

Expand file treeCollapse file tree

6 files changed

+2
-5
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+2
-5
lines changed

‎doc/_static/contour_frontpage.png

Copy file name to clipboard
-1.3 KB
Loading

‎doc/_static/histogram_frontpage.png

Copy file name to clipboard
-1.47 KB
Loading

‎doc/_static/membrane_frontpage.png

Copy file name to clipboard
-2.27 KB
Loading

‎doc/_static/surface3d_frontpage.png

Copy file name to clipboard
-4.61 KB
Loading

‎examples/frontpage/plot_contour.py

Copy file name to clipboardExpand all lines: examples/frontpage/plot_contour.py
+1-4Lines 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

Copy file name to clipboardExpand all lines: examples/frontpage/plot_membrane.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.