[ncl-talk] Legend color?

jbuzan jbuzan at purdue.edu
Fri Oct 2 15:43:26 MDT 2015


Adam,

This worked!  I was trying line colors, I should have figured marker colors.

-Jonathan


> On Oct 2, 2015, at 11:56 AM, Adam Phillips <asphilli at ucar.edu> wrote:
> 
> Hi Jonathan,
> Add this to your lgres resource list:
> lgres at lgMonoMarkerColor = True
> 
> and change this:
> labels = ""
> to this:
> labels = (/"",""/)    ; this will result in both legend labels being blank
> 
> If that does not fix your issue please let ncl-talk know.
> Adam
> 
> On Thu, Oct 1, 2015 at 1:57 PM, jbuzan <jbuzan at purdue.edu <mailto:jbuzan at purdue.edu>> wrote:
> Hello NCL-Talk,
> 
> My legend continues to call a color when I have no colormap:
> 
>   lgres                    = True
>   lgres at lgItemType         = (/"Markers","Markers"/)        ; show lines only (default)
>   lgres at lgLabelFontHeightF = .08            ; legend label font thickness
>   lgres at vpWidthF           = 0.13           ; width of legend (NDC)
>   lgres at vpHeightF          = 0.10           ; height of legend (NDC)
>   lgres at lgPerimThicknessF  = 2.0            ; thicken the box perimeter
>   lgres at lgMonoDashIndex    = True
>   lgres at lgDashIndex        = 0
>   lgres at lgMarkerIndexes = (/14,12/)
>   labels = ""
>   legend = gsn_create_legend (wks, 2, labels,lgres)
> 
> 
> -Jonathan
> 
> 
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> 
> 
> 
> 
> -- 
> Adam Phillips 
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ <http://www.cgd.ucar.edu/staff/asphilli/>   303-497-1726 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151002/5b28e656/attachment.html 


More information about the ncl-talk mailing list