SAS Gchart - how to format font on midpoint names?

  • Follow


Hello SAS people -

This seems to be a simple thing, but I can't find a fix.  How do I
make the font bigger on the midpoint labels and y-axis tickmarks in
Gchart? Note that I'm suppressing the actual x-axis and y-axis labels,
as I don't need them. I'm stacking several of these charts together
using Greplay, but this makes the midpoint names too tiny/illegible
and so I need to beef them up.  Help?!  Sample code below..  dunno
what new code should go where.

Bonus question:  Could I possibly have the midpoint names read across
the top of the chart instead of the bottom?  Am I getting
greedy?  :-)   Thanks in advance for any help.

++++++++++++++++++++++
proc gchart data=chlor;
vbar species / discrete
 type=sum sumvar=chlor
 midpoints = "ACETE" "BUT13" "BZ" "CLMT" "CTETL" "DCDFM"
 maxis=axis1 raxis=axis2;
 axis2 logbase=10  minor=none label=none order=(0.001, 0.01, 0.1, 1.0)
value=('10-3' '10-2' '10-1' '10-0');
 axis1 label=none;
run;
++++++++++++++++++++++
0
Reply motria.caudill (4) 7/29/2010 6:06:51 PM

On Jul 29, 11:06=A0am, Motria Caudill <motria.caud...@gmail.com> wrote:
> Hello SAS people -
>
> This seems to be a simple thing, but I can't find a fix. =A0How do I
> make the font bigger on the midpoint labels and y-axis tickmarks in
> Gchart? Note that I'm suppressing the actual x-axis and y-axis labels,
> as I don't need them. I'm stacking several of these charts together
> using Greplay, but this makes the midpoint names too tiny/illegible
> and so I need to beef them up. =A0Help?! =A0Sample code below.. =A0dunno
> what new code should go where.
>
> Bonus question: =A0Could I possibly have the midpoint names read across
> the top of the chart instead of the bottom? =A0Am I getting
> greedy? =A0:-) =A0 Thanks in advance for any help.
>
> ++++++++++++++++++++++
> proc gchart data=3Dchlor;
> vbar species / discrete
> =A0type=3Dsum sumvar=3Dchlor
> =A0midpoints =3D "ACETE" "BUT13" "BZ" "CLMT" "CTETL" "DCDFM"
> =A0maxis=3Daxis1 raxis=3Daxis2;
> =A0axis2 logbase=3D10 =A0minor=3Dnone label=3Dnone order=3D(0.001, 0.01, =
0.1, 1.0)
> value=3D('10-3' '10-2' '10-1' '10-0');
> =A0axis1 label=3Dnone;
> run;
> ++++++++++++++++++++++

axis1 label=3Dnone h=3D16pt;

Use h=3D to control the font size;

HTH

Ya
0
Reply Ya 7/29/2010 9:57:15 PM


Thanks Ya, but that doesn't do it.  I get the below warning.  Not only
does this not change my midpoint fonts, but it un-supresses the axis
label.  :-(

"WARNING: AXIS statement 1 not found. The default axis description
will be used."

Any other ideas?  Thanks for the reply.  I appreciate it.   -M



On Jul 29, 4:57=A0pm, Ya <huang8...@gmail.com> wrote:
> On Jul 29, 11:06=A0am, Motria Caudill <motria.caud...@gmail.com> wrote:
>
>
>
>
>
> > Hello SAS people -
>
> > This seems to be a simple thing, but I can't find a fix. =A0How do I
> > make the font bigger on the midpoint labels and y-axis tickmarks in
> > Gchart? Note that I'm suppressing the actual x-axis and y-axis labels,
> > as I don't need them. I'm stacking several of these charts together
> > using Greplay, but this makes the midpoint names too tiny/illegible
> > and so I need to beef them up. =A0Help?! =A0Sample code below.. =A0dunn=
o
> > what new code should go where.
>
> > Bonus question: =A0Could I possibly have the midpoint names read across
> > the top of the chart instead of the bottom? =A0Am I getting
> > greedy? =A0:-) =A0 Thanks in advance for any help.
>
> > ++++++++++++++++++++++
> > proc gchart data=3Dchlor;
> > vbar species / discrete
> > =A0type=3Dsum sumvar=3Dchlor
> > =A0midpoints =3D "ACETE" "BUT13" "BZ" "CLMT" "CTETL" "DCDFM"
> > =A0maxis=3Daxis1 raxis=3Daxis2;
> > =A0axis2 logbase=3D10 =A0minor=3Dnone label=3Dnone order=3D(0.001, 0.01=
, 0.1, 1.0)
> > value=3D('10-3' '10-2' '10-1' '10-0');
> > =A0axis1 label=3Dnone;
> > run;
> > ++++++++++++++++++++++
>
> axis1 label=3Dnone h=3D16pt;
>
> Use h=3D to control the font size;
>
> HTH
>
> Ya- Hide quoted text -
>
> - Show quoted text -

0
Reply motria.caudill (4) 7/30/2010 12:32:08 AM

Hey people -  In case anyone was interested, one of my coworkers came
up with a solution to the font issue.  Pasted below.. this works!
Notice the font is specified within the VALUE statement for both
axes.

But switching the midpoint names from the bottom to the top of the
chart remains a mystery.  So let me know if you have a solution!
Thanks.

*******************************
axis2 logbase=3D10  minor=3Dnone label=3Dnone order=3D(0.001, 0.01, 0.1, 1.=
0)
value=3D(f=3Dswiss h=3D1 '10-3' '10-2' '10-1' '10-0');
axis1 label=3Dnone value=3D(f=3Dswiss h=3D1);
*******************************


On Jul 29, 7:32=A0pm, Motria Caudill <motria.caud...@gmail.com> wrote:
> Thanks Ya, but that doesn't do it. =A0I get the below warning. =A0Not onl=
y
> does this not change my midpoint fonts, but it un-supresses the axis
> label. =A0:-(
>
> "WARNING: AXIS statement 1 not found. The default axis description
> will be used."
>
> Any other ideas? =A0Thanks for the reply. =A0I appreciate it. =A0 -M
>
> On Jul 29, 4:57=A0pm, Ya <huang8...@gmail.com> wrote:
>
>
>
> > On Jul 29, 11:06=A0am, Motria Caudill <motria.caud...@gmail.com> wrote:
>
> > > Hello SAS people -
>
> > > This seems to be a simple thing, but I can't find a fix. =A0How do I
> > > make the font bigger on the midpoint labels and y-axis tickmarks in
> > > Gchart? Note that I'm suppressing the actual x-axis and y-axis labels=
,
> > > as I don't need them. I'm stacking several of these charts together
> > > using Greplay, but this makes the midpoint names too tiny/illegible
> > > and so I need to beef them up. =A0Help?! =A0Sample code below.. =A0du=
nno
> > > what new code should go where.
>
> > > Bonus question: =A0Could I possibly have the midpoint names read acro=
ss
> > > the top of the chart instead of the bottom? =A0Am I getting
> > > greedy? =A0:-) =A0 Thanks in advance for any help.
>
> > > ++++++++++++++++++++++
> > > proc gchart data=3Dchlor;
> > > vbar species / discrete
> > > =A0type=3Dsum sumvar=3Dchlor
> > > =A0midpoints =3D "ACETE" "BUT13" "BZ" "CLMT" "CTETL" "DCDFM"
> > > =A0maxis=3Daxis1 raxis=3Daxis2;
> > > =A0axis2 logbase=3D10 =A0minor=3Dnone label=3Dnone order=3D(0.001, 0.=
01, 0.1, 1.0)
> > > value=3D('10-3' '10-2' '10-1' '10-0');
> > > =A0axis1 label=3Dnone;
> > > run;
> > > ++++++++++++++++++++++
>
> > axis1 label=3Dnone h=3D16pt;
>
> > Use h=3D to control the font size;
>
> > HTH
>
> > Ya- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

0
Reply motria.caudill (4) 7/30/2010 2:49:29 PM

3 Replies
592 Views

(page loaded in 0.133 seconds)

Similiar Articles:













7/25/2012 10:29:32 AM


Reply: