<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 dir="ltr">On Sun, Jun 5, 2016 at 6:36 PM Matěj Týč <<a href="mailto:matej.tyc@gmail.com">matej.tyc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
_______________________________________________<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>