[Thread Prev][Thread Next][Index]

Re: [ferret_users] Including contour lines in the shaded plot



Hi,

Thanks for your reply. As you suggested, I did it in two steps. Now I am able to adjust the color bar.

Thanks,
Sudev

On Thu, May 31, 2012 at 11:17 PM, Ansley Manke <ansley.b.manke@xxxxxxxx> wrote:
Hi-
The combinations of commands can be confusing.  I think you'll need to do it in two steps.  Make sure to use the /SET command on your FILL command. That's what will allow the SHAKEY to take effect. 

set v v21; fill/lev=($t_levels)/k=1/l=7/key/nolab temp
ppl shakey 1 0 .12 1 3 9 1.9 11.85 0.35 0.65
ppl fill
contour/over/nokey/lev=($t_levels)/k=1/l=7/nolab temp
go fland


On 5/31/2012 2:11 AM, Sudev Das M P wrote:
Hi,

Thanks for the reply. Now I am able to draw shaded plot with line contours and I also plotted the
color bar. But I am not able to adjust the color bar using "shakey" settings. I am drawing the color bar
with subplot v21 and the color bar is coming on the right side of v21 in the vertical position. I want this
to be horizontal and I tried to adjust it using the "shakey" command but it is not working.
-----------------------------------------------------------------------------------------------
set v v21; contour/line/fill/lev=($t_levels)/k=1/l=7/key/nolab temp
ppl shakey 1 0 .12 1 3 9 1.9 11.85 0.35 0.65
ppl fill/contour/line
go fland
---------------------------------------------------------------------------------------------
Please give me some idea so that I can adjust the color bar accordingly.
The figure I created is attached with this mail. Please have a look.

Thanks,
Sudev


On Wed, May 30, 2012 at 11:30 AM, Kankan Sarkar <kankan.math@xxxxxxxxx> wrote:
Dear Sudev,

     Here "fill" gives shaded figure. To overlap the contour you can use "over".
You can write your jnl file as:

set v v21
contour/fill/lev=($t_levels)/k=1/l=7/nolab temp         
contour/line/over/lev=($t_levels)/k=1/l=7/nolab temp     ! overlap contours

Thanks,
Kankan


On Wed, May 30, 2012 at 10:03 AM, Sudev Das M P <devdas.pnr@xxxxxxxxx> wrote:
Hai,

I want to plot both contour lines and shade together in the same figure.

1. If I use "set v v21; fill/lev=($t_levels)/k=1/l=7/nolab/set temp", I am getting only shaded

plot. In order to get contour line I have to use  "contour/line/fill/lev=($t_levels)/k=1/l=7/nolab temp".

Then I am not able to see color bar in the plot.


2. I am drawing the color bar with the subplot v21. In v21 I am not using the "nokey"  command.

set v v21; contour/line/fill/lev=($t_levels)/k=1/l=7/nolab temp
ppl shakey 1 0 .12 1 3 9 1.9 11.85 0.35 0.65
ppl fill/contour/line

Hope to get a valuable suggestion.

Thanks,
Sudev

On Tue, May 29, 2012 at 4:44 PM, Kankan Sarkar <kankan.math@xxxxxxxxx> wrote:
Dear Sudev

 You used :  set view v11; contour/line/fill/lev=($t_levels)/K=1/L=1/nokey/nolab temp

Just remove nokey, then the color bar will come.

Regards,
Kankan



On Tue, May 29, 2012 at 4:18 PM, Sudev Das M P <devdas.pnr@xxxxxxxxx> wrote:
Hi,

I like to include contour lines in the shaded plot. I tried doing this
but then the color bar

disappeared from the plot. The script I am using is given below.
Please give me your

advise to solve this problem.

Thanks,
Sudev
=======================================================
!******************************************************************************
!  Defining the limits for 4 subplots.
!*******************************************************************************
!Defining the limits for the subplots.
define view/axes/xlimits=0.07,0.50/ylimits=.6,.95 v11
define view/axes/xlimits=0.53,0.96/ylimits=.6,.95 v12
define view/axes/xlimits=0.07,0.50/ylimits=.2,.55 v21
define view/axes/xlimits=0.53,0.96/ylimits=.2,.55 v22

use climatology_monthly_tempt.nc

!------------------------------------------------------------
!Defining the levels that we want to show in the color bar.
define symbol t_levels = (-inf)(19,30,1)(inf)
!------------------------------------------------------------

! Draw 4 months of plots. Set the contour levels on the first one, and
then use /LEV
! to reuse the same levels on other plots.

!------------------------------------------------------------
ppl axlabp,-1,-1 ! Label on x and y-axis,

set view v11; contour/line/fill/lev=($t_levels)/K=1/L=1/nokey/nolab temp
go fland
! Make a label above each plot with the month.
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(a) January"
!------------------------------------------------------------

ppl axlabp,-1,0 ! Label x-axis on the bottom
set v v12; contour/line/fill/lev=($t_levels)/k=1/l=4/nokey/nolab temp
go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(b) April"
!------------------------------------------------------------

! This plot will include the color key. It's drawn using SHAKEY settings.

ppl axlabp,-1,-1 ! Label x-axis on the bottom, y-axis, on the left

set v v21; contour/line/fill/lev=($t_levels)/k=1/l=7/nolab temp
ppl shakey 1 0 .12 1 3 9 1.9 11.85 0.35 0.65
ppl fill/contour/line

go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(c) July"
label/nouser `($ppl$xlen)/0.97`, `($ppl$ylen)-4.6`,0,0,0.20,"Longitude"
label/nouser -0.65,4.0,-1,90,0.22,"Latitude"
!------------------------------------------------------------
ppl axlabp,-1,0 ! Label x-axis on the bottom

set v v22; contour/line/fill/lev=($t_levels)/k=1/l=10/nokey/nolab temp
go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(d) October"
!------------------------------------------------------------
set view full
plot/nolab/noaxes/color=white/sym/i=1:2 i

label/nouser `($ppl$xlen)/2`,7.1,0,0,0.16, Climatology TEMP (Deg C)
=============================================



--
*****************************************************************************************
Kankan Sarkar
Junior Research Fellow
Physical Oceanography Division

National Institute of Oceanography(CSIR)
Dona Paula - 403 004, Goa, India
Mob. No- +919595713493






--
*****************************************************************************************
Kankan Sarkar
Junior Research Fellow
Physical Oceanography Division

National Institute of Oceanography(CSIR)
Dona Paula - 403 004, Goa, India
Mob. No- +919595713493





[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement