<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>I want to second Ben's email: I highly recommend his book. I fumbled around for a long time with minor interactive matplotlib features. Then I read his book and it completely clarified my mental model of mpl interactivity and, indeed, of GUIs in general. Thanks Ben!<br></div>
<div><br></div>
<div>Here's an excerpt that describes my situation quite well:<br></div>
<div><br></div>
<div>"""</div>
<div>Indeed, given that the primary audience for Matplotlib is scientific programmers<br></div>
<div>for whom GUIs are, at best, an afterthought, Matplotlib provides a gradual curve<br></div>
<div>to create full-fledged GUI applications. For simple GUI tasks, one can go quite far with Matplotlib without ever having to adopt a GUI platform. And, as we will see in the next chapter, taking those final steps into a GUI application would not require getting rid of any existing code.<br></div>
<div>"""</div>
<div><br></div>
<div>Juan.</div>
<div><br></div>
<div>On Tue, Apr 3, 2018, at 12:17 PM, Benjamin Root wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div><div>You can't get that feature out-of-the-box, but it is possible to construct such a feature with some work. You can create callbacks functions that take x/y coordinates to create a new figure window with remade imshow()'s. You might want to consider picking up a copy of my book, "Interactive Applications using Matplotlib", particularly focusing on chapter 2 on the callback system.<br></div>
</div>
<div>I hope that helps!<br></div>
</div>
<div><div>Ben Root<br></div>
</div>
</div>
<div><div><br></div>
<div defang_data-gmailquote="yes"><div>On Sun, Apr 1, 2018 at 6:08 PM, Sab VS <span dir="ltr"><<a href="mailto:sabvs647@gmail.com">sabvs647@gmail.com</a>></span> wrote:<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div><div><div>Hi,<br></div>
</div>
<div>I am trying to oom in on the image data plotted in 2 subplots using matplotlib. However, the zooming in needs to take into consideration both the images which are being displayed in the subplot. If I have 2 images on the subplot, I can click any one of these images. I then get the x and y coordinates. But I am not sure how to open a new window with the clicked coordinates and 5 or 10 pixels around the clicked coordinates and display it in a new window.<br></div>
<div><br></div>
</div>
<div>Could someone please help me out?<br></div>
</div>
<div><br></div>
<div>______________________________<wbr>_________________<br></div>
<div> Matplotlib-users mailing list<br></div>
<div> <a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br></div>
<div> <a href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br></div>
<div> <br></div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>Matplotlib-users mailing list<br></div>
<div><a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br></div>
<div><a href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br></div>
</blockquote><div><br></div>
</body>
</html>