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
multi scatter plots, layout issues [message #90784] Wed, 15 April 2015 12:03 Go to previous message
Matteo is currently offline  Matteo
Messages: 28
Registered: August 2011
Junior Member
Hi,

I'm interested in using CGSCATTER2D to produce multiple plots (3x2) in a single page. Not limited to CGSCATTER2D, I still find it difficult to control the positioning of multi plots and the size of their titles, specifically when I want to save to ps. For example the following instructions do not lead to the desired effect. Here I'm replotting the same plot 6 times, but the plots don't have an Aspect Ratio of 1, which I believe is mentioned in the documentation for CGSCATTER2D, adn the resulting xgap is way too big:


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

cgWindow, WXSize=900, WYSize=1200
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
-----------------

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
[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: Wed Oct 08 15:10:40 PDT 2025

Total time taken to generate the page: 0.00382 seconds