manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.9.13 Tube (Python)

These functions draw the tube with variable radius r[i] along the curve between points {x[i], y[i], z[i]}. The plots are drawn for each row if one of the data is the matrix. By any case the sizes of 1st dimension must be equal for all arrays x.nx=y.nx=z.nx=r.nx. String pen specifies the color and style of line and marks (see section Line styles). By default (pen=NULL) solid line with color from palette is used (see section Pallete and colors). See also Plot. See section Tube sample, for sample code and picture.

Method on mglGraph (Python): void Tube (mglData x, mglData y, mglData z, mglData r, const char *pen=NULL)
Method on mglGraph (Python): void Tube (mglData x, mglData y, mglData z, float r, const char *pen=NULL)

The function draws tube with radius r between points {x[i], y[i], z[i]} in 3D space.

Method on mglGraph (Python): void Tube (mglData x, mglData y, mglData r, const char *pen=NULL)
Method on mglGraph (Python): void Tube (mglData x, mglData y, float r, const char *pen=NULL)

The function draws tube with radius r between points {x[i], y[i]} in plane z=Min.z.

Method on mglGraph (Python): void Tube (mglData y, mglData r, const char *pen=NULL)
Method on mglGraph (Python): void Tube (mglData y, float r, const char *pen=NULL)

The function draws tube with radius r between points {x[i], y[i]} in plane z=Min.z, where x[i] values are equidistantly distributed in interval [Min.x, Max.x].


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.