Question on PLOTS command [message #2162] |
Mon, 06 June 1994 10:38  |
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  |
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. |
|
|
|