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

Home » Public Forums » archive » Re: CAT, DOG, 1.7 AND FISH IN IDL - SUPPLEMENTAL
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: CAT, DOG, 1.7 AND FISH IN IDL - SUPPLEMENTAL [message #32919] Thu, 21 November 2002 00:09 Go to previous message
R.Bauer is currently offline  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
============================================================ =======
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Prob with classes, widgets and event handler
Next Topic: AVI File Reader

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

Current Time: Thu Oct 09 07:54:48 PDT 2025

Total time taken to generate the page: 0.64375 seconds