problem with contour InfoLabel

From: Brian Medeiros <brianpm_at_nyahnyahspammersnyahnyah>
Date: Mon, 25 Jun 2007 15:15:47 -0700

Hi All,

Using NCL v. 4.3.0, I am having a problem with the information label
format on contour plots. When NCL decides to use scientific notation
for the text, it isn't ending the superscript and is adding extra
text ("10" in this example), so the rest of the line is as
superscript. The problem is quite funny when there are lots of
exponents, as the text gets tinier and tinier.

Below is an example of the problem. The resultant info-label gives,
in LaTeX terms, -8 \times 10^{10^{10} TO 8 \times 10^{10^{10} BY 2
\times 10^{10^{10}}}}, and the plot is attached as a pdf.

;;;;;;;;;
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

mx = 31
ny = 31

u = random_normal(0.0, 3.0, (/ny,mx/))
u = (/u*1e10/)
u!0 = "y"
u!1 = "x"
u&x = ispan(0,mx-1,1)
u&y = ispan(0,ny-1,1)
u@_FillValue = -999.

wks = gsn_open_wks("x11","infolabel")

res = False
plot = gsn_csm_contour(wks,u,res)
;;;;;;;;;;;

Can someone confirm this behavior and/or suggest a fix for it?

thanks,

.brian

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Mon Jun 25 2007 - 16:15:47 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 27 2007 - 09:47:22 MDT