Re: Iplot x labeling [message #54345] |
Mon, 04 June 2007 12:19  |
jochem.verelst@gmail.
Messages: 19 Registered: January 2007
|
Junior Member |
|
|
Hi David,
Thanks a lot for your efforts to help me out! To me it is really
strange that such apparently trivial problem cannot being resolved
properly in IDL.
I reported the problem. Though I can imagine you are in closer contact
with those magic software designers. If there are any advances on this
issue, please let us know.
Greetzz,
Joe
On Jun 4, 2:26 am, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> This works:
>
>> IDL> iplot, x, y, xtickvalues=x, xmajor=5, xrange=[-6.5, 7.5], $
>> xtickname=Strtrim(x,2)
>
>> Which leads me to wonder if this is a documentation problem, rather
>> than an iPlot problem. The solution has an "object graphics" flavor
>> to it that the technical writer might have missed.
>
> Humm. Well, when I started to write an article about this, I
> realized this is wrong, too. Consider the following code:
>
> IDL> x = [-6.1, -4.3, 1.25, 5.1, 7.0]
> IDL> y = [5, 4, 3, 4, 5]
> IDL> iPlot, x, y, XRANGE=[-6.5, 7.5], XMAJOR=5, XTICKVALUES=x, $
> XTICKNAME=String(x, Format='(F5.2)'), SYM_INDEX=7
>
> Notice that the labels and the actual plotted values are not
> aligned. :-(
>
> I don't know. But this is clearly not right and I haven't been
> able to come up with anything to make it right in 30 minutes
> of effort. This is in IDL 6.4.
>
> I guess I would report this as a bug.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|