Skip to content

Commit ca8a3d5

Browse files
committed
Remove pointless draw() at the end of static examples.
draw() is completely unnecessary in these examples and only serves to (mildly) confuse the reader.
1 parent 250c33e commit ca8a3d5

20 files changed

+0
-24
lines changed

examples/axes_grid1/demo_axes_divider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def demo():
126126
ax = fig1.add_subplot(2, 2, 4)
127127
demo_images_side_by_side(ax)
128128

129-
plt.draw()
130129
plt.show()
131130

132131

examples/axes_grid1/demo_axes_grid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,4 @@ def demo_grid_with_each_cbar_labelled(fig):
135135
demo_grid_with_each_cbar(F)
136136
demo_grid_with_each_cbar_labelled(F)
137137

138-
plt.draw()
139138
plt.show()

examples/axes_grid1/demo_axes_grid2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,4 @@ def add_inner_title(ax, title, loc, size=None, **kwargs):
116116
grid2[0].set_xticks([-2, 0])
117117
grid2[0].set_yticks([-2, 0, 2])
118118

119-
plt.draw()
120119
plt.show()

examples/axes_grid1/demo_colorbar_with_inset_locator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@
3535
im = ax2.imshow([[1, 2], [2, 3]])
3636
plt.colorbar(im, cax=axins, ticks=[1, 2, 3])
3737

38-
plt.draw()
3938
plt.show()

examples/axes_grid1/demo_edge_colorbar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,4 @@ def demo_right_cbar(fig):
9090
demo_bottom_cbar(F)
9191
demo_right_cbar(F)
9292

93-
plt.draw()
9493
plt.show()

examples/axes_grid1/parasite_simple2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@
4444
ax_kms.set_ylim(950, 3100)
4545
# xlim and ylim of ax_pms will be automatically adjusted.
4646

47-
plt.draw()
4847
plt.show()

examples/axes_grid1/scatter_hist_locatable_axes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@
5151

5252
axHisty.set_xticks([0, 50, 100])
5353

54-
plt.draw()
5554
plt.show()

examples/axes_grid1/simple_axesgrid2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ def get_demo_image():
3535
ax.imshow(im, origin="lower", vmin=vmin,
3636
vmax=vmax, interpolation="nearest")
3737

38-
plt.draw()
3938
plt.show()

examples/axes_grid1/simple_axisline4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
ax2.axis["right"].major_ticklabels.set_visible(False)
2121
ax2.axis["top"].major_ticklabels.set_visible(True)
2222

23-
plt.draw()
2423
plt.show()

examples/axisartist/demo_curvelinear_grid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,4 @@ def curvelinear_test2(fig):
137137
curvelinear_test1(fig)
138138
curvelinear_test2(fig)
139139

140-
plt.draw()
141140
plt.show()

0 commit comments

Comments
 (0)