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 5db8155

Browse filesBrowse files
committed
pep8 changes
1 parent e35dc89 commit 5db8155
Copy full SHA for 5db8155

File tree

Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed

‎examples/pylab_examples/newscalarformatter_demo.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/newscalarformatter_demo.py
+11-11Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import numpy as np
33
from matplotlib.ticker import OldScalarFormatter, ScalarFormatter
44

5-
## Example 1 ##
5+
# Example 1
66
x = np.arange(0, 1, .01)
77
fig, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2, figsize=(6, 6))
88
fig.text(0.5, 0.975, 'The old formatter',
9-
horizontalalignment='center', verticalalignment='top')
9+
horizontalalignment='center', verticalalignment='top')
1010
ax1.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5)
1111
ax1.xaxis.set_major_formatter(OldScalarFormatter())
1212
ax1.yaxis.set_major_formatter(OldScalarFormatter())
@@ -24,12 +24,12 @@
2424
ax4.xaxis.set_major_formatter(OldScalarFormatter())
2525
ax4.yaxis.set_major_formatter(OldScalarFormatter())
2626

27-
## Example 2 ##
27+
# Example 2
2828
x = np.arange(0, 1, .01)
2929
fig, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2, figsize=(6, 6))
3030
fig.text(0.5, 0.975, 'The new formatter, default settings',
31-
horizontalalignment='center',
32-
verticalalignment='top')
31+
horizontalalignment='center',
32+
verticalalignment='top')
3333

3434
ax1.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5)
3535
ax1.xaxis.set_major_formatter(ScalarFormatter())
@@ -47,12 +47,12 @@
4747
ax4.xaxis.set_major_formatter(ScalarFormatter())
4848
ax4.yaxis.set_major_formatter(ScalarFormatter())
4949

50-
## Example 3 ##
50+
# Example 3
5151
x = np.arange(0, 1, .01)
5252
fig, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2, figsize=(6, 6))
5353
fig.text(0.5, 0.975, 'The new formatter, no numerical offset',
54-
horizontalalignment='center',
55-
verticalalignment='top')
54+
horizontalalignment='center',
55+
verticalalignment='top')
5656

5757
ax1.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5)
5858
ax1.xaxis.set_major_formatter(ScalarFormatter(useOffset=False))
@@ -70,12 +70,12 @@
7070
ax4.xaxis.set_major_formatter(ScalarFormatter(useOffset=False))
7171
ax4.yaxis.set_major_formatter(ScalarFormatter(useOffset=False))
7272

73-
## Example 4 ##
73+
# Example 4
7474
x = np.arange(0, 1, .01)
7575
fig, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2, figsize=(6, 6))
7676
fig.text(0.5, 0.975, 'The new formatter, with mathtext',
77-
horizontalalignment='center',
78-
verticalalignment='top')
77+
horizontalalignment='center',
78+
verticalalignment='top')
7979

8080
ax1.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5)
8181
ax1.xaxis.set_major_formatter(ScalarFormatter(useMathText=True))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.