| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="8112SpecifyingtextlabelsfortheXaxis.html">
|
|
|
8 |
<LINK REL="Next" HREF="8114Usingfilledlinegraphs.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="8112SpecifyingtextlabelsfortheXaxis.html">Previous</A>
|
|
|
26 |
<A HREF="8114Usingfilledlinegraphs.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="8_1_13">8.1.13 Adjusting the ticks on a text scale</A></H3>
|
|
|
29 |
<P> As can be seen in the previous example the X-axis is slightly
|
|
|
30 |
cluttered with the labels very close to each other. We might rectify
|
|
|
31 |
this by either enlarging the image or just displaying fewer tick label
|
|
|
32 |
on the x-axis.</P>
|
|
|
33 |
<P> Specifying that we only want, for example, to print every second
|
|
|
34 |
label on the axis is done by a call to the method <A href="../ref/Axis.html#_AXIS_SETTEXTLABELINTERVAL">
|
|
|
35 |
SetTextLabelInterval()</A> Which would result in the graph<DIV class="example">
|
|
|
36 |
<BR> <A href="exframes/frame_example9.1.html" target="blank"><IMG border="0"
|
|
|
37 |
HEIGHT="200" src="img/example9.1.png" WIDTH="350"></A>
|
|
|
38 |
<BR><B>Figure 21:</B> Just printing every second label on the X-axis <A href="exframes/frame_example9.1.html"
|
|
|
39 |
target="blank">[src]</A>
|
|
|
40 |
<P></P>
|
|
|
41 |
</DIV></P>
|
|
|
42 |
<P></P>
|
|
|
43 |
<P> If the text labels are long (for example full dates) then another
|
|
|
44 |
way might be to adjust the angle of the text. We could for example
|
|
|
45 |
choose to rotate the labels on the X-axis by 90 degrees. With the help
|
|
|
46 |
of the <A href="../ref/Axis.html#_AXIS_SETLABELANGLE"> SetLabelAngle()</A>
|
|
|
47 |
</P>
|
|
|
48 |
<P> Which would then result in the image below<DIV class="example">
|
|
|
49 |
<BR> <A href="exframes/frame_example9.2.html" target="blank"><IMG border="0"
|
|
|
50 |
HEIGHT="200" src="img/example9.2.png" WIDTH="350"></A>
|
|
|
51 |
<BR><B>Figure 22:</B> Rotating the X-labels 90 degrees <A href="exframes/frame_example9.2.html"
|
|
|
52 |
target="blank">[src]</A>
|
|
|
53 |
<P></P>
|
|
|
54 |
</DIV></P>
|
|
|
55 |
<P><DIV class="note"><B>Note:</B> The internal fonts which we have been
|
|
|
56 |
using so only supports 0 or 90 degrees rotation. To use arbitrary
|
|
|
57 |
angles you must specify TTF fonts. More on fonts later.</DIV></P>
|
|
|
58 |
<HR NOSHADE>
|
|
|
59 |
<A HREF="toc.html">Contents</A>
|
|
|
60 |
<A HREF="8112SpecifyingtextlabelsfortheXaxis.html">Previous</A>
|
|
|
61 |
<A HREF="8114Usingfilledlinegraphs.html">Next</A>
|
|
|
62 |
</BODY>
|
|
|
63 |
</HTML>
|