[Matplotlib-users] Pick Event - twinx

2012-11-03 Thread Arek Kedzior
Hi all,
I am aware when using overlapping axes twinx I can only pick the objects in the 
active axes.
I would like to pick objects (lines) in both axes.
Does anyone have the workaround to this problem

Regards,
ArekĀ 

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Force focus on Figure

2012-11-03 Thread Bob Kestner
Hello,



I have a package that has many functions that bring up plots to show data and 
interactive plots to interact with data.  How can I have my figures show and 
both be on top and be in focus? The best way I have found to manage Matplotlib 
plots in my package is to use interactive mode plt.ion() and pause the program 
with raw_input() statements to show or interact with the plots. This has been 
working fine with one exception. I have not been able to figure out how have 
the plot figure come up and have the figure both be on top and in focus. I am 
using Window XP,Python 2.5.4, Matplotlib version 1.0.0 with backend Tkagg. Tk 
has a command focus_force(), I have not been able to find a similar command in 
Matplotlib. 



This is a simple example demonstrating the plotting behavior. The second plot 
is rendered but is not in windows focus. 

 

import matplotlib.pyplot as plt
plt.ion()
fig = plt.figure(figsize=(10,8))
ax = fig.add_axes([.15,.1,.8,.65])
ax.plot([1,2,3])
ax.set_title('Fisrt Plot')
raw_input('Enter to close and Continue: ')
plt.close(fig)
fig2 = plt.figure(figsize=(10,8))
ax = fig2.add_axes([.15,.1,.8,.65])
ax.plot([1,2,3])
ax.set_title('Second Plot')
raw_input('Enter to close and Continue: ')
plt.close(fig2)

 

 

Thank you,

 

Bob Kestner
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users