[ncl-talk] String in x axis (XY plot)

Ioannis Koletsis koletsis at meteo.noa.gr
Tue Feb 10 07:19:48 MST 2015


Dear Karin,

Thank you very much…

The script works perfect….

A last question….

Is there any way to present values in X axis every two values (loop) instead of one?

 

Thanks a lot

 

Best Regards 

John 

 

From: Karin Meier-Fleischer [mailto:meier-fleischer at dkrz.de] 
Sent: Tuesday, February 10, 2015 2:01 PM
To: Ioannis Koletsis; ncl-talk at ucar.edu
Cc: ncl-talk-bounces at ucar.edu
Subject: Re: [ncl-talk] String in x axis (XY plot)

 

Hi John,

You can't use your date variable in the gsn_csm_xy function call because date
is of type string, not numeric.
You have to set explicit values and levels for the bottom x-axis like below

  xvalues = ispan(1,dimsizes(date),1)
  
  res at tmXBMode              = "Explicit"            ;-- y-axis draw mode
  res at tmXBValues            =  xvalues              ;-- use pre-defined values
  res at tmXBLabels            =  date                 ;-- use pre-defined labels
  res at tmXBLabelAngleF       =  50.0
  res at tmXBLabelDeltaF       =   1.5
  res at tmXBLabelFontHeightF  =   0.009
  res at tmXBLabelJust         = "CenterRight"
  
  plot  = gsn_csm_xy(wks,xvalues,data(:,6),res) 

Bye,
Karin



Am 10.02.15 um 11:56 schrieb Ioannis Koletsis:

Ooopsss…..

 

I am so sorry….

Files are included…..

 

 

Dear NCL users,

I would like to make a xy plot timeserie….

The values of the sixth column of input.txt file are set in y axis while the time of simulation in x axis…

However, the date (string) of the attached script (line 29) is not appeared in x axis…..

 

Is this possible?

 

Any help would be appreciated…

 

Best Regards

John 

 

 

 

 

 

 

From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf Of Karin Meier-Fleischer
Sent: Tuesday, February 10, 2015 12:44 PM
To: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] String in x axis (XY plot)

 

I can't see an attachment in your mail.

Am 10.02.15 um 11:37 schrieb Ioannis Koletsis:

Dear NCL users,

I would like to make a xy plot timeserie….

The values of the sixth column of input.txt file are set in y axis while the time of simulation in x axis…

However, the date (string) of the attached script (line 29) is not appeared in x axis…..

 

Is this possible?

 

Any help would be appreciated…

 

Best Regards

John 

 

 

 


  _____  


 <http://www.avast.com/> 

Αυτό το email είναι απαλλαγμένο από ιούς και κακόβουλο λογισμικό, επειδή η προστασία avast! Antivirus <http://www.avast.com/>  είναι ενεργή. 








_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk






-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization
Application Support
 
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
 
Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   meier-fleischer at dkrz.de
URL:      www.dkrz.de
 
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

 


  _____  


 <http://www.avast.com/> 

Αυτό το email είναι απαλλαγμένο από ιούς και κακόβουλο λογισμικό, επειδή η προστασία avast! Antivirus <http://www.avast.com/>  είναι ενεργή. 

 





-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization
Application Support
 
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
 
Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   meier-fleischer at dkrz.de
URL:      www.dkrz.de
 
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784


---
Αυτό το email είναι απαλλαγμένο από ιούς και κακόβουλο λογισμικό, επειδή είναι ενεργή η προστασία avast! Antivirus.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/975a4fd1/attachment.html 


More information about the ncl-talk mailing list