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

Home » Public Forums » archive » iPlot Axes Colour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
iPlot Axes Colour [message #77142] Wed, 03 August 2011 23:46 Go to next message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
Hi All,

I'm not sure if I'm losing my mind here but I'm trying to use a black
background in an iplot and have the axes/text etc white. The actual
plot data itself is working fine with the colours i'm choosing. I
naively thought setting the color keyword to white would fix this but
it doesn't seem to work. Anyone have any idea where I'm going wrong?

Cheers
Max
Re: iPlot Axes Colour [message #77177 is a reply to message #77142] Thu, 11 August 2011 23:53 Go to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Aug 12, 3:50 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Aug 10, 10:06 am, David Fanning <n...@idlcoyote.com> wrote:
>
>> Maxwell Peck writes:
>>> For those that are interested in 7.1 and later you use isetproperty
>>> after the iplot call to change the colour for the axes* properties
>>> COLOR=.
>
>> Really!? Make the plot wrong, *then* change the color!
>> I'm afraid I'm never going to understand iTools. :-(
>
> I had not noticed this discussion before. Could it not be done with
> something like
>
> iplot,dindgen(100),color='white',background_color='black',fo nt_color='white­',xcolor='white',ycolor='white',title='titl e',xtitle='x',ytitle='y'
>
> (the color names only being available from 8.0; they would have to be
> RGB values otherwise).

In IDL 7.1.2 there is no mention of the x/ycolor keyword in the iplot
help. I tried it anyway with RGB values and it doesn't work (no error
but the axes and text are still all black).
Re: iPlot Axes Colour [message #77184 is a reply to message #77142] Thu, 11 August 2011 10:50 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 10, 10:06 am, David Fanning <n...@idlcoyote.com> wrote:
> Maxwell Peck writes:
>> For those that are interested in 7.1 and later you use isetproperty
>> after the iplot call to change the colour for the axes* properties
>> COLOR=.
>
> Really!? Make the plot wrong, *then* change the color!
> I'm afraid I'm never going to understand iTools. :-(

I had not noticed this discussion before. Could it not be done with
something like

iplot,dindgen(100),color='white',background_color='black',fo nt_color='white',xcolor='white',ycolor='white',title='title' ,xtitle='x',ytitle='y'

(the color names only being available from 8.0; they would have to be
RGB values otherwise).
Re: iPlot Axes Colour [message #77192 is a reply to message #77142] Wed, 10 August 2011 06:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Maxwell Peck writes:

> For those that are interested in 7.1 and later you use isetproperty
> after the iplot call to change the colour for the axes* properties
> COLOR=.

Really!? Make the plot wrong, *then* change the color!
I'm afraid I'm never going to understand iTools. :-(

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: iPlot Axes Colour [message #77198 is a reply to message #77142] Tue, 09 August 2011 23:34 Go to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Aug 4, 4:46 pm, Maxwell Peck <maxjp...@gmail.com> wrote:
> Hi All,
>
> I'm not sure if I'm losing my mind here but I'm trying to use a black
> background in an iplot and have the axes/text etc white. The actual
> plot data itself is working fine with the colours i'm choosing. I
> naively thought setting the color keyword to white would fix this but
> it doesn't seem to work. Anyone have any idea where I'm going wrong?
>
> Cheers
> Max

For those that are interested in 7.1 and later you use isetproperty
after the iplot call to change the colour for the axes* properties
COLOR=.

What a nightmare, to think I was considering building some sort of
interactive app with this... Checking out Catalyst now David!

Max
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Strange arrary indexing quirk?
Next Topic: Simple CG Map w/ color

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

Current Time: Wed Oct 08 11:42:21 PDT 2025

Total time taken to generate the page: 0.00529 seconds