8000 removed extraneous savefig calls from examples · smunix/matplotlib@111ebec · GitHub
[go: up one dir, main page]

Skip to content

Commit 111ebec

Browse files
committed
removed extraneous savefig calls from examples
svn path=/trunk/matplotlib/; revision=6535
1 parent 8abe219 commit 111ebec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+43
-122
lines changed

CHANGELOG

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
2008-12-08 Added mdehoon's native macosx backend from sf patch 2179017
1+
2008-12-08 Added mdehoon's native macosx backend from sf patch 2179017 - JDH
22

33
2008-12-08 Removed the prints in the set_*style commands. Return the
4-
list of pprinted strings instead
4+
list of pprinted strings instead - JDH
55

66
2008-12-08 Some of the changes Michael made to improve the output of
77
the property tables in the rest docs broke of made

examples/api/barchart_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ def autolabel(rects):
3636

3737
autolabel(rects1)
3838
autolabel(rects2)
39-
#fig.savefig('barchart_demo')
39+
4040
plt.show()

examples/api/histogram_demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@
3131
ax.set_ylim(0, 0.03)
3232
ax.grid(True)
3333

34-
#fig.savefig('histogram_demo',dpi=72)
3534
plt.show()

examples/api/logo2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,17 @@ def add_polar_bar():
6767

6868
for line in ax.get_ygridlines() + ax.get_xgridlines():
6969
line.set_lw(0.8)
70-
line.set_alpha(0.9)
70+
line.set_alpha(0.9)
7171
line.set_ls('-')
7272
line.set_color('0.5')
73-
73+
7474
ax.set_yticks(np.arange(1, 9, 2))
7575
ax.set_rmax(9)
7676

7777
if __name__ == '__main__':
7878
main_axes = add_math_background()
7979
add_polar_bar()
8080
add_matplotlib_text(main_axes)
81-
fig.savefig('logo2.png', facecolor=figcolor, edgecolor=figcolor, dpi=dpi)
8281
plt.show()
8382

8483

examples/api/watermark_image.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@
1818
ax.grid()
1919
fig.figimage(im, 10, 10)
2020

21-
#fig.savefig('watermarked', transparent=True)
22-
2321
plt.show()

examples/api/watermark_text.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@
1818
fontsize=50, color='gray',
1919
ha='right', va='bottom', alpha=0.5)
2020

21-
#fig.savefig('watermarked_text', transparent=True)
22-
23-
2421
plt.show()

examples/pylab_examples/agg_buffer_to_array.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
fig2 = figure()
2121
ax2 = fig2.add_subplot(111, frameon=False)
2222
ax2.imshow(X)
23-
fig2.savefig('simple.png')
2423
show()

examples/pylab_examples/alignment_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@
7878
transform=ax.transAxes)
7979

8080
axis('off')
81-
#savefig('alignment_test', dpi=100)
81+
8282
show()

examples/pylab_examples/annotation_demo.py

Lines changed: 1 addition & 6 deletions
< 1241 td data-grid-cell-id="diff-50ce35805c17574a3b7d59b2df20dcb91a00e7d283760e12fcbb201359c8d708-113-112-2" data-line-anchor="diff-50ce35805c17574a3b7d59b2df20dcb91a00e7d283760e12fcbb201359c8d708R112" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">
)
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
horizontalalignment='right', verticalalignment='bottom',
8383
fontsize=20)
8484

85-
#fig.savefig('annotation_coords')
8685

8786
if 1:
8887
# you can specify the xypoint and the xytext in different
@@ -111,7 +110,7 @@
111110
horizontalalignment='left',
112111
verticalalignment='bottom',
113112
114-
#fig.savefig('annotation_polar')
113+
115114

116115
if 1:
117116
# You can also use polar notation on a catesian axes. Here the
@@ -138,9 +137,5 @@
138137

139138
ax.set_xlim(-20, 20)
140139
ax.set_ylim(-20, 20)
141-
#fig.savefig('annotation_ellipse')
142-
143-
144140

145-
#fig.savefig('annotation_demo.png')
146141
show()

examples/pylab_examples/annotation_demo2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272

7373

7474

75-
#fig.savefig('annotation_connection')
76-
7775

7876
if 1:
7977
fig = figure(2)
@@ -146,6 +144,4 @@
146144
)
147145
)
148146

149-
#fig.savefig('annotation_arrowstyle')
150-
151147
show()

0 commit comments

Comments
 (0)
0