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

Home » Public Forums » archive » Re: how to representate (non constant) values in IDLgrAxis
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
Re: how to representate (non constant) values in IDLgrAxis [message #56839] Tue, 20 November 2007 09:00
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Thanks David !!!!
Re: how to representate (non constant) values in IDLgrAxis [message #56840 is a reply to message #56839] Tue, 20 November 2007 07:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> Hi people,
> I know that, in general, the treatment with graphic objects is really
> strange... In this moment Im working for put in the IDLgrAxis,
> associated to a palette, non constant values and I dont know how to do
> that.
>
> I want to put in the IDLgrAxis non constant values like these:
> [0, 10, 20, 30, 40, 41, 42, 43, 44, 45, 50, 60, 70] but conserving the
> distance between the values. This is important because I want to
> represent the color range values as a non constant range.
>
> ,____,____,____,____,____,____,____,____,____,____,____,____ ,
> 0 10 20 30 40 41 42 43 44 45 50 60 70
>
> How can I do this ??

I tried something like this:

values = ['0','10','20','30','40','41','42','43','44','45','60','70']
text = obj_new('idlgrtext', values)
axis = obj_new('idlgraxis', 1, range=[0,100], ticktext=text, $
major=12,minor=0)
xobjview, axis


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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to representate (non constant) values in IDLgrAxis
Next Topic: Re: How to build ASCII File

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

Current Time: Sat Oct 11 12:56:42 PDT 2025

Total time taken to generate the page: 0.87876 seconds