Re: SURFACE layout details [message #58130] |
Tue, 22 January 2008 11:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> I agree using TT fonts (along with a larger charsize value) increases the legibility of
> the axes labels for a surface plot, but it sure would be nice to be able to make them
> appear as in a 2D plot (as the OP originally requested) - one could then still use
> charsize=1.0 and retain more display space for the plot.
Well, I always position graphics with the POSITION keyword,
so CHARSIZE doesn't affect the location of the plot. Who
thought plot margins based on character size was a good
idea, though?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: SURFACE layout details [message #58144 is a reply to message #58130] |
Tue, 22 January 2008 09:09   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Paula wrote:
>> Device, Set_Font='Times', /TT_Font
>> setup = PSConfig(/NoGUI)
>> thisDevice = !D.Name
>> Set_Plot, 'PS'
>> Device, _EXTRA=setup
>> Surface, dist(64), Font=1, Charsize=2.0
>> Device, /Close
>> Set_Plot, thisDevice
>
> thank you david!
I agree using TT fonts (along with a larger charsize value) increases the legibility of
the axes labels for a surface plot, but it sure would be nice to be able to make them
appear as in a 2D plot (as the OP originally requested) - one could then still use
charsize=1.0 and retain more display space for the plot.
cheers,
paul "charsize=3.0" v
|
|
|
Re: SURFACE layout details [message #58154 is a reply to message #58144] |
Tue, 22 January 2008 02:04   |
paulartcoelho
Messages: 30 Registered: March 2007
|
Member |
|
|
> Device, Set_Font='Times', /TT_Font
> setup = PSConfig(/NoGUI)
> thisDevice = !D.Name
> Set_Plot, 'PS'
> Device, _EXTRA=setup
> Surface, dist(64), Font=1, Charsize=2.0
> Device, /Close
> Set_Plot, thisDevice
thank you david!
|
|
|
Re: SURFACE layout details [message #58165 is a reply to message #58154] |
Mon, 21 January 2008 14:35   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paula writes:
> my "mis-explanation". nope, i'm not using PS fonts! i'm using the
> hershey fonts, but sending the plot to a PS file (to easily import
> things in latex stuff y'know...). the hershey fonts come ok in the
> screen, but not legible in the PS output.
Well, I would try it with true-type fonts:
Device, Set_Font='Times', /TT_Font
setup = PSConfig(/NoGUI)
thisDevice = !D.Name
Set_Plot, 'PS'
Device, _EXTRA=setup
Surface, dist(64), Font=1, Charsize=2.0
Device, /Close
Set_Plot, thisDevice
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: SURFACE layout details [message #58168 is a reply to message #58165] |
Mon, 21 January 2008 13:21   |
Bob[3]
Messages: 60 Registered: December 2006
|
Member |
|
|
On Jan 21, 3:47 pm, David Fanning <n...@dfanning.com> wrote:
> Bob Crawford writes:
>> I tried to address Paula's 1) by using the SHADES keyword (adapting
>> your response):
>
>> IDL> shades=INTARR(200,200)+fsc_color('gray')
>> IDL> surface, dist(200), color=3Dfsc_color('black'), shades=3Dshades,
>> background=fsc_color('white')
>
>> but the wireframe comes out red.
>
>> Am I misusing fsc_color or shades?
>
> Well, SHADES is going to force you to have to use INDEXED
> color, rather than the DECOMPOSED color you are using now.
> This would work:
>
> IDL> Device, DECOMPOSED=0, GET_DECOMPOSED=theState
> IDL> shades=INTARR(200,200)+fsc_color('gray')
> IDL> surface, dist(200),color=fsc_color('black'), $
> shades=shades, background=fsc_color('white')
> IDL> Device, DECOMPOSED=theState
I should've remembered - when you see red, think decomposed!
Thank you David!
|
|
|
|
Re: SURFACE layout details [message #58170 is a reply to message #58169] |
Mon, 21 January 2008 12:47   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Bob Crawford writes:
> I tried to address Paula's 1) by using the SHADES keyword (adapting
> your response):
>
> IDL> shades=INTARR(200,200)+fsc_color('gray')
> IDL> surface, dist(200), color=3Dfsc_color('black'), shades=3Dshades,
> background=fsc_color('white')
>
> but the wireframe comes out red.
>
> Am I misusing fsc_color or shades?
Well, SHADES is going to force you to have to use INDEXED
color, rather than the DECOMPOSED color you are using now.
This would work:
IDL> Device, DECOMPOSED=0, GET_DECOMPOSED=theState
IDL> shades=INTARR(200,200)+fsc_color('gray')
IDL> surface, dist(200),color=fsc_color('black'), $
shades=shades, background=fsc_color('white')
IDL> Device, DECOMPOSED=theState
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: SURFACE layout details [message #58171 is a reply to message #58170] |
Mon, 21 January 2008 12:34   |
Bob[3]
Messages: 60 Registered: December 2006
|
Member |
|
|
On Jan 21, 2:33 pm, David Fanning <n...@dfanning.com> wrote:
> Paula writes:
>> i have two doubts concerning layout cosmetics in a SURFACE plot:
>
>> 1) can i have axis in black but wire-mesh surface lines in, say, grey?
>> if i change the COLOR parameter both axis and surface change
>> together...
>
> IDL> surface, dist(200), color=fsc_color('black'), /nodata, $
> background=fsc_color('white')
> IDL> surface, dist(200), color=fsc_color('gray'), xstyle=4, $
> ystyle=4, zstyle=4, /noerase
>
David,
I tried to address Paula's 1) by using the SHADES keyword (adapting
your response):
IDL> shades=INTARR(200,200)+fsc_color('gray')
IDL> surface, dist(200), color=fsc_color('black'), shades=shades,
background=fsc_color('white')
but the wireframe comes out red.
Am I misusing fsc_color or shades?
|
|
|
Re: SURFACE layout details [message #58174 is a reply to message #58171] |
Mon, 21 January 2008 11:33   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paula writes:
> i have two doubts concerning layout cosmetics in a SURFACE plot:
>
> 1) can i have axis in black but wire-mesh surface lines in, say, grey?
> if i change the COLOR parameter both axis and surface change
> together...
IDL> surface, dist(200), color=fsc_color('black'), /nodata, $
background=fsc_color('white')
IDL> surface, dist(200), color=fsc_color('gray'), xstyle=4, $
ystyle=4, zstyle=4, /noerase
> 2) can i have the tick labels shown as in a normal 2D plot? i mean,
> the characters not "distorted" to the 3D space? 'cause i think the 3D
> projection compromise the legibility of the axis in a PS file.
Say what!? Are you using PostScript fonts? Better show us
how you are doing this. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: SURFACE layout details [message #58342 is a reply to message #58144] |
Sun, 27 January 2008 01:55  |
paulartcoelho
Messages: 30 Registered: March 2007
|
Member |
|
|
not sure if it's worth the trouble, but i still would like to try a
bit more to have the labels without any 3D projection, as in a 2D
plot. is there a "smart" way of doing that with the AXIS procedure, or
i'd have to do it "manually" labeling each tick with XYOUTS? (argh! :))
|
|
|