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

Home » Public Forums » archive » Question on PLOTS command
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
Question on PLOTS command [message #2162] Mon, 06 June 1994 10:38 Go to next message
dpal is currently offline  dpal
Messages: 7
Registered: June 1994
Junior Member
Hello everybody:

I am trying to overlay the geometry of a computational domain on the contour plot. I am having no trouble in generating the contour plot. I am trying to generate the geometry of domain using PLOTS command. The geometry is very simple and can be generated by drawing a view horizontal nd vertical lines. But when i use PLOTS command to generate geometry, for example,

PLOTS, [0, 0],[.9,.9], i get an error message like this

% PLOTS: Data coordinate system not established.

In other words, I am having trouble establishing the data coordinate system.
Can anybody tell me how to establish the data coordinate system in this regard?

thank you


Deb
Re: Question on PLOTS command [message #2336 is a reply to message #2162] Wed, 08 June 1994 08:16 Go to previous message
offenbrg is currently offline  offenbrg
Messages: 31
Registered: August 1993
Member
dpal@glue.umd.edu (Debabrata Pal) writes:


> Hello everybody:

> I am trying to overlay the geometry of a computational domain on the contour plot. I am having no trouble in generating the contour plot. I am trying to generate the geometry of domain using PLOTS command. The geometry is very simple and can be generated by drawing a view horizontal nd vertical lines. But when i use PLOTS command to generate geometry, for example,

> PLOTS, [0, 0],[.9,.9], i get an error message like this

> % PLOTS: Data coordinate system not established.

> In other words, I am having trouble establishing the data coordinate system.
> Can anybody tell me how to establish the data coordinate system in this regard?

Short answer:
PLOTS,[0,0],[.9,.9],/NORMAL

There are 3 device coordinate types:
NORMAL: The whole window goes from [0,0] to [1.0,1.0], regardless of the size
of the window
DATA: Use the existing data frame, if any (i.e. use the axes already plotted
on the window from a PLOT command)
DEVICE: The coordinates are in units of pixels from the lower-left, so the
window goes from [0,0] to [!D.X_SIZE,!D.Y_SIZE].

Any of these can be used with PLOTS.

Hope this helps
Joel

--
"...And I am unanimous in this" - Mrs. Slocumb
------------------------------------------------------------ ----------
| Joel D Offenberg | offenbrg@fondue.gsfc.nasa.gov |
| Hughes STX, NASA/GSFC/LASP | I get paid to stare into space. |
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: slight fix for where_array.pro
Next Topic: Problem with "~" in Unix FINDFILE, still?

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

Current Time: Sun Oct 12 01:41:39 PDT 2025

Total time taken to generate the page: 0.15996 seconds