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

Home » Public Forums » archive » Re: oplot - error in plotting to Z buffer only
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: oplot - error in plotting to Z buffer only [message #14231] Mon, 08 February 1999 00:00
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
Gwyn Fireman wrote:
>
> Well, I'm stumped.
>
> I have a routine to automatically generate a bunch o'gifs.
> Usually it works fine.
>
> On one set of data it fails with the error:
>
> % OPLOT: No valid points, must have at least 2 distinct points
>
> But, but - I *do* have points to plot!
> If I run this interactively I can re-enter the command after it gives
> the error, and it works fine. (But .con does not)
>
> AND if I plot to an X-window instead of to the Z-buffer (as I usually
> do when generating gifs) it runs fine.
>
> Has anyone seen a similar discrepancy?
> Is there something I need to know about the Z buffer?

This may be the same bug I've run into. In some cases, when plotting:

- with my own UserSym plot symbol (say a 20-point circle)
- to the Z-Buffer device
- right at the bottom or top edge of the plot where the UserSym might
meet or go over the edge (sorry, I don't remember exactly)

this very error would occur. When I fixed the YRange and plotted a set
of points that started off the bottom and crept onto the plot, I could
tell when it failed. I found a workaround, so I didn't get to the
bottom of this.

Hope this helps!

Cheers,
--
-Dick

Dick Jackson Fanning Software Consulting, Canadian Office
djackson@dfanning.com Calgary, Alberta Voice/Fax: (403) 242-7398
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: oplot - error in plotting to Z buffer only [message #14237 is a reply to message #14231] Mon, 08 February 1999 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
Gwyn Fireman <fireman@mcst.gsfc.nasa.gov> wrote:
> On one set of data it fails with the error:
> % OPLOT: No valid points, must have at least 2 distinct points
> But, but - I *do* have points to plot!

I think I've seen this before, but can't remember the exact circumstances.
I seem to recall that the exact size of the window mattered - do you get the
same failures if the Z-buffer and interactive window are exactly the same
size?

-William

--
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
Re: oplot - error in plotting to Z buffer only [message #14245 is a reply to message #14231] Sat, 06 February 1999 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
Gwyn Fireman wrote:
>
> Well, I'm stumped.
>
> I have a routine to automatically generate a bunch o'gifs.
> Usually it works fine.
>
> On one set of data it fails with the error:
>
> % OPLOT: No valid points, must have at least 2 distinct points
>
> But, but - I *do* have points to plot!
> If I run this interactively I can re-enter the command after it gives
> the error, and it works fine. (But .con does not)
>
> AND if I plot to an X-window instead of to the Z-buffer (as I usually
> do when generating gifs) it runs fine.
>
> Has anyone seen a similar discrepancy?
> Is there something I need to know about the Z buffer?
>
> Thanks.
>
> --
> ---- Gwyn F. Fireman
> ---- General Sciences Corporation
> ---- MODIS Characterization Support Team
> ---- Gwyn.Fireman@gsfc.nasa.gov 301-352-2118

Not to denigrate David's Blue Moon theory, but I'll bet a nickel that
the data frame for which the routine fails is corrupt or somehow not
correctly read in. I've been down the road of blaming the Z-Buffer for
all my problems, only later to discover some more plausible error. Are
you *certain* all you changed was set_plot,'Z' to set_plot,'X'?

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
Re: oplot - error in plotting to Z buffer only [message #14248 is a reply to message #14245] Fri, 05 February 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Gwyn Fireman (fireman@mcst.gsfc.nasa.gov) writes:

> I have a routine to automatically generate a bunch o'gifs.
> Usually it works fine.
> On one set of data it fails with the error:
>
> % OPLOT: No valid points, must have at least 2 distinct points
>
> But, but - I *do* have points to plot!
> If I run this interactively I can re-enter the command after it gives
> the error, and it works fine. (But .con does not)
>
> AND if I plot to an X-window instead of to the Z-buffer (as I usually
> do when generating gifs) it runs fine.

Odd. I have a theory about IDL and blue moons, but
it needs further testing before I publish it. :-)

Cheers,

David

P.S. Is this reproducible? I mean, does the same
thing happen around the 15th of the month?

--
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: device,decomposed=0
Next Topic: Re: 3D projection rotation

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

Current Time: Wed Oct 08 17:34:56 PDT 2025

Total time taken to generate the page: 0.00690 seconds