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

Home » Public Forums » archive » Re: One common title for multiplot using CGPLot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: One common title for multiplot using CGPLot [message #83228] Fri, 15 February 2013 04:28
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ERRORBAR for CGs
Next Topic: Re: ERRORBAR for CGs

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

Current Time: Wed Oct 08 15:27:27 PDT 2025

Total time taken to generate the page: 0.00548 seconds