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

Home » Public Forums » archive » multi scatter plots, layout issues
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: multi scatter plots, layout issues [message #90786 is a reply to message #90784] Wed, 15 April 2015 12:26 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Wednesday, April 15, 2015 at 2:03:35 PM UTC-5, Matteo wrote:
>
> I know the CG routines are built to be device independent, so can anybody tell me what's the most straightforward way to obtain something as nice as the ?
> Should I give up CGLAYOUT and simply resort to P.MULTI? I would like the final result to look evenly distributed, say as in: http://www.idlcoyote.com/gallery/small_multiple_contour_plot .png or http://www.idlcoyote.com/gallery/histogram_plot.png.
>
> Thanks,
> matteo

I don't typically use cgWindow unless the plots are relatively simple. A small modification to your program gives what I think is what you're after.

Basically, I replace with cgWindow with cgPS_Open, comment out the /Add, and add a cgPS_Close at the end. I also prefer Encapsulated PS files, since the bounding box is included.

data_1 = cgDemoData(1)+ RandomU(seed, 101) * 10
data_2 = cgDemoData(1)+ RandomU(seed, 101) * 20 + 50

;cgWindow, WXSize=900, WYSize=1200
cgPS_Open, file='test.eps', xs=4.5, ys=6, /inches, /nomatch, /encap
positions = cgLayout([2,3], OXMargin=[0,0], OYMargin=[2,2], XGap=0, YGap=2, Aspect=1.0)

FOR j=0,5 DO BEGIN
p=positions[*,j]
cgScatter2D, data_1, data_2, position=p, XTitle='Study Time (minutes)', NoErase=j NE 0, charsize=0.5, PSym=16, FThick=2;, /Add
ENDFOR

cgPS_Close

END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FG-arithmetic error and moving objects
Next Topic: cgdisplay

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

Current Time: Sat Oct 11 09:20:40 PDT 2025

Total time taken to generate the page: 0.64034 seconds