| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | Draw flat objects in 3D plot | |
| 4 | 4 | ============================ | |
| 5 | 5 | ||
| 6 | - Demonstrate using pathpatch_2d_to_3d to 'draw' shapes and text on a 3D plot. | ||
| 6 | + Demonstrate using `.pathpatch_2d_to_3d` to 'draw' shapes and text on a 3D plot. | ||
| 7 | 7 | """ | |
| 8 | 8 | ||
| 9 | 9 | import numpy as np | |
@@ -16,11 +16,11 @@ | |||
| 16 | 16 | ||
| 17 | 17 | def text3d(ax, xyz, s, zdir="z", size=None, angle=0, usetex=False, **kwargs): | |
| 18 | 18 | """ | |
| 19 | - Plots the string 's' on the axes 'ax', with position 'xyz', size 'size', | ||
| 20 | - and rotation angle 'angle'. 'zdir' gives the axis which is to be treated | ||
| 21 | - as the third dimension. usetex is a boolean indicating whether the string | ||
| 22 | - should be interpreted as latex or not. Any additional keyword arguments | ||
| 23 | - are passed on to transform_path. | ||
| 19 | + Plots the string *s* on the axes *ax*, with position *xyz*, size *size*, | ||
| 20 | + and rotation angle *angle*. *zdir* gives the axis which is to be treated as | ||
| 21 | + the third dimension. *usetex* is a boolean indicating whether the string | ||
| 22 | + should be run through a LaTeX subprocess or not. Any additional keyword | ||
| 23 | + arguments are forwarded to `.transform_path`. | ||
| 24 | 24 | ||
| 25 | 25 | Note: zdir affects the interpretation of xyz. | |
| 26 | 26 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments