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

Home » Public Forums » archive » Re: plot range in Object Graphics
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: plot range in Object Graphics [message #20066 is a reply to message #20028] Wed, 10 May 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Brad Gom (b_gom@hotmail.com) writes:

> If I have a simple x-y plot in object-graphics, how to I make the plot
> lines extend all the way to the axis borders like they do in direct
> graphics? For example, the following code produces a line plot that
> extends flush to the right axis:
>
> x=findgen(10)
> plot, x, sin(x), xrange=[0,8.5], /xstyle
>
> If I make an IDLgrPlot object with the same data and xrange, and some
> IDLgrAxis objects with the proper xrange and yrange, then the plot stops
> at the last datapoint- namely x=8.
>
> Is there an obvious way to fix this that I'm missing?

Uh, well, I get identical results in my object graphics
XPLOT program (download the latest, there have been some
changes in most of these object program examples in the
past week or so) as I do in the direct graphics case.
Perhaps you are scaling the axes incorrectly. That is
*easy* to do in object graphics.

XPlot, x, sin(x), xrange=[0,8.5], Exact=[1,0]

The program is available here:

http://www.dfanning.com/programs/xplot.pro

Note that the zip files in this directory have NOT
yet been updated with the program changes from the
past two weeks. Maybe later this week. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Max memory on IRIX?
Next Topic: help on IDL

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

Current Time: Sat Oct 11 15:12:40 PDT 2025

Total time taken to generate the page: 1.68150 seconds