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

Ioannis Koletsis koletsis at meteo.noa.gr
Tue Feb 10 08:10:39 MST 2015


Karin,

Thanks again…..

Thanks for your help….

 

Bye,

John

 

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

 

Hi John,

 

one way to label only every second x-axis tick mark:

 

  res at tmXBValues            =  xvalues(::2)       ;-- use pre-defined values

  res at tmXBLabels            =  date(::2)          ;-- use pre-defined labels

 

Bye,

Karin

 

Am 10.02.2015 um 15:19 schrieb Ioannis Koletsis <koletsis at meteo.noa.gr>:





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> mailto:meier-fleischer at dkrz.de] 
Sent: Tuesday, February 10, 2015 2:01 PM
To: Ioannis Koletsis;  <mailto:ncl-talk at ucar.edu> ncl-talk at ucar.edu
Cc:  <mailto:ncl-talk-bounces at ucar.edu> 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:  <mailto:ncl-talk-bounces at ucar.edu> ncl-talk-bounces at ucar.edu [ <mailto: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:  <mailto:ncl-talk at ucar.edu> 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 είναι απαλλαγμένο από ιούς και κακόβουλο λογισμικό, επειδή η προστασία <http://www.avast.com/> avast! Antivirus είναι ενεργή.









_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
 <http://mailman.ucar.edu/mailman/listinfo/ncl-talk> 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:    <mailto:meier-fleischer at dkrz.de> meier-fleischer at dkrz.de
URL:       <http://www.dkrz.de/> www.dkrz.de
 
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

 

  _____  


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

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

 






-- 
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:    <mailto:meier-fleischer at dkrz.de> meier-fleischer at dkrz.de
URL:       <http://www.dkrz.de/> www.dkrz.de
 
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

 

  _____  


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

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

 

 

 

____________________________________

Dipl. Geophys. Karin Meier-Fleischer

Visualisierung

Abteilung Anwendungen

 

Deutsches Klimarechenzentrum GmbH (DKRZ)

Bundesstrasse 45a * D-20146 Hamburg                          

Germany                                

 

Phone:      +49 (0)40 460094 126

Fax:  +49 (0)40 460094 270

E-Mail:     meier-fleischer at dkrz.de

URL:  http://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/b14c865c/attachment.html 


More information about the ncl-talk mailing list