Re: Multiple Postscript Shaded Surface Plots [message #7357] |
Mon, 11 November 1996 00:00 |
Arno F. Granados
Messages: 8 Registered: August 1996
|
Junior Member |
|
|
Walid Atia <atia@wam.umd.edu> wrote:
> Hi,
>
> I've been having a bit of trouble getting multiple shaded surface plots
> on a page. I tried using the !P.MULTI variable, but then the shaded
> surface plots come out warped (they seem to be elongated in the
> horizontal direction). Is there any way to draw multiple shaded surface
> plots on a page using the postscript device while maintaining the
> correct aspect ratio?
You can explicitly specify the page location of each plot using the
position Keyword in the call to plot. Set the !p.multi, and then
use something like:
plot,y,position=[1000,1000,6000,6000],/device
This will use the Postscript device coordinates (1000 units = 1cm on the page).
The lower left corner is 0,0 and the 4 elements of the array in position are
x0,y0,x1,y1 This allows for very precise control of the plot positioning and
aspect ratio.
> Also, is it possible to write a tiff image of a
> shaded surface (tiff_write is only for tv images)?
If all else fail, you should be able to display the plot on the screen,
and then do a tvrd() call, you can then write the saved array to
a tiff image file.
Hope this helps.
-Arno
granados@possys.com
|
|
|
Re: Multiple Postscript Shaded Surface Plots [message #7358 is a reply to message #7357] |
Mon, 11 November 1996 00:00  |
Robert Moss
Messages: 74 Registered: February 1996
|
Member |
|
|
Walid Atia wrote:
>
> Hi,
>
> I've been having a bit of trouble getting multiple shaded surface plots
> on a page. I tried using the !P.MULTI variable, but then the shaded
> surface plots come out warped (they seem to be elongated in the
> horizontal direction). Is there any way to draw multiple shaded surface
> plots on a page using the postscript device while maintaining the
> correct aspect ratio? Also, is it possible to write a tiff image of a
> shaded surface (tiff_write is only for tv images)?
>
> Thanks,
>
> Walid
I suggest trying the Z-buffer for the solution to both your problems.
You can set its resolution to whatever you need, draw your shaded
surface plot, read the plot using TVRD, then change to the PS device
and use TV with the XSIZE and YSIZE keywords to scale it just the
size and aspect ratio you want. You can also use TIFF_WRITE for the
image you took from the Z buffer as well.
--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
|
|
|