<div dir="ltr">This actually intersects a bit with a need of mine in basemap. In basemap, I need to find a clip path that is just slightly bigger than the bounding box of the map limbs so that I am not "shaving" the border line for the map limbs. I guess I could flip the problem around and have the map limbs drawn "inside" the specified polygon so that I don't have to worry about the clip path shaving my limbs (... yes, I know that sounds incredibly silly).<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 5, 2016 at 9:22 PM, Thomas Caswell <span dir="ltr"><<a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@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">I recall there being discussion of controlling if paths are stroked 'inside', 'outside', or 'on' the path, but I can not find a link.<div><br></div><div>One possible work around (which is not super elegant) is to use two rectangles, one drawn with the thick border and one with a `lw=0` and a higher z-order overlayed on top.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Sun, Jun 5, 2016 at 6:36 PM Matěj Týč <<a href="mailto:matej.tyc@gmail.com" target="_blank">matej.tyc@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hello,<br>
consider a case when I want to draw a patch, but it is important how the<br>
border is drawn. For example, if I have an aerial photo and I would like<br>
to add a rectangle of given dimensions as a reference. Having the<br>
rectangle interior white and its border thick and black is good, because<br>
 it ensures that the reference will be always clearly visible,<br>
regardless of whether the photo is dark or bright.<br>
However, as the border is thick, it may significantly overlap with the<br>
interior, which is highly unwanted, because it will look smaller.<br>
Therefore, in this case, I would like to draw the border, but all of it<br>
should be outside of the patch primary area.<br>
And I am sure that there are use cases for the opposite situation.<br>
<br>
TL;DR: Take a look at the attached picture to see what I have in mind -<br>
I would like to use "outer borders" (red) or "inner borders", or<br>
classical ones, depending on my needs.<br>
<br>
Is there a user possibility to influence how the border is drawn? If<br>
not, how difficult would it be to implement this in matplotlib?<br>
<br></div></div>
_______________________________________________<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>
</blockquote></div>
<br>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">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>