Skip to content

Commit 47fbcd5

Browse files
committed
comments containing code may not start with a space after the pound
Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
1 parent 6636c30 commit 47fbcd5

12 files changed

+21
-21
lines changed

examples/animation/basic_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def update_line(num, data, line):
1717
plt.title('test')
1818
line_ani = animation.FuncAnimation(fig1, update_line, 25, fargs=(data, l),
1919
interval=50, blit=True)
20-
# line_ani.save('lines.mp4')
20+
#line_ani.save('lines.mp4')
2121

2222
fig2 = plt.figure()
2323

examples/animation/dynamic_image2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def f(x, y):
2727
ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True,
2828
repeat_delay=1000)
2929

30-
# ani.save('dynamic_images.mp4')
30+
#ani.save('dynamic_images.mp4')
3131

3232

3333
plt.show()

examples/animation/subplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ def _init_draw(self):
9494
l.set_data([], [])
9595

9696
ani = SubplotAnimation()
97-
# ani.save('test_sub.mp4')
97+
#ani.save('test_sub.mp4')
9898
plt.show()

examples/api/custom_projection_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _init_axis(self):
4141
self.yaxis = maxis.YAxis(self)
4242
# Do not register xaxis or yaxis with spines -- as done in
4343
# Axes._init_axis() -- until HammerAxes.xaxis.cla() works.
44-
# self.spines['hammer'].register_axis(self.yaxis)
44+
#self.spines['hammer'].register_axis(self.yaxis)
4545
self._update_transScale()
4646

4747
def cla(self):

examples/api/demo_affine_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ def imshow_affine(ax, z, *kl, **kwargs):
6262
im2._image_skew_coordinate = (3, -2)
6363

6464
plt.show()
65-
# plt.savefig("demo_affine_image")
65+
#plt.savefig("demo_affine_image")

examples/api/logo2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
axalpha = 0.05
16-
# figcolor = '#EFEFEF'
16+
#figcolor = '#EFEFEF'
1717
figcolor = 'white'
1818
dpi = 80
1919
fig = plt.figure(figsize=(6, 1.1), dpi=dpi)
@@ -37,7 +37,7 @@ def add_math_background():
3737
(0.35, 0.9), 20))
3838
text.append((r"$\int_{-\infty}^\infty e^{-x^2}dx=\sqrt{\pi}$",
3939
(0.15, 0.3), 25))
40-
# text.append((r"$E = mc^2 = \sqrt{{m_0}^2c^4 + p^2c^2}$",
40+
#text.append((r"$E = mc^2 = \sqrt{{m_0}^2c^4 + p^2c^2}$",
4141
# (0.7, 0.42), 30))
4242
text.append((r"$F_G = G\frac{m_1m_2}{r^2}$",
4343
(0.85, 0.7), 30))

examples/axes_grid/demo_axes_grid2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def add_inner_title(ax, title, loc, size=None, **kwargs):
6060
ax.cax.toggle_label(True)
6161
#axis = ax.cax.axis[ax.cax.orientation]
6262
#axis.label.set_text("counts s$^{-1}$")
63-
# axis.label.set_size(10)
64-
# axis.major_ticklabels.set_size(6)
63+
#axis.label.set_size(10)
64+
#axis.major_ticklabels.set_size(6)
6565

6666
# changing the colorbar ticks
6767
grid[1].cax.set_xticks([-1, 0, 1])

examples/axes_grid/demo_axes_rgb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def make_cube(r, g, b):
4242
def demo_rgb():
4343
fig, ax = plt.subplots()
4444
ax_r, ax_g, ax_b = make_rgb_axes(ax, pad=0.02)
45-
# fig.add_axes(ax_r)
46-
# fig.add_axes(ax_g)
47-
# fig.add_axes(ax_b)
45+
#fig.add_axes(ax_r)
46+
#fig.add_axes(ax_g)
47+
#fig.add_axes(ax_b)
4848

4949
r, g, b = get_rgb()
5050
im_r, im_g, im_b, im_rgb = make_cube(r, g, b)
@@ -58,8 +58,8 @@ def demo_rgb():
5858
def demo_rgb2():
5959
fig = plt.figure(2)
6060
ax = RGBAxes(fig, [0.1, 0.1, 0.8, 0.8], pad=0.0)
61-
# fig.add_axes(ax)
62-
# ax.add_RGB_to_figure()
61+
#fig.add_axes(ax)
62+
#ax.add_RGB_to_figure()
6363

6464
r, g, b = get_rgb()
6565
kwargs = dict(origin="lower", interpolation="nearest")

examples/axes_grid/demo_floating_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def setup_axes3(fig, rect):
130130
ax1, aux_ax2 = setup_axes1(fig, 131)
131131
aux_ax2.bar([0, 1, 2, 3], [3, 2, 1, 3])
132132

133-
# theta = np.random.rand(10) #*.5*np.pi
134-
# radius = np.random.rand(10) #+1.
135-
# aux_ax1.scatter(theta, radius)
133+
#theta = np.random.rand(10) #*.5*np.pi
134+
#radius = np.random.rand(10) #+1.
135+
#aux_ax1.scatter(theta, radius)
136136

137137
ax2, aux_ax2 = setup_axes2(fig, 132)
138138

examples/axes_grid/demo_parasite_axes2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
plt.draw()
4343
plt.show()
4444

45-
# plt.savefig("Test")
45+
#plt.savefig("Test")

examples/axes_grid/make_room_for_ylabel_using_axesgrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def ex1():
1010
plt.figure(1)
1111
ax = plt.axes([0, 0, 1, 1])
12-
# ax = plt.subplot(111)
12+
#ax = plt.subplot(111)
1313

1414
ax.set_yticks([0.5])
1515
ax.set_yticklabels(["very long label"])

examples/axes_grid/scatter_hist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
# thus there is no need to manually adjust the xlim and ylim of these
3838
# axis.
3939

40-
# axHistx.axis["bottom"].major_ticklabels.set_visible(False)
40+
#axHistx.axis["bottom"].major_ticklabels.set_visible(False)
4141
for tl in axHistx.get_xticklabels():
4242
tl.set_visible(False)
4343
axHistx.set_yticks([0, 50, 100])
4444

45-
# axHisty.axis["left"].major_ticklabels.set_visible(False)
45+
#xHisty.axis["left"].major_ticklabels.set_visible(False)
4646
for tl in axHisty.get_yticklabels():
4747
tl.set_visible(False)
4848
axHisty.set_xticks([0, 50, 100])

0 commit comments

Comments
 (0)