/usr/share/doc/mathgl/mathgl_en/mathgl_en_37.html is in mathgl-doc-en 2.1.3.1-4ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for MathGL (version 2.1.2), a collection of classes and routines for scientific plotting. Please report any errors in this manual to mathgl.abalakin@gmail.org.
Copyright C 2008-2012 Alexey A. Balakin.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
Free Documentation License."
-->
<!-- Created on December 22, 2013 by texi2html 1.82
texi2html was written by:
Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>MathGL 2.1.2: 4.8 Axis and Colorbar</title>
<meta name="description" content="MathGL 2.1.2: 4.8 Axis and Colorbar">
<meta name="keywords" content="MathGL 2.1.2: 4.8 Axis and Colorbar">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Axis-and-Colorbar"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_36.html#Text-printing" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_38.html#Legend" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en_29.html#MathGL-core" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_29.html#MathGL-core" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_88.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Axis-and-Colorbar-1"></a>
<h2 class="section">4.8 Axis and Colorbar</h2>
<a name="index-Axis-1"></a>
<a name="index-Box"></a>
<a name="index-Grid"></a>
<a name="index-Colorbar"></a>
<a name="index-Label-1"></a>
<p>These functions draw the “things for measuring”, like axis with ticks, colorbar with ticks, grid along axis, bounding box and labels for axis. For more information see <a href="mathgl_en_32.html#Axis-settings">Axis settings</a>.
</p>
<p><a name="axis"></a>
</p><dl>
<dt><a name="index-axis-2"></a><u>MGL command:</u> <b>axis</b><i> ['dir'='xyz' 'stl'='']</i></dt>
<dt><a name="index-Axis-2"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Axis</b><i> (<code>const char *</code>dir=<code>"xyz"</code>, <code>const char *</code>stl=<code>""</code>, <code>const char *</code>opt=<code>""</code>)</i></dt>
<dt><a name="index-mgl_005faxis"></a><u>C function:</u> <code>void</code> <b>mgl_axis</b><i> (<code>HMGL</code> gr, <code>const char *</code>dir, <code>const char *</code>stl, <code>const char *</code>opt)</i></dt>
<dd><p>Draws axes with ticks (see <a href="mathgl_en_32.html#Axis-settings">Axis settings</a>). Parameter <var>dir</var> may contain:
</p><ul>
<li>
‘<samp>xyz</samp>’ for drawing axis in corresponding direction;
</li><li>
‘<samp>XYZ</samp>’ for drawing axis in corresponding direction but with inverted positions of labels;
</li><li>
‘<samp>_</samp>’ for disabling tick labels;
</li><li>
‘<samp>U</samp>’ for disabling rotation of tick labels;
</li><li>
‘<samp>AKDTVISO</samp>’ for drawing arrow at the end of axis;
</li><li>
‘<samp>a</samp>’ for forced adjusting of axis ticks.
</li></ul>
<p>Styles of ticks and axis can be overrided by using <var>stl</var> string. See section <a href="mathgl_en_11.html#Axis-and-ticks">Axis and ticks</a>, for sample code and picture.
</p></dd></dl>
<p><a name="colorbar"></a>
</p><dl>
<dt><a name="index-colorbar"></a><u>MGL command:</u> <b>colorbar</b><i> ['sch'='']</i></dt>
<dt><a name="index-Colorbar-1"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Colorbar</b><i> (<code>const char *</code>sch=<code>""</code>)</i></dt>
<dt><a name="index-mgl_005fcolorbar"></a><u>C function:</u> <code>void</code> <b>mgl_colorbar</b><i> (<code>HMGL</code> gr, <code>const char *</code>sch)</i></dt>
<dd><p>Draws colorbar. Parameter <var>sch</var> may contain:
</p><ul>
<li>
color scheme (see <a href="mathgl_en_24.html#Color-scheme">Color scheme</a>);
</li><li>
‘<samp><>^_</samp>’ for positioning at left, at right, at top or at bottom correspondingly;
</li><li>
‘<samp>I</samp>’ for positioning near bounding (by default, is positioned at edges of subplot);
</li><li>
‘<samp>A</samp>’ for using absolute coordinates.
</li></ul>
<p>See section <a href="mathgl_en_11.html#Colorbars">Colorbars</a>, for sample code and picture.
</p></dd></dl>
<dl>
<dt><a name="index-colorbar-1"></a><u>MGL command:</u> <b>colorbar</b><i> vdat ['sch'='']</i></dt>
<dt><a name="index-Colorbar-2"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Colorbar</b><i> (<code>const mglDataA &</code>v, <code>const char *</code>sch=<code>""</code>)</i></dt>
<dt><a name="index-mgl_005fcolorbar_005fval"></a><u>C function:</u> <code>void</code> <b>mgl_colorbar_val</b><i> (<code>HMGL</code> gr, <code>HCDT</code> v, <code>const char *</code>sch)</i></dt>
<dd><p>The same as previous but with sharp colors <var>sch</var> (current palette if <code>sch=""</code>) for values <var>v</var>. See section <a href="mathgl_en_15.html#ContD-sample">ContD sample</a>, for sample code and picture.
</p></dd></dl>
<dl>
<dt><a name="index-colorbar-2"></a><u>MGL command:</u> <b>colorbar</b><i> 'sch' <code>x y [w=1 h=1]</code></i></dt>
<dt><a name="index-Colorbar-3"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Colorbar</b><i> (<code>const char *</code>sch, <code>mreal</code> x, <code>mreal</code> y, <code>mreal</code> w=<code>1</code>, <code>mreal</code> h=<code>1</code>)</i></dt>
<dt><a name="index-mgl_005fcolorbar_005fext"></a><u>C function:</u> <code>void</code> <b>mgl_colorbar_ext</b><i> (<code>HMGL</code> gr, <code>const char *</code>sch, <code>mreal</code> x, <code>mreal</code> y, <code>mreal</code> w, <code>mreal</code> h)</i></dt>
<dd><p>The same as first one but at arbitrary position of subplot {<var>x</var>, <var>y</var>} (supposed to be in range [0,1]). Parameters <var>w</var>, <var>h</var> set the relative width and height of the colorbar.
</p></dd></dl>
<dl>
<dt><a name="index-colorbar-3"></a><u>MGL command:</u> <b>colorbar</b><i> vdat 'sch' <code>x y [w=1 h=1]</code></i></dt>
<dt><a name="index-Colorbar-4"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Colorbar</b><i> (<code>const mglDataA &</code>v, <code>const char *</code>sch, <code>mreal</code> x, <code>mreal</code> y, <code>mreal</code> w=<code>1</code>, <code>mreal</code> h=<code>1</code>)</i></dt>
<dt><a name="index-mgl_005fcolorbar_005fval_005fext"></a><u>C function:</u> <code>void</code> <b>mgl_colorbar_val_ext</b><i> (<code>HMGL</code> gr, <code>HCDT</code> v, <code>const char *</code>sch, <code>mreal</code> x, <code>mreal</code> y, <code>mreal</code> w, <code>mreal</code> h)</i></dt>
<dd><p>The same as previous but with sharp colors <var>sch</var> (current palette if <code>sch=""</code>) for values <var>v</var>. See section <a href="mathgl_en_15.html#ContD-sample">ContD sample</a>, for sample code and picture.
</p></dd></dl>
<p><a name="grid"></a>
</p><dl>
<dt><a name="index-grid"></a><u>MGL command:</u> <b>grid</b><i> ['dir'='xyz' 'pen'='B']</i></dt>
<dt><a name="index-Grid-1"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Grid</b><i> (<code>const char *</code>dir=<code>"xyz"</code>, <code>const char *</code>pen=<code>"B"</code>, <code>const char *</code>opt=<code>""</code>)</i></dt>
<dt><a name="index-mgl_005faxis_005fgrid"></a><u>C function:</u> <code>void</code> <b>mgl_axis_grid</b><i> (<code>HMGL</code> gr, <code>const char *</code>dir, <code>const char *</code>pen, <code>const char *</code>opt)</i></dt>
<dd><p>Draws grid lines perpendicular to direction determined by string parameter <var>dir</var>. The step of grid lines is the same as tick step for <a href="#axis">axis</a>. The style of lines is determined by <var>pen</var> parameter (default value is dark blue solid line ‘<samp>B-</samp>’).
</p></dd></dl>
<p><a name="box"></a>
</p><dl>
<dt><a name="index-box"></a><u>MGL command:</u> <b>box</b><i> ['stl'='k' <code>ticks=on</code>]</i></dt>
<dt><a name="index-Box-1"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Box</b><i> (<code>const char *</code>col=<code>""</code>, <code>bool</code> ticks=<code>true</code>)</i></dt>
<dt><a name="index-mgl_005fbox"></a><u>C function:</u> <code>void</code> <b>mgl_box</b><i> (<code>HMGL</code> gr, <code>int</code> ticks)</i></dt>
<dt><a name="index-mgl_005fbox_005fstr"></a><u>C function:</u> <code>void</code> <b>mgl_box_str</b><i> (<code>HMGL</code> gr, <code>const char *</code>col, <code>int</code> ticks)</i></dt>
<dd><p>Draws bounding box outside the plotting volume with color <var>col</var>. If <var>col</var> contain ‘<samp>@</samp>’ then filled faces are drawn. At this first color is used for faces (default is light yellow), last one for edges. See section <a href="mathgl_en_11.html#Bounding-box">Bounding box</a>, for sample code and picture.
</p></dd></dl>
<p><a name="xlabel"></a>
<a name="ylabel"></a>
<a name="zlabel"></a>
<a name="tlabel"></a>
</p><dl>
<dt><a name="index-xlabel"></a><u>MGL command:</u> <b>xlabel</b><i> 'text' [<code>pos=1</code>]</i></dt>
<dt><a name="index-ylabel"></a><u>MGL command:</u> <b>ylabel</b><i> 'text' [<code>pos=1</code>]</i></dt>
<dt><a name="index-zlabel"></a><u>MGL command:</u> <b>zlabel</b><i> 'text' [<code>pos=1</code>]</i></dt>
<dt><a name="index-tlabel"></a><u>MGL command:</u> <b>tlabel</b><i> 'text' [<code>pos=1</code>]</i></dt>
<dt><a name="index-Label-2"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Label</b><i> (<code>char</code> dir, <code>const char *</code>text, <code>mreal</code> pos=<code>1</code>, <code>const char *</code>opt=<code>""</code>)</i></dt>
<dt><a name="index-Label-3"></a><u>Method on <code>mglGraph</code>:</u> <code>void</code> <b>Label</b><i> (<code>char</code> dir, <code>const wchar_t *</code>text, <code>mreal</code> pos=<code>1</code>, <code>const char *</code>opt=<code>""</code>)</i></dt>
<dt><a name="index-mgl_005flabel"></a><u>C function:</u> <code>void</code> <b>mgl_label</b><i> (<code>HMGL</code> gr, <code>char</code> dir, <code>const char *</code>text, <code>mreal</code> pos, <code>const char *</code>opt)</i></dt>
<dt><a name="index-mgl_005flabelw"></a><u>C function:</u> <code>void</code> <b>mgl_labelw</b><i> (<code>HMGL</code> gr, <code>char</code> dir, <code>const wchar_t *</code>text, <code>mreal</code> pos, <code>const char *</code>opt)</i></dt>
<dd><p>Prints the label <var>text</var> for axis <var>dir</var>=‘<samp>x</samp>’,‘<samp>y</samp>’,‘<samp>z</samp>’,‘<samp>t</samp>’ (here ‘<samp>t</samp>’ is “ternary” axis <em>t=1-x-y</em>). The position of label is determined by <var>pos</var> parameter. If <var>pos</var>=0 then label is printed at the center of axis. If <var>pos</var>>0 then label is printed at the maximum of axis. If <var>pos</var><0 then label is printed at the minimum of axis. Value option set additional shifting of the label. See section <a href="mathgl_en_36.html#Text-printing">Text printing</a>.
</p></dd></dl>
<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_36.html#Text-printing" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_38.html#Legend" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en_29.html#MathGL-core" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_29.html#MathGL-core" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Next chapter"> >> </a>]</td>
</tr></table>
<p>
<font size="-1">
This document was generated by <em>Build Daemon user</em> on <em>December 22, 2013</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
</font>
<br>
</p>
</body>
</html>
|