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.")
|