Skip to content

Commit

Permalink
Merge pull request #2476 from mattklein999/text3dDemoPositionUpdate
Browse files Browse the repository at this point in the history
Updated the position of a few of the text examples because they were overlapping and hard to read.
  • Loading branch information
WeatherGod committed Sep 30, 2013
2 parents 518afd8 + a1559eb commit c34a3aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/mplot3d/text3d_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
ax = fig.gca(projection='3d')

zdirs = (None, 'x', 'y', 'z', (1, 1, 0), (1, 1, 1))
xs = (2, 6, 4, 9, 7, 2)
ys = (6, 4, 8, 7, 2, 2)
zs = (4, 2, 5, 6, 1, 7)
xs = (1, 4, 4, 9, 4, 1)
ys = (2, 5, 8, 10, 1, 2)
zs = (10, 3, 8, 9, 1, 8)

for zdir, x, y, z in zip(zdirs, xs, ys, zs):
label = '(%d, %d, %d), dir=%s' % (x, y, z, zdir)
ax.text(x, y, z, label, zdir)

ax.text(1, 1, 1, "red", color='red')
ax.text(9, 0, 0, "red", color='red')
ax.text2D(0.05, 0.95, "2D Text", transform=ax.transAxes)

ax.set_xlim3d(0, 10)
Expand Down

0 comments on commit c34a3aa

Please sign in to comment.