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

Home » Public Forums » archive » Re: fontsize
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: fontsize [message #35128 is a reply to message #35127] Tue, 20 May 2003 20:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tomson (tom2959@21cn.com) writes:

> I want all texts in figure have absolute size, for example,10pt. I know I
> can use device,font_size=10. But when I change some setting, such as
> !p.multi, sometimes the text change their size. What is the matter?

Uh, probably you are not sure what you are doing. :-)

Here is an experiment. First plot:

thisDev = !D.Name
Set_Plot, 'PS'
Device, Set_Font='Helvetica', Font_Size=10, /TT_Font, File = 'test_1.ps'
Plot, findgen(11), Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Device, /Close
Set_Plot, thisDev

Print that out on your PostScript printer. Then, next plot:

thisDev = !D.Name
Set_Plot, 'PS'
Device, Set_Font='Helvetica', Font_Size=10, /TT_Font, File = 'test_2.ps'
!P.Multi=[0,2,2]
Plot, findgen(11), Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Plot, findgen(11), Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Plot, findgen(11), Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Plot, findgen(11), Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Device, /Close
!P.Multi=0
Set_Plot, thisDev

Print that plot out.

I'm going to assert that the text on both plots is identical
and that it is 10 point helvetica font. :-)

Cheers,

David

--

David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: start external application?
Next Topic: Collecting spectral signatures

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

Current Time: Wed Oct 08 19:14:51 PDT 2025

Total time taken to generate the page: 0.00539 seconds