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 #16105 is a reply to message #15948] Mon, 28 June 1999 00:00 Go to previous messageGo to previous message
Harald Frey is currently offline  Harald Frey
Messages: 41
Registered: March 1997
Member
Grady Daub wrote:

> When I make a postscript file with IDL, it thinks that the middle of the
> page is the bottom of the page. Is this a common problem?
>
> Also, there's another problem.
>
> Making line plots seems to have gone wrong. Even if I specify
> XTICKV,XTICKS,XTICKNAME,XRANGE, all that stuff, the first number is
> ALWAYS zero.
>
> I can't get any plot without the first value being zero. So, if I want a
> plot of (value) zero to whatever, it's ok, except if I want the first
> tick value to be, say, 10. What I get is a number 10 superimposed
> on-top-of a number zero ("0"). Kinda looks like a squished "100".
>
> If I set the first value to, say, 200 to 220, the 200-220 tickmarks are
> way over on the right of the plot and a zero is on the left end, like it
> thinks the plot should start at zero (which it's doing.). >:-<
>
> This is a new thing that JUST popped up and I've been doing nothin
> different.
> The only way to get rid of the zero is to set XTICKFORMAT not to display
> numbers, although, the plot still starts at zero.

1. As David already wrote, the default is the middle of the page and you
have to set the yoffset in the device command to the appropriate value.

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.

Harald Frey
hfrey@ssl.berkeley.edu
[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 13:45:45 PDT 2025

Total time taken to generate the page: 2.08089 seconds