comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Axis Labels
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Axis Labels [message #87088 is a reply to message #87080] Tue, 07 January 2014 03:52 Go to previous messageGo to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Monday, 6 January 2014 18:50:55 UTC+1, Gompie wrote:
> Hi David,
>
> Thanks for that Function Graphics work great.
>
> Is there a function to get the font information ( type size thickness), that goes into a plot creation ?

I guess you are looking for the following information? Incidentally, you should have provided this information during creation yourself, unless you want the default (Helvetica, 12pt, Roman).

IDL> p = plot([0,1], [0,1])
IDL> t = text(0.6, 0.4, 'Some text', font_name='Times', font_size=16)
IDL> print, t.font_name, t.font_size
Times 16.000000
IDL> case t.font_style of 0: print, 'Roman' & 1: print, 'Bold' & 2: print, 'Italic' & 3: print, 'Bold Italic' & endcase
Roman

See also:

http://www.exelisvis.com/docs/TEXT.html


Or are you looking for the fonts on the plot axes? Those are properties of the plot object P, with the same names:

IDL> print, p.font_name, p.font_size, p.font_style
Helvetica 12.000000 0

or check the properties of the axes "inside" the object P":

IDL> help, p.axes
<Expression> OBJREF = Array[4]
IDL> for ii=0,3 do print, (p.axes)[ii].tickfont_name
Helvetica
Helvetica
Helvetica
Helvetica
IDL> for ii=0,3 do print, (p.axes)[ii].tickfont_size
12.000000
12.000000
12.000000
12.000000
IDL> for ii=0,3 do print, (p.axes)[ii].tickfont_style
0
0
0
0

--
Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't suppress 0 on AXIS call
Next Topic: Unexplained Object Graphics cursor offset on Windows7

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 18:57:02 PDT 2025

Total time taken to generate the page: 1.60453 seconds