<div dir="ltr">Good to know that you have a work-around. Do you mind filing a bug report on this?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 5:23 PM, Edward Richards <span dir="ltr"><<a href="mailto:edwardlrichards@gmail.com" target="_blank">edwardlrichards@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I sent the original message to the source forge mailing list. Woops. Thanks for the response anyways.<br>
<br>
The span stays highlighted when I set useblit=False. The performance hit isn't too bad, and I will stay with this option for the moment.<br>
<br>
*** Response ***<br>
<br>
Have you tried setting "useblit=False"? If that works, I wonder if we accidentally broke something in the recent widget interactivity work...<br>
<br>
<br>
Ben Root<br>
<br>
*** Original Message ***<br>
<br>
I am selecting a region of a color plot with span selector, and I would like the selected region to stay highlighted. I found the span_stays flag, but the selection rectangle still disappears after I release the mouse.<br>
<br>
Any help is appreciated.<br>
Thanks,<br>
Ned<br>
<br>
My backend is 'TkAgg'<br>
<br>
I am running the script from python3.4 at the command line, my version is:<br>
<br>
Python 3.4.3 (default, Jun 19 2015, 05:46:30)<br>
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
<br>
print(matplotlib.__version__)<br>
1.5.0<br>
<br>
code example:<br>
<br>
import numpy as np<br>
import matplotlib.pyplot as plt<br>
from matplotlib.widgets import SpanSelector<br>
<br>
test_data = np.random.randn(1000, 1000)<br>
fig, ax = plt.subplots()<br>
ax.imshow(test_data)<br>
<br>
def selection(x1, x2):<br>
    """This function isn't the point"""<br>
    pass<br>
<br>
span = SpanSelector(ax, selection, 'horizontal', useblit=True,<br>
                    rectprops=dict(alpha=0.5, facecolor='red'), span_stays=True)<br>
plt.show()<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><br></div>