SourceForge logo
SourceForge logo
Menu

Re: [Matplotlib-users] matplotlib.axes.Axes.arrow not producing nice arrows

From: mogliii <mo...@gm...> - 2011年10月27日 17:27:09
Attachments: matplotlib_arrow2.jpg
<html>
 <head>
 <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
 </head>
 <body bgcolor="#FFFFFF" text="#000000">
 Thanks, that fixed it. Both for the example (see attachment) and for
 my own document.<br>
 <br>
 So this branch resolved the issue.<br>
 <br>
 Moglliii<br>
 <br>
 On 27/10/2011 17:53, Michael Droettboom wrote:
 <blockquote cite="mid:4EA...@st..." type="cite">
 <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
 It looks like the polygons that make up the arrows were not being
 closed correctly, so the PDF renderer was not joining the ends of
 the stroke.<br>
 <br>
 Can you confirm that this branch resolves your issue?<br>
 <br>
 <meta http-equiv="content-type" content="text/html;
 charset=ISO-8859-1">
 <a moz-do-not-send="true"
 href="https://github.com/matplotlib/matplotlib/pull/559">https://github.com/matplotlib/matplotlib/pull/559</a><br>
 <br>
 Mike<br>
 <br>
 On 10/27/2011 11:36 AM, mogliii wrote:
 <blockquote cite="mid:4EA...@gm..." type="cite">
 <pre wrap="">This is the code
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/arrow_demo.py">http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/arrow_demo.py</a>
Its this example from the gallery page
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://matplotlib.sourceforge.net/examples/pylab_examples/arrow_demo.html">http://matplotlib.sourceforge.net/examples/pylab_examples/arrow_demo.html</a>
Basically I see the same artifacts in my own plots, using the following
command:
ax1.arrow(9.5,15,0,-9.6,head_width=0.45,head_length=3,fc='k', length_includes_head=True)
On 27/10/2011 15:56, Daniel Hyams wrote:
</pre>
 <blockquote type="cite">
 <pre wrap="">I think that the code that generated the screenshot needs to be
posted; otherwise no one knows what is being attempted....
On Thu, Oct 27, 2011 at 10:50 AM, mogliii <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:mo...@gm...">&lt;mo...@gm...&gt;</a> wrote:
</pre>
 <blockquote type="cite">
 <pre wrap="">Hi,
I am trying to place some arrows using
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://matplotlib.sourceforge.net/api/axes_api.html?highlight=arrow#matplotlib.axes.Axes.arrow">http://matplotlib.sourceforge.net/api/axes_api.html?highlight=arrow#matplotlib.axes.Axes.arrow</a>
And unfortunately the arrows are not nice (see attached screenshot). How
can the line end be changed to "round" as, for example, with plot. Or
anyone can give a solution?
For very small print this might be acceptable, but not if the
arrow/linewidth is larger.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://p.sf.net/sfu/cisco-dev2dev">http://p.sf.net/sfu/cisco-dev2dev</a>
_______________________________________________
Matplotlib-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a>
</pre>
 </blockquote>
 <pre wrap="">
</pre>
 </blockquote>
 <pre wrap="">
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://p.sf.net/sfu/cisco-dev2dev">http://p.sf.net/sfu/cisco-dev2dev</a>
_______________________________________________
Matplotlib-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a>
</pre>
 </blockquote>
 <br>
 <br>
 <fieldset class="mimeAttachmentHeader"></fieldset>
 <br>
 <pre wrap="">------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/cisco-dev2dev">http://p.sf.net/sfu/cisco-dev2dev</a></pre>
 <br>
 <fieldset class="mimeAttachmentHeader"></fieldset>
 <br>
 <pre wrap="">_______________________________________________
Matplotlib-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mat...@li...">Mat...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a>
</pre>
 </blockquote>
 <br>
 </body>
</html>

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /