Re: how to double the thickness of the geophysical line of USA when plotting US state line

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon May 09 2011 - 18:38:46 MDT

Hi Guangshan,

Using the default low-res map outlines, the only way to get what you want is to draw the map twice. But it is not too difficult. I think you can plot your data during the first draw. I have attached an example "map1.ncl" that demonstrates drawing thick lines around the whole border of the US in the first frame, and then in the second frame, thick lines just for the geophysical outlines.

Using the "mediumres" database, you can do it using a single draw, as I show in the second attached script "map2.ncl". Unfortunately it is actually a bit more difficult and probably still does not look as good, because of special exceptions in the code that were needed to avoid gaps in the state lines where water bodies fall on state boundaries. When we have the time to implement more detailed control of line attributes we can probably make the medium res database a lot simpler to customize.

On May 9, 2011, at 10:36 AM, Guangshan Chen wrote:

> Dear all,
> In my plot, I would like to draw US states lines with thin line and geophysical line with thick line.
> The following are the resource I used:
> res@mpOutlineOn = True
> res@mpOutlineBoundarySets = "AllBoundaries"
> res@mpGeophysicalLineThicknessF = 4.0
> res@mpGeophysicalLineColor = "Black"; (/22/)
> res@mpNationalLineThicknessF = 1.0
> res@mpNationalLineColor = res@mpGeophysicalLineColor
> res@mpUSStateLineThicknessF = 1.0
> res@mpUSStateLineColor = res@mpGeophysicalLineColor
> The plot shows that the geophysical line of US becomes thinner due to the setting of mpUSStateLineThicknessF.
> The attached is the figure I got.
> So how to plot as what I want?
> Thanks.
> Guangshan
> <Screen shot 2011-05-09 at 11.22.11 AM.png>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Mon May 9 18:38:56 2011

This archive was generated by hypermail 2.1.8 : Fri May 13 2011 - 10:21:56 MDT