Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16043c4

Browse filesBrowse files
WeatherGodmdboom
authored andcommitted
Merge pull request #2476 from mattklein999/text3dDemoPositionUpdate
Updated the position of a few of the text examples because they were overlapping and hard to read.
1 parent 1d51360 commit 16043c4
Copy full SHA for 16043c4

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎examples/mplot3d/text3d_demo.py

Copy file name to clipboardExpand all lines: examples/mplot3d/text3d_demo.py
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.