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,
KankanOn 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 shadedplot. 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/lineHope to get a valuable suggestion.Thanks,SudevOn 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 SarkarNational Institute of Oceanography(CSIR)
Junior Research Fellow
Physical Oceanography Division
Dona Paula - 403 004, Goa, India
Mob. No- +919595713493
--*****************************************************************************************Kankan SarkarNational Institute of Oceanography(CSIR)
Junior Research Fellow
Physical Oceanography Division
Dona Paula - 403 004, Goa, India
Mob. No- +919595713493
Attachment:
temp_climatlgy_04.pdf
Description: Adobe PDF document