<div dir="ltr"><div>Done: <a href="https://github.com/matplotlib/matplotlib/pull/14464">https://github.com/matplotlib/matplotlib/pull/14464</a></div><div><br></div><div>btw, you can do stuff like this yourself :)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 6, 2019 at 9:43 AM Neal Becker <<a href="mailto:ndbecker2@gmail.com">ndbecker2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My suggestion is to enhance the documentation. If there is a nice<br>
tutorial, adding a link to it would be great.<br>
Thanks,<br>
Neal<br>
<br>
On Thu, Jun 6, 2019 at 9:39 AM Thomas Caswell <<a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</a>> wrote:<br>
><br>
> There is also a tutorial addressing the ways that `origin` and `extent` interact with each other: <a href="https://matplotlib.org/tutorials/intermediate/imshow_extent.html" rel="noreferrer" target="_blank">https://matplotlib.org/tutorials/intermediate/imshow_extent.html</a><br>
><br>
> As for the transpose, that is due to one branch of math teaching use to think (x, y) and different branch of math teaching us to think (row, column). For `imshow` we use the second one which is consistent with how numpy's repr of on array. It would be confusing if the data for `my_array[0, :]` was displayed as the first _column_ of the image.<br>
><br>
> I do not disagree that this is frustrating/confusing, there is a comment in some of my grad school code which is basically "getting the (x,y) vs (r,c) conversions right here took you an afternoon, don't touch this again!" ;)<br>
><br>
> Tom<br>
><br>
> On Thu, Jun 6, 2019 at 9:31 AM Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:<br>
>><br>
>> This is discussed in the description of the "origin" keyword argument:<br>
>><br>
>> origin : {'upper', 'lower'}, optional<br>
>><br>
>> Place the [0,0] index of the array in the upper left or lower left corner of the axes. The convention 'upper' is typically used for matrices and images. If not given, rcParams["image.origin"] is used, defaulting to 'upper'.<br>
>><br>
>> Note that the vertical axes points upward for 'lower' but downward for 'upper'.<br>
>><br>
>><br>
>> On Thu, Jun 6, 2019 at 9:25 AM Neal Becker <<a href="mailto:ndbecker2@gmail.com" target="_blank">ndbecker2@gmail.com</a>> wrote:<br>
>>><br>
>>> I just wasted quite a bit of time trying to debug my code. It took a long<br>
>>> time because I was using imshow to debug, and didn't know that imshow<br>
>>> displays a matrix not using cartesian coordinates. The axes are transposed<br>
>>> and one axis is reversed. The documentation doesn't mention this.<br>
>>><br>
>>> Thanks,<br>
>>> Neal<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>
>><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>
><br>
><br>
> --<br>
> Thomas Caswell<br>
> <a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</a><br>
<br>
<br>
<br>
-- <br>
Those who don't understand recursion are doomed to repeat it<br>
</blockquote></div>