Label orientation [message #87031] |
Sun, 29 December 2013 20:37  |
Gompie
Messages: 76 Registered: August 2012
|
Member |
|
|
Hi,
I use
cgplot,scan,r_mean,yrange=[-0.7,0.3],xrange=[0,60],charsize= 1.6,charthick=2.2, title=TTITLE,BACKGROUND = 255, YTITLE=textlabel,XTITLE='SATZA',COLOR = 192,symsize=1.5, thick=2.3,min_value=-50
to plot.
in this yaxis label shows vertical which is correct
However when I try to fiddle with fonts and type these four lines before the cgplot command stated above.
!P.FONT=1
!P.CHARSIZE=3
!P.CHARTHICK=5
!P.BACKGROUND=255
!P.COLOR=0
!P.THICK=3
charecters of my yaxis label are turned 90deg like this
A
X
I
S
instead of writting AXIS vertically.
How do I retain the vertical axis when i use these fonts.
GlanPlon
|
|
|
Re: Label orientation [message #87032 is a reply to message #87031] |
Sun, 29 December 2013 21:08   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Gompie writes:
> I use
> cgplot,scan,r_mean,yrange=[-0.7,0.3],xrange=[0,60],charsize= 1.6,charthick=2.2, title=TTITLE,BACKGROUND = 255, YTITLE=textlabel,XTITLE='SATZA',COLOR = 192,symsize=1.5, thick=2.3,min_value=-50
>
> to plot.
> in this yaxis label shows vertical which is correct
> However when I try to fiddle with fonts and type these four lines before the cgplot command stated above.
>
> !P.FONT=1
> !P.CHARSIZE=3
> !P.CHARTHICK=5
> !P.BACKGROUND=255
> !P.COLOR=0
> !P.THICK=3
>
> charecters of my yaxis label are turned 90deg like this
> A
> X
> I
> S
> instead of writting AXIS vertically.
>
> How do I retain the vertical axis when i use these fonts.
I don't think that is what happens when you use those commands. :-)
I think this is what happens when you set !P.FONT=0 and use hardware
fonts, which don't rotate. Hershey fonts (!P.Font=-1) and True-Type
fonts (!P.Font=1) both rotate correctly.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|