Re: CAT, DOG, 1.7 AND FISH IN IDL - SUPPLEMENTAL [message #32919] |
Thu, 21 November 2002 00:09 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
MC wrote:
> If one needed this, then what:
> where x=2.2, a label 'cat'
> where x=4.7, a label 'dog'
> where x=6.33, a label '1.7'
> where x=8,1, a label 'fish'
>
> Thanks DF for your suggestion below.
>
> Thanks,
> Mark
You have to set the labels by xtickvalues and then use the vector of
names as David mentioned before.
xtickvalues is plenty described in the online help
Reimar
>
> "MC" <markchan@shaw.ca> wrote in message
> news:hNiC9.831998$v53.31173705@news3.calgary.shaw.ca...
>
>> To Group,
>>
>> x=[2,4,6,8]
>> y=[200,400,600,800]
>> plot,x,y
>>
>> One gets a plot. But not what I want.
>>
>> I need to replace the x-axis with the following axis:
>>
>> where x=2, a label 'cat'
>> where x=4, a label 'dog'
>> where x=6, a label '1.7'
>> where x=8, a label 'fish'
>>
>> I know how to suppress the original x-axis, but don't know how to put the
>> new one in. I am not into object graphic either.
>>
>> Thanks in advance,
>> Mark
>>
>>
>>
>>
>>
>
>
>
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|
Re: CAT, DOG, 1.7 AND FISH IN IDL - SUPPLEMENTAL [message #32921 is a reply to message #32919] |
Wed, 20 November 2002 19:55  |
MC
Messages: 50 Registered: September 1996
|
Member |
|
|
If one needed this, then what:
where x=2.2, a label 'cat'
where x=4.7, a label 'dog'
where x=6.33, a label '1.7'
where x=8,1, a label 'fish'
Thanks DF for your suggestion below.
Thanks,
Mark
"MC" <markchan@shaw.ca> wrote in message
news:hNiC9.831998$v53.31173705@news3.calgary.shaw.ca...
> To Group,
>
> x=[2,4,6,8]
> y=[200,400,600,800]
> plot,x,y
>
> One gets a plot. But not what I want.
>
> I need to replace the x-axis with the following axis:
>
> where x=2, a label 'cat'
> where x=4, a label 'dog'
> where x=6, a label '1.7'
> where x=8, a label 'fish'
>
> I know how to suppress the original x-axis, but don't know how to put the
> new one in. I am not into object graphic either.
>
> Thanks in advance,
> Mark
>
>
>
>
>
|
|
|