LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 6 Feb 2007 14:13:16 +0100
Reply-To:     Stéphane COLAS <scolas@DATAMETRIC.FR>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Stéphane COLAS <scolas@DATAMETRIC.FR>
Subject:      reflabel label position
In-Reply-To:  <200702061254.l16BkjvU016919@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Hope I will be clear… It's about the href line label.

Starting with :

/* Set graphics options */

goptions reset=all ftext=centb lfactor=2 htext=1.5;

/* Create sample data set, A */

data a; input year y; datalines; 90 40 91 85 92 80 93 50 94 90 95 80 ;

symbol i=j v=dot c=blue;

/* Define axis characteristics */

axis2 reflabel=(j=r POSITION=bottom '1st reference line' '2nd reference line' );

title1 h=5 pct f=swissb 'Sales Report';

/* Produce the plot */

proc gplot data=a; plot y*year / vaxis=axis2 vref=55 59; run; quit;

You can see that the '1st reference line' '2nd reference line' text are on the bottom right of the line.

Q1 : if you use position=TOP, the text is too near of the line that it seems to be on the line. Do I have to add an option in order to move up the text ?

Now I want to use the reflabel on the horizontal axis (ie. href line). Using the same definition, I’d like the '1st reference line' '2nd reference line' texts at the top on the graphic, near the line but not on the line. So I use the same program and add a ANGLE= option to reflabel=.

axis2 reflabel=(a=90 j=c POSITION=top '1st reference line' '2nd reference line' );

title1 h=5 pct f=swissb 'Sales Report';

/* Produce the plot */

proc gplot data=a; plot y*year / haxis=axis2 href=91 92; run; quit;

Q2 : Why the text goes outside the graphic while on the vref use of this Reflabel, it didn’t go outside ? Q3 : How put the text at the upper right of the line ?

TIA.

Stephane.


Back to: Top of message | Previous page | Main SAS-L page