Skip to content

Commit 6179526

Browse files
authored
Merge pull request #8983 from dstansby/pylab-moves
Final batch of pylab example moves
2 parents a57a80c + 9b66083 commit 6179526

Some content is hidden

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

50 files changed

+62
-55
lines changed

doc/faq/howto_faq.rst

Lines changed: 1 addition & 1 deletion

doc/users/prev_whats_new/whats_new_1.3.rst

Lines changed: 4 additions & 4 deletions

examples/pylab_examples/ginput_manual_clabel_sgskip.py renamed to examples/event_handling/ginput_manual_clabel_sgskip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def tellme(s):
3232
##################################################
3333
# Define a triangle by clicking three points
3434

35+
3536
plt.clf()
3637
plt.axis([-1., 1., -1., 1.])
3738
plt.setp(plt.gca(), autoscale_on=False)
@@ -73,6 +74,7 @@ def f(x, y, pts):
7374
z = z + 1/(np.sqrt((x - p[0])**2 + (y - p[1])**2))
7475
return 1/z
7576

77+
7678
X, Y = np.meshgrid(np.linspace(-1, 1, 51), np.linspace(-1, 1, 51))
7779
Z = f(X, Y, pts)
7880

examples/pylab_examples/demo_bboximage.py renamed to examples/images_contours_and_fields/demo_bboximage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
not m.startswith(('spectral', 'Vega')) # Skip deprecated colormaps.
3838
)
3939

40-
#fig.subplots_adjust(top=0.99, bottom=0.01, left=0.2, right=0.99)
40+
# fig.subplots_adjust(top=0.99, bottom=0.01, left=0.2, right=0.99)
4141

4242
ncol = 2
4343
nrow = len(maps)//ncol + 1
@@ -50,7 +50,7 @@
5050

5151
for i, m in enumerate(maps):
5252
ix, iy = divmod(i, nrow)
53-
#plt.figimage(a, 10, i*10, cmap=plt.get_cmap(m), origin='lower')
53+
# plt.figimage(a, 10, i*10, cmap=plt.get_cmap(m), origin='lower')
5454
bbox0 = Bbox.from_bounds(ix*dx*(1 + xpad_fraction),
5555
1. - iy*dy*(1 + ypad_fraction) - dy,
5656
dx, dy)

0 commit comments

Comments
 (0)