Skip to content

Commit

Permalink
Merge pull request #4653 from domspad/MEP12-on-alignment_test.py
Browse files Browse the repository at this point in the history
MEP12 on alignment_test.py
  • Loading branch information
jenshnielsen committed Jul 12, 2015
2 parents c4abea9 + 98d3a17 commit 58064c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/pylab_examples/alignment_test.py
Expand Up @@ -5,7 +5,7 @@
layout text
"""

from pylab import *
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from matplotlib.patches import Rectangle

Expand All @@ -14,8 +14,8 @@
bottom, height = .25, .5
right = left + width
top = bottom + height
ax = gca()
p = Rectangle((left, bottom), width, height,
ax = plt.gca()
p = plt.Rectangle((left, bottom), width, height,
fill=False,
)
p.set_transform(ax.transAxes)
Expand Down Expand Up @@ -77,6 +77,6 @@
rotation=45,
transform=ax.transAxes)

axis('off')
plt.axis('off')

show()
plt.show()

0 comments on commit 58064c3

Please sign in to comment.