Re: Some question about the figure plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 25 2013 - 20:50:49 MDT

It looks like you are running an older version of NCL.

With NCL versions 6.0.0 and earlier, if you use a named color like "gray", you must make sure "gray" is actually in your current color map. Otherwise, you will get the closest match to some color in your color map.

With NCL versions 6.1.0 and later, if you use a named color, you don't need to add it to your color map.


Also, with the newer NCL, the default font is helvetica, so that might explain why the fonts are running off the page with one of the plots.

Probably the reason why your plot is running off the page is because your base plot may be too big to fit in the size you've given it via vpWidthF and vpHeightF.

Try making those resources smaller, or, instead of calling draw and frame yourself, try setting gsnMaximize to False, and then maximizing the plots with:

; draw(plot3(0))
; frame(wks3)


See mptick_12.ncl for an example:


On Jul 25, 2013, at 10:24 AM, Dai Haijin <> wrote:

> Hi,
> I met two questions when I draw the figure, while someone gets another result with the same code.
> I put the code and the figures (both his and mine) in the attachment.
> original figure: moc3_global_total.eps
> my version: control_global_eulerian.eps
> First question is even I set cnLevels ="gray", the line is light blue.
> Second question is the left axis goes outside the figure, even after I add vpXF = 0.3,.
> How can I solve these questions?
> Best wishes
> --
> Haijin Dai
> Graduate Student
> Department of Atmospheric and Oceanic Sciences,
> School of Physics, Peking University, Beijing, China, 100871
> Email:
> <control_global_eulerian.eps><moc3_global_total.eps><plot_moc5.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Jul 25 20:50:59 2013

This archive was generated by hypermail 2.1.8 : Thu Jul 25 2013 - 21:02:42 MDT