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

Home » Public Forums » archive » axis: color and fonts - how to change it?
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: color and fonts - how to change it? [message #15760 is a reply to message #15759] Tue, 08 June 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Harald Osten (hvdosten@ludwigsburg.netsurf.de) writes:

> becasue I need a white background for a shade_surface-plot I have to change
> the color of the axis to black. How can I do this? I wasn't successful with
> setting the !P.Color, neither with something like
>
> tvlct, 0,0,0,1
>
> ..., color=1

Humm. Even if you forget Device, Decomposed=0 you can usually
get *black*, for goodness sake. :-)

> And there is no reaction in setting !P.FONT to zero, or to 1 or to... Isn't
> it possible to change the axis' fonts?

Something is *seriously* wrong with your IDL! You aren't
trying to set a system variable and have the same keyword
set on the Shade_Surf command, are you?

> I am working on a 24bit display.

I believe it. :-)

> Thank you for every hint!!!!!

Here is how I would do it. This works on the display
AND in PostScript. You can get the LoadData program
from my web page, or supply your own 2D data set.

data = LoadData(2)
LoadCT, 0 ; Start at the beginning.
LoadCT, 5, NColors=254, Bottom=1 ; Load colors for surface.
Device, Decomposed=0 ; So you can see some colors.
Set_Shading, Values=[1,254] ; Shading values correspond to colors.
Shade_Surf, data, Color=0, Background=255, Font=1, Charsize=3.0
Set_Shading, Values=[0,255] ; Set shading values to default.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Previous Topic: Re: are routines from numerical recipes available in IDL?
Next Topic: IDL and Dual Processor PC's

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

Current Time: Fri Oct 10 11:28:26 PDT 2025

Total time taken to generate the page: 0.16070 seconds