<div dir="ltr">That seems like an intentional change to me, but one we might want to reconsider.<div><br></div><div>I think this change went in via <a href="https://github.com/matplotlib/matplotlib/pull/3937">https://github.com/matplotlib/matplotlib/pull/3937</a>  </div><div><br></div><div>At a minimum, the selector should probably grow an option to preserve the order.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 15, 2016 at 12:56 PM Dale Huffman <<a href="mailto:deh@case.edu">deh@case.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was using the RectangleSelector widget from an older version of<br class="gmail_msg">
matplotlib and it returned the eclick and erelease objects, matching the<br class="gmail_msg">
example code in the docstring.  The eclick.xdata and eclick.ydata<br class="gmail_msg">
matched the click event and the erelease.xdata and erelease.ydata<br class="gmail_msg">
matched the release event.<br class="gmail_msg">
In the new 1.5.3 version (probably recent older versions also - not sure<br class="gmail_msg">
exactly when it changed) it is only returning the extents of the<br class="gmail_msg">
rectangle, regardless of whether they occurred on the click or release<br class="gmail_msg">
event.  For example if you select the rectangle from top/left to<br class="gmail_msg">
bottom/right you get the same values as is you have selected from<br class="gmail_msg">
bottom/left to top/right.<br class="gmail_msg">
Unfortunately, I am using this information to do different things, base<br class="gmail_msg">
on the direction of the rectangle selection.  Is this new method<br class="gmail_msg">
intentional, or is it a bug?  I've made a crappy patch for the code to<br class="gmail_msg">
work for me, but obviously don't want to do this at each update to<br class="gmail_msg">
matplotlib.  Either way it seems to me that either the docstring needs<br class="gmail_msg">
to be updated to show the new extents based version or the code changed<br class="gmail_msg">
to return the actual data from the two events, instead of just the<br class="gmail_msg">
extents of the rectangle.<br class="gmail_msg">
Please educate me if I'm completely off base here.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Matplotlib-users mailing list<br class="gmail_msg">
<a href="mailto:Matplotlib-users@python.org" class="gmail_msg" target="_blank">Matplotlib-users@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br class="gmail_msg">
</blockquote></div>