[Thread Prev][Thread Next][Index]

Re: [ferret_users] [ferret_users 5.70] shade, plot viewport



Hi,
Jimmy wrote back explaining his question a bit more, see below.

The DEFINE VIEW/AXES command does this. When you define the viewport with /AXES, you are setting the location of the axes, and the colorbar will go in the margins that are left over. If you set the /XLIM and /YLIM the same for different viewports then the axis lengths will be equal. It also means that you need to leave space somewhere for the colorbar and other things that go in the margins. (and note that you can customize where the colorbar goes with a shade/set and shakey command)

Compare:

! These first definitions made without /AXES are the same as the default
! viewports ll and ul

yes? def view/xlim=0:0.5/ylim=0:0.5 ll
yes? def view/ylim=0:0.5/ylim=0.5:1 ur
yes? set view ul; shade/i=1:14/j=1:10/lev=50 i+j
yes? set view ll; plot/i=1:150 cos(i/20)

! These viewports are defined with /AXES so we need to leave space
! for the margins in the /xlim and /ylim. Now the axes line up in the shade
! plot and the line plot.

yes? set win/new
yes? def view/axes/x=0.15:0.4/y=0.6:0.9 up
yes? def view/axes/x=0.15:0.4/y=0.1:0.4 dn

yes? set view up; shade/i=1:14/j=1:10/lev=50 i+j
yes? set view dn; plot/i=1:150 cos(i/20)


jimmyc@iastate.edu wrote:

Hi
Thanks for the response, I guess I wasnt clear enough.
I will simplify. I have 2 plots going in the upper left panel. I have spaced the individual plots appropriately. However the shaded plot has a color bar and the 2nd one does not. How do I know what the plot space is so I can have the 2nd plot occupy the same area (minus the colorbar) underneath?
If you look closely the xaxis on both plots in the upper left panel are not aligned. I would liek to align them using the define viewport command. But I dont know how to get the plot dimensions (minus the colorbar) so I can match up the two plots (shaded and plot).

I do not want to change the labels or scale the axis, I want to scale the plots but only along the x axis.
Hopefully I am making more sense.
jimmyc


On Mon, 22 May 2006, Ansley Manke wrote:

Hi Jimmy,
I'm not completely sure I know what you're asking - are you concerned about the size of the labels on the x axis, or the axis scale itself? The size of the labels can be controlled by the /TEXT qualifier on the DEFINE VIEWPORT command. The axis can be set with the /HLIMITS and /VLIMITS qualifiers on your shade or plot command.

Ansley

jimmyc@iastate.edu wrote:

Hi All-
I have 6 viewports set up in "4" viewport space (see attached gif image).
The problem is that the 1st plot is a shade with color key while the 2nd is a plot. I would like to scale the 2nd plot to match the xaxis labels of the shaded plot.
I tried the "ppl list labels" but nothing happened.
Is there a way to find out what the dimensions or position of the shade plot are so I can have the plot viewport match?
Thanks



------------------------------------------------------------------------




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement