Re: One common title for multiplot using CGPLot [message #83228] |
Fri, 15 February 2013 04:28 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
poonam.chandra@gmail.com writes:
> I am using CGPLot to create a 6 plots in one single window. All have the same X- and Y-axes so I just need one common X-title and common Y-title covering the whole horizontal and vertical space. How should I do it? Giving xtitle='X' and ytitle='Y' in CGPlot gives titles to that particular plot only?
cgDisplay
positions = cgLayout([3,2], OXMargin=[8,4], OYMargin=[8,4], $
XGap=6, YGap=5)
FOR j=0,5 DO BEGIN
cgPlot, cgDemoData(17), Position=positions[*,j], NoErase=(j NE 0)
ENDFOR
cgText, 0.5, 0.05, /Normal, Alignment=0.5, 'This is the X Axis Title'
cgText, 0.05, 0.5, /Normal, Alignment=0.5, Orientation=90, $
'This is the Y Axis Title'
END
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|