<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I think your comments are sound. &nbsp;It was a pdf converted to png. &nbsp;The original pdf was 1.5MB so my email got kicked back.&nbsp;</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">My "desired behaviour" sentence was written when I believed using “dot” instead of “filled circle” would solve my problem. &nbsp;Didn’t think about the boldness coming from the overlay of the transparencies. &nbsp;</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Anyhow, I’ve found a solution (workaround) to my own problem. &nbsp;The overlay idea got me thinking, so I created my own marker. &nbsp;Which no longer has the border that is imposed by the predefined marker.&nbsp;</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">I would still consider the original post a bug, though the increase in opaqueness through overlapping transparencies is generally a nice feature.&nbsp;</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">; &nbsp; **************** test code; &nbsp;&nbsp;</div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">wks = gsn_open_wks("pdf","test")&nbsp;</div><div id="bloop_customfont" style="margin: 0px;">res = True</div><div id="bloop_customfont" style="margin: 0px;">res@gsnDraw = False</div><div id="bloop_customfont" style="margin: 0px;">res@gsnFrame = False</div><div id="bloop_customfont" style="margin: 0px;">plot = gsn_blank_plot(wks, res)</div><div id="bloop_customfont" style="margin: 0px;">gs_res = True</div><div id="bloop_customfont" style="margin: 0px;">gs_res@gsMarkerIndex = 16</div><div id="bloop_customfont" style="margin: 0px;">gs_res@gsMarkerSizeF = 0.14 &nbsp; &nbsp;&nbsp;</div><div id="bloop_customfont" style="margin: 0px;">gs_res@gsMarkerColor = "Red"</div><div id="bloop_customfont" style="margin: 0px;">gs_res@gsLineOpacityF = 0.</div><div id="bloop_customfont" style="margin: 0px;">mark0 = gsn_add_polymarker(wks, plot, 0.3, 0.3, gs_res)</div><div id="bloop_customfont" style="margin: 0px;">gs_res@gsMarkerOpacityF = 0.6</div><div id="bloop_customfont" style="margin: 0px;">mark1 = gsn_add_polymarker(wks, plot, 0.5, 0.5, gs_res)</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">&nbsp; mstring = "7"</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; fontnum = 34</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; xoffset = 0.0</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; yoffset = 0.0</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; ratio &nbsp; = 1.0</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; size &nbsp; &nbsp;= 1.0</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; angle &nbsp; = 0.0</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">&nbsp; new_index = NhlNewMarker(wks, mstring, fontnum, xoffset, yoffset, ratio, size, angle)</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; gs_res@gsMarkerIndex = new_index</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; mark2 = gsn_add_polymarker(wks, plot, 0.7, 0.7, gs_res)</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">draw(plot)</div><div id="bloop_customfont" style="margin: 0px;">frame(wks)</div></div><div><br></div><div>; &nbsp; **************** test code; &nbsp;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1417555532039227904" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div> <div style="color:black"><br>From:&nbsp;<span style="color:black">Rick Brownrigg</span> <a href="mailto:brownrig@ucar.edu">&lt;brownrig@ucar.edu&gt;</a><br>Reply:&nbsp;<span style="color:black">Rick Brownrigg</span> <a href="mailto:brownrig@ucar.edu">&lt;brownrig@ucar.edu&gt;&gt;</a><br>Date:&nbsp;<span style="color:black">December 2, 2014 at 16:25:16</span><br>To:&nbsp;<span style="color:black">Alan Brammer</span> <a href="mailto:abrammer@albany.edu">&lt;abrammer@albany.edu&gt;&gt;</a><br>Subject:&nbsp;<span style="color:black"> Re: [ncl-talk] gsMarkerOpacity != 1. and MarkerIndex 16 or 1 <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">Actually -- I may take part of my comments back ---
was your example.png originally rendered as a png, or was it
converted from something?<br>
<br></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 2, 2014 at 2:17 PM, Rick
Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>Hi Alan,<br>
<br></div>
I see what you mean, and I can't say this is desired
behavior.&nbsp; It curiously shows up only in the so-called
document-based formats (ps, pdf, svg), but not in the image-based
formats (X11, png).&nbsp; I believe its the result of the circle's
interior is filled, then the border drawn, and where those two
markings overlap, the opacities accumulate.&nbsp;&nbsp; I
unfortunately don't know offhand how to resolve the problem, nor
suggest a work-around. I will file a bug ticket
however.&nbsp;<br>
<br></div>
Rick<br>
<br></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Tue, Dec 2, 2014 at 12:35 PM, Alan Brammer
<span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span> wrote:<br></div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div style="word-wrap:break-word">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div style="font-size:13.076923370361328px;margin:0px">Dear
All.</div>
<div style="margin:0px"><b><br></b></div>
<div style="margin:0px"><b>Problem: &nbsp;</b></div>
<div style="margin:0px">When combining gsMarkerIndex 16 with
gsMarkerOpacity &lt; 1.0 a small but sometimes significant
perimeter circle is drawn with Opacity = 1.0. Leaving a bold
perimeter around the marker.&nbsp;</div>
<div style="margin:0px">Maybe this is the desired behaviour?
&nbsp;</div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><b>Code and Examples:</b></div>
<div style="margin:0px"><b><br></b></div>
<div style="margin:0px">wks =
gsn_open_wks("pdf","test")&nbsp;</div>
<div style="font-size:13.076923370361328px;margin:0px">res =
True</div>
<div style="font-size:13.076923370361328px;margin:0px">res@gsnDraw
= False</div>
<div style="font-size:13.076923370361328px;margin:0px">res@gsnFrame
= False</div>
<div style="font-size:13.076923370361328px;margin:0px">plot =
gsn_blank_plot(wks, res)</div>
<div style="font-size:13.076923370361328px;margin:0px">gs_res =
True</div>
<div style="font-size:13.076923370361328px;margin:0px">
gs_res@gsMarkerIndex = 16</div>
<div style="font-size:13.076923370361328px;margin:0px">
gs_res@gsMarkerSizeF = 0.14 &nbsp; &nbsp;&nbsp;</div>
<div style="font-size:13.076923370361328px;margin:0px">
gs_res@gsMarkerColor = "Red"</div>
<div style="font-size:13.076923370361328px;margin:0px">mark1 =
gsn_add_polymarker(wks, plot, 0.3, 0.3, gs_res)</div>
<div style="font-size:13.076923370361328px;margin:0px">
gs_res@gsMarkerOpacityF = 0.6</div>
<div style="font-size:13.076923370361328px;margin:0px">mark =
gsn_add_polymarker(wks, plot, 0.5, 0.5, gs_res)</div>
<div style="font-size:13.076923370361328px;margin:0px">
draw(plot)</div>
<div style="font-size:13.076923370361328px;margin:0px">
frame(wks)</div>
<div style="font-size:13.076923370361328px;margin:0px"><br></div>
<div style="font-size:13.076923370361328px;margin:0px">test.pdf
&nbsp; &lt;- zoomed in from the above code. On the semi transparent
marker the perimeter is evident.&nbsp; This is normally not
noticeable however.&nbsp;</div>
<div style="font-size:13.076923370361328px;margin:0px">example.png
&nbsp;&lt;- &nbsp;map with lots of polymarkers on it.&nbsp; The
bold perimeter becomes rather evident in this use. &nbsp;</div>
<div style="font-size:13.076923370361328px;margin:0px"><br></div>
<div style="font-size:13.076923370361328px;margin:0px"><br></div>
<div style="font-size:13.076923370361328px;margin:0px">
<b>Solutions?</b></div>
<div style="font-size:13.076923370361328px">gsLineOpacity does not
seem to influence the perimeter line.&nbsp;</div>
<div style="margin:0px"><br></div>
<div style="font-size:13.076923370361328px;margin:0px"><font face="Helvetica"><strike>I guess I should be using MarkerIndex 1 instead
of 16</strike>&nbsp; MarkerIndex 1 also does the same thing.&nbsp;
After testing it at the end of this email.&nbsp;</font></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px">Thanks,</div>
<div style="margin:0px"><br></div>
<div style="margin:0px">Alan.&nbsp;</div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px">P.s. Apologies if this comes thru twice,
the first version had a pdf which was too large.&nbsp;</div>
<div style="margin:0px"><span><font color="#888888"><br></font></span></div>
<div style="margin:0px"><span><font color="#888888"><br></font></span></div>
<span><font color="#888888"><br style="font-size:13.076923370361328px"></font></span>
<div style="font-size:13.076923370361328px">
<div style="font-family:helvetica,arial"><span><font color="#888888">--&nbsp;<br>
Alan Brammer<br>
PhD Candidate — African Easterly Waves and TC
genesis</font></span></div>
<div style="font-family:helvetica,arial"><span><font color="#888888">University At Albany, NY</font></span></div>
<div style="font-family:helvetica,arial"><span><font color="#888888"><a href="http://www.atmos.albany.edu/student/abrammer" target="_blank">www.atmos.albany.edu/student/abrammer</a></font></span></div>
</div>
</div>
</div>
<br></div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>

<br></blockquote>
</div>
<br></div>
</blockquote>
</div>
<br></div>


</div></div></span></blockquote></body></html>