Skip to content

Commit c34a3aa

Browse files
committed
Merge pull request matplotlib#2476 from mattklein999/text3dDemoPositionUpdate
Updated the position of a few of the text examples because they were overlapping and hard to read.
2 parents 518afd8 + a1559eb commit c34a3aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: examples/mplot3d/text3d_demo.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
ax = fig.gca(projection='3d')
66

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

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

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

1919
ax.set_xlim3d(0, 10)

0 commit comments

Comments
 (0)