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

Home » Public Forums » archive » axis labels
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: axis labels [message #21661 is a reply to message #21576] Wed, 06 September 2000 08:31 Go to previous messageGo to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
In article <39B5DBB1.172B0CAC@fz-juelich.de>,
"r.bauer" <r.bauer@fz-juelich.de> wrote:
>
>
> Mirko Vukovic wrote:
>>
>> Hi again,
>>
>> I have a plot of x vs. y. I would like before hand to know
>> what tick-values of x IDL will put. One way is to create a dummy
>> plot and obtain the tick values.
>>
>> Is there some more direct way? I thought IDL had a routine for that
>> but could not find it.
>>
>> Thanks,
>>
>> Mirko (Vukovic)
>
> Dear Mirko,
>
> I like to hear a bit more why you like to know the axis values.
>
> Would you like to format the labels?
>
> regards
> Reimar
>
You see, I have this gorgeous piece of software. And I really mean it.
And it should be shared with the rest of the IDL world (but see later).

It is the ultimate plot routine, based on _direct_ graphics and
completely oop-ed, that can plot, replot, print, save to ps, zoom, etc.

But the gem is that it is completely _extedable_ with the user not
having to deal with its internals whatsoever (within reason). To add
another type of plot (polar say), one has to write several objects, and
modify the _caller_ to the plot routine, so that it can accept a \polar
keyword.

So, it started as me writing it for a prof. from east coast. Since then
it has evolved some, to accept polar plots, contours, (polar too), smith
charts, and now time series, where the axis is time in hours, minutes,
seconds, days, etc).

I am therefore writing the code how to display the ticks for the time
axis. I want it to be general in the sense that I plot the data:

> cplot, time, data,/time_series

where the time axis is displayed in seconds, say. But than, I may want
to modify the axis to be displayed in days (suppose my series lasts over
several days). I would then do

> modframe,xaxis='days',

and it would replot the stuff, with the axis now in days.

So, this is the origin of the question. I am working on this axis
display, and the plot will allways be vs. seconds (internally), but
then, using the axis procedure, I will put the tick marks on minutes,
days, hours, whatever I specify.

Oh, and why do I not share the gem? Time, Time, as said Bilbo Baggins.
It is currently a mess of some 50+ routines (I guess), and has still
rough edges. If I had two weeks off to do it, I would try to put it on
a web site. But for now, it remains buried.

Mirko


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: String/integer use in variable definitions
Next Topic: Re: String/integer use in variable definitions

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

Current Time: Sat Oct 11 22:08:02 PDT 2025

Total time taken to generate the page: 1.83743 seconds