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

Home » Public Forums » archive » Re: floats from strings... duh!
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: floats from strings... duh! [message #4355] Sat, 27 May 1995 00:00 Go to previous message
phil is currently offline  phil
Messages: 15
Registered: April 1995
Junior Member
In article <3q568j$5bd@nntp.Stanford.EDU> zowie@banneker.stanford.edu (Craig DeForest) writes:

> which won't look right because the title will be "Plot number 5"
> instead of "Plot number 5", so you need to tack another bag on that:
>
> plot,mydata,title="Plot number "+strtrim(string(plotno),2)
>

you could also just use the strcompress function. ie:
plot,mydata,title="Plot number"+strcompress(plotno)

There is also no need for the trailing space in the "Plot number"
string since string compress prepends a space.

Hope this helps.

--
/*********************************************************** ****************/
Phil Williams
Postdoctoral Researcher "One man gathers what
MRI Facility another man spills..."
The Ohio State University -The Grateful Dead
email: phil@peace.med.ohio-state.edu
URL: http://justice.med.ohio-state.edu:1525
/*********************************************************** ****************/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help for non-RSI libraries under IDL 4.0
Next Topic: Shading a band of ranges in pvwave

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

Current Time: Fri Oct 10 20:19:21 PDT 2025

Total time taken to generate the page: 0.43794 seconds