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

Home » Public Forums » archive » plot String data
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: plot String data [message #93142 is a reply to message #93140] Mon, 02 May 2016 07:27 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
So you have a string array X = ['lions','tigers','bears'] and you want to plot Y versus X. I don't think so.

It is possible you want to make a box plot with the X axis labeled with strings.
You can find examples of how to do this in the PLOT help page

http://www.harrisgeospatial.com/docs/PLOT_Procedure.html

or on David Fanning's plot gallery

http://www.idlcoyote.com/gallery/



On Sunday, May 1, 2016 at 1:56:34 PM UTC-4, AGW wrote:
> hi,
> I have string data and normal data , I want to plot this data as X axis string data and Y x with normal data.
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;
> openr,1,'/home/a.txt'
> a=strarr(49)
> readf,1,a
> openr,2,'/home/b.dat'
> b=fltarr(49)
> readf,2,b
> plot,a,b
> end
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;
> but it is not true.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can i use CONTOUR to retrieve the subscripts within a closed contour?
Next Topic: Very basic IDL vector question

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

Current Time: Wed Oct 08 13:38:52 PDT 2025

Total time taken to generate the page: 0.00410 seconds