[Thread Prev][Thread Next][Index]

RE: How can I draw a single color bar for multi-panel plots?



Hi Yun,
	The overlap of the panels on the right is not a problem,
but the result of using the viewports "ll, lr, ul, ur" without
taking extra steps to control how the axes are located within
each.  Usually when producing a multi-panel plot like this I
define my own viewports to eliminate the white space between the
panels. The tool I find convenient in designing viewports is called
"viewdef" and can be found in the Mail Archives (search for viewdef).
Or you could read about "define viewport" in the manual.

	Alternatively, for a quick look at how altering other
properties of the plot can improve the situation try inserting the
plotplus command "ppl axlen,4.5" before my previous demo after each
"set view ul". This shortens the length of the x-axis (from the
default value that "ll, lr, ul, ur" assign) to 4.5 inches.

!------ REVISED demo of a shared color bar -------

ppl axset,0,0,0,0   ! turn off all axes

set view full       ! this will be for the desired color bar
! choose a 2-d variable to shade with value outside color bar range
shade/nolab/i=1:8/j=1:6/lev=(100,2200,100) 0*(i+j)

ppl axset,1,1,1,1   ! turn axes back on

set view ul ; ppl axlen,4.5 ! reduce the x-axis length
shade/nolab/i=1:8/j=1:6/lev=(100,2200,100)/nokey 50*(i+j)
set view ur ; ppl axlen,4.5
shade/nolab/i=1:8/j=1:6/lev=(100,2200,100)/nokey 75*(i+j)
set view ll ; ppl axlen,4.5
shade/nolab/i=1:8/j=1:6/lev=(100,2200,100)/nokey 100*(i+j)
set view lr ; ppl axlen,4.5
shade/nolab/i=1:8/j=1:6/lev=(100,2200,100)/nokey 150*(i+j)
!---------------------------------------------------------

Good luck,
Mick

|!!! Mick.Spillane@noaa.gov !!!|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement