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

Home » Public Forums » archive » Plot with axis and labels with different colors
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: Plot with axis and labels with different colors [message #85323 is a reply to message #85321] Wed, 24 July 2013 10:41 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mairan Teodoro writes:

> Is there any easy way of creating a plot with the axis in white and the axis labels in black?
>
> I have an image with black background and would like to show the tick marks in white, and the labels in black.

image = BytArr(300, 300)
image[50,50] = Dist(200,200)
cgLoadct, 5
cgImage, image, /Axes, color='white', OPosition=p, /Fit_Inside
cgPlot, findgen(300), /NoData, /NoErase, Position=p, XStyle=4, YStyle=4
cgPlot, findgen(300), /NoData, /NoErase, Position=p, $
XTicklen=0.0001, YTicklen=0.0001, XMinor=0, YMinor=0
END

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: smoothing spline
Next Topic: UNsharing an IDLgrImage

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

Current Time: Fri Oct 10 13:57:41 PDT 2025

Total time taken to generate the page: 0.24502 seconds