Re: How do I place an image when I am using !P.Multi? [message #88830 is a reply to message #88821] |
Tue, 24 June 2014 10:04   |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
I tried to do as per the example suggested by Matthew, but I am getting some strange things. I am not able to see any plot. When I see the .ps file, I see multiple pages each page containing 1 smallbox but not plot. Also, the display window is not able to plot all 10 subplots. Can you try with some arbitrary data and let me know where I am going wrong??
-----------------------------------------
cgPS_Open, OutFileName
cgDisplay
positions = cgLayout([10,10]) ; 10 cols x 10 rows
FOR j=0,(ns-1) DO BEGIN
pos = positions[*,j]
cgPlot,uTime,data[j,*],XStyle=1,YStyle=1,Position=pos, $
XRange=[4,20],YRange=[0,1200],Font=-1,LineStyle=0
ENDFOR
cgPS_Close
; Create a PNG file
cgPS2Raster,OutFileName,/PNG
---------------------------------------------------
|
|
|