Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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="717UsingcallbacksforPlotmarks.html">
8
<LINK REL="Next" HREF="719Formattingtheaxis.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="717UsingcallbacksforPlotmarks.html">Previous</A>
26
<A HREF="719Formattingtheaxis.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="7_18">7.18 Rotating graphs 90 degrees</A></H2>
29
<P> In section <A href="7adv.html#10_2">10.2</A> you can read about
30
 arbitrary rotation of the graphs. For most practical purposes rotation
31
 of 90 degrees is most useful. This could for example be used to plot
32
 horizontal bar graphs.</P>
33
<P> The slight complication with general rotation is that the margins
34
 also rotates, this means that if you rotate a graph 90 degrees the left
35
 margin in the image was originally the bottom margin. In additional by
36
 default the center of the rotation is the center of the plot area and
37
 not the entire image (if all the margins are symmetrical then they will
38
 of course coincide). This means that depending on your margin the
39
 center of the rotation will move. You can read more about this and how
40
 to manually set the center for rotation in the section about rotation, <A
41
href="7adv.html#10_2">10.2</A></P>
42
<P> This is just a slight inconvenience which you have to take into
43
 account when you need to set an explicit margin with a call to <A href="../ref/Graph.html#_GRAPH_SETMARGIN">
44
Graph::SetMargin()</A></P>
45
<P> However, in order to make a rotation of 90 degrees much easier you
46
 can easily rotate a graph 90 degrees and set the correct margin with a
47
 call to <A href="../ref/Graph.html#_GRAPH_SET90ANDMARGIN">
48
Graph::Set90AndMargin()</A> The parameter to this method lets you
49
 specify the margins as you will see them in the image without having to
50
 think of what becomes what after the rotation.</P>
51
<P> So, the only thing you need to do is call this method and then the
52
 graph will have been rotated 90 degrees.</P>
53
<HR NOSHADE>
54
<A HREF="toc.html">Contents</A>
55
<A HREF="717UsingcallbacksforPlotmarks.html">Previous</A>
56
<A HREF="719Formattingtheaxis.html">Next</A>
57
</BODY>
58
</HTML>