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

Home » Public Forums » archive » Postscript plots squished and a plot tick problem.
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: Postscript plots squished and a plot tick problem. [message #16140 is a reply to message #15948] Fri, 02 July 1999 00:00 Go to previous message
Grady Daub is currently offline  Grady Daub
Messages: 22
Registered: June 1999
Junior Member
I just wrote an entirely new program and the "always starting at zero" problem
is happening again. (I hope the problem is the same for both programs.)

After much experimenting and complianing and general disgust, I think I have
discovered the problem.

My XTICKV values were:

39047.2 39047.2 39047.2 39047.2 41067.2

But, this didn't seem to affect the plot. IDL just made up it's own tick
values. (Which, incidentally, were the ones I wanted.)

I then tried to put back all the stuff I took out while experimenting. I could
only reproduce the "always starting at zero" problem by making
XTICKV=XTICKV(k), where k comes from "for k=..."

Your guess at my problem seems to have been correct.

I've found the evil badness that has caused all this pain.

It is:

In real life, 1/4 = 0.25
In IDL, 1/4 = 0

:-(

Can somebody tell me why?




Harald Frey wrote:

> 2. You did not provide a sample program but what I assume happens here is
> that you improperly use the xticks and xtichv in your call.
>
> Just try this
> a=findgen(20)+9.
> plot,a,a,xticks=5,xtickv=findgen(6)*4+9
>
> But if you try
>
> plot,a,a,xticks=6,xtickv=findgen(6)*4+9
>
> you will always start at 0 and in yout PS output x-values may be plotted
> one on top of the other.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows version - problem with suspend/resume?
Next Topic: Table Widget sizing

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

Current Time: Sat Oct 11 10:27:20 PDT 2025

Total time taken to generate the page: 1.51942 seconds