<div dir="ltr"><div>I tried this: </div><div>   p2 = FancyBboxPatch((fp_x, fp_y), fp_width, fp_height,fc=fp_color,ec="black", linewidth=0.3, boxstyle='round,pad=0,rounding_size=0.5', joinstyle="round", capstyle='round') </div><div>   ax.add_patch(p2)</div><div>but still get a sharp cornor box~</div><div>I am confused that why that code work well in demo script, but when in my real script, it didnot work, I think maybe my real script  has some error codes which I am missing.</div><div>            </div></div><br><div class="gmail_quote"><div dir="ltr">Benjamin Root <<a href="mailto:ben.v.root@gmail.com">ben.v.root@gmail.com</a>> 于2018年7月25日周三 下午9:33写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I wonder if specifying the join_style or cap_style for rounded corners might help?</div><div><br></div><div><a href="https://matplotlib.org/examples/api/joinstyle.html" target="_blank">https://matplotlib.org/examples/api/joinstyle.html</a></div><div><br></div><div>Never tried it before for patches, though.</div><div><br></div><div>Cheers!</div><div>Ben Root</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 25, 2018 at 2:13 AM, orange si <span dir="ltr"><<a href="mailto:ilikeorangeapple@gmail.com" target="_blank">ilikeorangeapple@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">update: I use  round,pad=1,rounding_size=0.4, it works well in demo script ! But when I use that in my real script, that don't work, even I use set_boxstyle("round,pad=1,rounding_size=0.4"), it also not woks. Aattachment is my script and ipynb and input file.<div><br></div><div>thanks~</div></div><br><div class="gmail_quote"><div dir="ltr">orange si <<a href="mailto:ilikeorangeapple@gmail.com" target="_blank">ilikeorangeapple@gmail.com</a>> 于2018年7月23日周一 下午3:11写道:<br></div><div><div class="m_-8558959058790366891h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi everyone,<div>    I see the FancyBboxPatch can add round corner  in  <a href="https://matplotlib.org/gallery/shapes_and_collections/fancybox_demo.html" target="_blank">https://matplotlib.org/gallery/shapes_and_collections/fancybox_demo.html</a> , but that has some space between the rectangle and the fancybox. And I just want to add round corner instead of the sharp corner for Rectangle, not to expand the rectangle region.</div><div>    That confused me a few days, thanks for any help~</div><div><br></div><div>Best Regards</div><div>Si</div></div>
</blockquote></div></div></div>
<br>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div>