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

8.4.1 Ranges (bounding box) (Pure C)

C function: void mgl_set_axis_2d (HMGL gr, float x1, float y1, float x2, float y2)
C function: void mgl_set_axis_3d (HMGL gr, float x1, float y1, float z1, float x2, float y2, float z2)

Sets maximal and minimal values for coordinate range (bounding box). If minimal and maximal values of the coordinate are the same or a variable is absent in the list of arguments then they are ignored. This function also sets Cmin=z1 and Cmax=z2. This is default color range for 2d plots.

C function: void mgl_set_caxis (HMGL gr, float c1, float c2)

Sets values for color range. This values are used later for determining the color of the surface.

C function: void mgl_set_xrange (HMGL gr, const HMDT a, int add)

Sets values of x-range as minimal and maximal values of data a. See also mgl_set_axis().

C function: void mgl_set_yrange (HMGL gr, const HMDT a, int add)

Sets values of y-range as minimal and maximal values of data a. See also mgl_set_axis().

C function: void mgl_set_zrange (HMGL gr, const HMDT a, int add)

Sets values of z-range as minimal and maximal values of data a. See also mgl_set_axis().

C function: void mgl_set_crange (HMGL gr, const HMDT a, int add)

Sets values of color range as minimal and maximal values of data a. See also mgl_set_caxis().

C function: void mgl_set_origin (HMGL gr, float x0, float y0, float z0)

Sets center of axis cross section. If one of values is NAN then MathGL library try to select optimal axis position.


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