<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif">Dear All,<br><br>I am able to plot Joint PDF of two sets (data set 1,  data set 2) with following ncl code (Refer fig - Fig-10.png). Is it possible to plot normalized Joint PDF in logarithmic scale (10^(n))  ?  (please refer Ref.png)<br></div><br><div class="gmail_default" style="font-family:times new roman,serif">Here is my ncl code.<br><br>​;-----------------------------------------------------------------------------<br>; Plot Phase Space Diagram<br>;----------------------------------------------------------------------------<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;  <br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;  <br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot; <br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl&quot; <br><br>begin<br><br>dir=&quot;./&quot;<br><br>;o1=asciiread(dir+&quot;2nd-NELP-Ow199.dat&quot;,(/103389/),&quot;float&quot;)<br>;o2=asciiread(dir+&quot;2nd-Diff-N-ELP-Hw-Ow.dat&quot;,(/103389/),&quot;float&quot;)<br>o2=asciiread(dir+&quot;cos-angle.dat&quot;,(/103389/),&quot;float&quot;)<br>o1=asciiread(dir+&quot;PTC-N31-Hw-Ow.dat&quot;,(/103389/),&quot;float&quot;)<br> printVarSummary(o1)<br><br><br>  opt          = True<br>  opt@bin_nice = True<br><br>  pdf2obs   = pdfxy(o1,o2, 0, 0, opt)         ; 25 is the default       <br>printVarSummary(pdf2obs)<br>;  print(pdf2obs)<br><br>;************************************************<br>; create plots<br>;************************************************<br>;  wks = gsn_open_wks(&quot;pdf&quot;,&quot;FIG-10&quot;)               ; open a ps file<br>  wks = gsn_open_wks(&quot;png&quot;,&quot;FIG-10&quot;)               ; open a ps file<br>;  gsn_define_colormap(wks,&quot;prcp_2&quot;)<br>  gsn_define_colormap(wks,&quot;amwg256&quot;)<br><br><br>  res      = True<br>  res@gsnDraw       = True <br>  res@gsnFrame      = True <br>  res@cnInfoLabelOn = False<br>  res@cnFillOn          = True    ; Turn on color<br>  res@cnLinesOn         = False <br>  res@cnLineLabelsOn    = False <br>  res@lbLabelAutoStride = True <br>  res@gsnSpreadColors   = True<br>  res@lbOrientation =   &quot;vertical&quot;          ; vertical label bar<br><br>  res@trYMinF = 0.6             ; set minimum Y-axis value<br>  res@trYMaxF = 1.0             ; set maximum Y-axis value<br>  res@trXMinF = -0.8             ; set minimum X-axis value<br>  res@trXMaxF = 1.8            ; set maximum X-axis value<br><br><br>  res@tmXMajorGrid                = True          ; implement x grid<br>  res@tmXMajorGridThicknessF      = 0.5           ; 2.0 is default<br>  res@tmXMajorGridLineDashPattern = 2             ; select short dash lines<br><br>  res@tmYMajorGrid                = True          ; implement y grid<br>  res@tmYMajorGridThicknessF      = 0.5           ; 2.0 is default<br>  res@tmYMajorGridLineDashPattern = 2             ; select short dash lines<br><br>  res@cnLevelSelectionMode = &quot;ManualLevels&quot;     ; manually set the contour levels with the following 3 resources<br>  res@cnMinLevelValF  = 0.001                     ; set the minimum contour level<br>  res@cnMaxLevelValF  = 6.0                     ; set the maximum contour leve<br>  res@cnLevelSpacingF = 0.04                     ; set the interval between contours<br><br>  res@tiXAxisString   = &quot;bond Length (A)&quot;<br>  res@tiYAxisString   = &quot;tragectory&quot;<br><br><br>  plot = gsn_csm_contour (wks,pdf2obs, res)<br><br><br>end<br><br></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><br><span style="font-family:times new roman,serif"><span style="color:rgb(0,0,153)">Subrahmanyam.Sappati</span><br><span style="color:rgb(102,0,204)">C/o Dr. Prasenjit Ghosh</span><br><span style="color:rgb(102,0,204)">IISER PUNE<br>Pin code : 411 008</span><br><br><span style="color:rgb(204,0,0)">Phone : +91 94 03 59 35 18</span></span><br><br></div></div>
</div>