[ncl-talk] legend
Rick Brownrigg
brownrig at ucar.edu
Fri Mar 16 21:34:53 MDT 2018
Hi Sandro,
Can you post a picture of what you talking about? I am having trouble
visualizing what the issue is... :-/
Rick
On Fri, Mar 16, 2018 at 9:15 PM, Vattioni Sandro <
sandro.vattioni at outlook.com> wrote:
> Dear Madam or Sir
>
> I wnat to draw a legend for my xy-plot in ncl, but the dash patern of the
> line is very long compared to the text. I tried to make the dash pattern
> shorter with lgLineDashSegLenF but it did not work. How can I controll the
> length of the dash pattern using the legendClass?
>
> Kind regards,
> Sandro
>
> legend = create "Legend" legendClass wks
> "lgTitleString" : "Left Hand Side Column:
> 10~F34~0~F~N-10~F34~0~F~S emission"
> "vpXF" : 0.2 ; orientation on page
> "vpYF" : 0.15 ;0.48
> "vpWidthF" : 0.1 ;0.3 ; width
> "vpHeightF" : 0.12 ; height
> "lgAutoManage" : True
> "lgPerimOn" : False ; no perimeter
> "lgItemCount" : 5 ; how many
> "lgItemType" : "Lines"
> "lgLabelStrings" : (/"Reference run","Continuous aerosol
> emission","Continuous
> "lgLabelsOn" : True ; no default lables
> "lgLabelOffsetF" : 0.0
> "lgLineLabelFontHeightF" : 2.0
> "lgLineDashSegLenF" : 0.01
> "lgDashIndexes" : (/0,0,0,0,0/) ;4
> "lgLineColors" : (/"black","blue","red","
> darkviolet","orange"/)
>
> end create
>
> draw(legend)
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180316/ce435de0/attachment.html>
More information about the ncl-talk
mailing list