Re: fontsize [message #35119] |
Wed, 21 May 2003 06:42 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst (paul.vandelst@noaa.gov) writes:
> Does the order of the !P.MULTI= and DEVICE, /... calls matter?
Apparently not.
But I still think an argument can be made that this is
what !P.MULTI is *suppose* to be doing. It takes care
of most of the details for you. Most of the time, if you
are making smaller plots, you need smaller text. If you
*don't* need smaller text, then pay attention to all the
details yourself. It seems like a reasonable trade-off
to me.
Cheers,
David
P.S. And Mark is right. The easiest thing to do is
just create encapsulated PostScript files and
arrange them however you like in whatever word
processor you happen to be using. This is FAR simpler
than mucking about with this.
--
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
|
|
|
Re: fontsize [message #35120 is a reply to message #35119] |
Wed, 21 May 2003 06:14  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Tomson wrote:
>
> You are right. But not this one:
>
> pro t00
> thisDev = !D.Name
> Set_Plot, 'PS'
> !P.Multi=[0,5,2]
> 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
>
> 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
>
> end
Does the order of the !P.MULTI= and DEVICE, /... calls matter?
paulv
--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7748
Fax:(301)763-8545
|
|
|
Re: fontsize [message #35123 is a reply to message #35120] |
Wed, 21 May 2003 00:24  |
tomson
Messages: 39 Registered: March 2003
|
Member |
|
|
I find if m or n greater than 2 in!p.multi=[0,m,n], the fontsize is not what
I want
.
"David Fanning" <david@dfanning.com> д����Ϣ����
:MPG.1934a8f4a782b00f989baa@news.frii.com...
> Tomson (tom2959@21cn.com) writes:
>
>> You are right. But not this one:
>>
>>
>> pro t00
>> thisDev = !D.Name
>> Set_Plot, 'PS'
>> !P.Multi=[0,5,2]
>> 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
>
> Humm. I guess so.
>
> Well, in that case you are going to have to figure out
> all the !P.Multi stuff by hand and put your plots on
> the page by using the POSITION keyword and NOERASE, where
> appropriate.
>
> thisDev = !D.Name
> !P.Multi=0
> Set_Plot, 'ps'
> Device, Set_Font='Helvetica', Font_Size=10, /tt_font
> Plot, findgen(11), Position=[0.052, 0.546, 0.184, 0.976], $
> Font=1, XTitle='This is a long X title', $
> YTitle='This is a much longer Y title'
>
> Plot, findgen(11), Position=[0.252, 0.546, 0.384, 0.976], $
> Font=1, XTitle='This is a long X title', $
> YTitle='This is a much longer Y title', /NoErase
> Device, /Close
> Set_Plot, thisDev
>
> Etc.
>
> 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
|
|
|
Re: fontsize [message #35124 is a reply to message #35123] |
Tue, 20 May 2003 23:06  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1934a8f4a782b00f989baa@news.frii.com...
> Well, in that case you are going to have to figure out
> all the !P.Multi stuff by hand and put your plots on
> the page by using the POSITION keyword and NOERASE, where
> appropriate.
Or write them to graphics files indivdually and arrange them afterwards.
Much easier in my experience.
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|
Re: fontsize [message #35125 is a reply to message #35124] |
Tue, 20 May 2003 21:05  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Tomson (tom2959@21cn.com) writes:
> You are right. But not this one:
>
>
> pro t00
> thisDev = !D.Name
> Set_Plot, 'PS'
> !P.Multi=[0,5,2]
> 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
Humm. I guess so.
Well, in that case you are going to have to figure out
all the !P.Multi stuff by hand and put your plots on
the page by using the POSITION keyword and NOERASE, where
appropriate.
thisDev = !D.Name
!P.Multi=0
Set_Plot, 'ps'
Device, Set_Font='Helvetica', Font_Size=10, /tt_font
Plot, findgen(11), Position=[0.052, 0.546, 0.184, 0.976], $
Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title'
Plot, findgen(11), Position=[0.252, 0.546, 0.384, 0.976], $
Font=1, XTitle='This is a long X title', $
YTitle='This is a much longer Y title', /NoErase
Device, /Close
Set_Plot, thisDev
Etc.
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
|
|
|
Re: fontsize [message #35126 is a reply to message #35125] |
Tue, 20 May 2003 20:52  |
tomson
Messages: 39 Registered: March 2003
|
Member |
|
|
You are right. But not this one:
pro t00
thisDev = !D.Name
Set_Plot, 'PS'
!P.Multi=[0,5,2]
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
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
end
"David Fanning" <david@dfanning.com> д����Ϣ����
:MPG.1934a04190e0c297989ba8@news.frii.com...
> 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
|
|
|
Re: fontsize [message #35127 is a reply to message #35126] |
Tue, 20 May 2003 20:50  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning (david@dfanning.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. :-)
Or, another possibility, you just forgot to set your
FONT keyword on your graphics command (or !P.Font,
whatever you are using) to a Hardware of True-Type font.
The text size will *definitely* change when you go to
multiple plots if you are using the default vector
fonts.
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
|
|
|
Re: fontsize [message #35128 is a reply to message #35127] |
Tue, 20 May 2003 20:28  |
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
|
|
|