Re: [Matplotlib-users] moving marker line under mouse

2011-12-13 Thread Sven Duscha
Hi, For anyone still interested in this topic: I implemented a provisional solution myself, but it turned out that there is indeed already an example for a marker/cursor in the matplotlib documentation. It can be found at http://matplotlib.sourceforge.net/examples/pylab_examples/curso

Re: [Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
>>> Benjamin Root 12/07/11 4:16 AM >>> > > Use draw_idle() if performance is an issue. Also, you don't have to redraw > everything. You can save the object returned by avline() > and in subsequent draws, just modify the data. Usually, there is a set_data() > or a set_xy() method you can use f

[Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
Hi, I kind of got the basic functionality working using cid = self.fig.canvas.mpl_connect('motion_notify_event', self.update_marker) def update_marker(self, event): print "plotMarker()" # DEBUG self.marker=self.ax1 #print 'button=%d, x=%d, y=%d, xdata=%

[Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
Hi, how could I realize a moving marker line under the mouse pointer? I know about event handling http://matplotlib.sourceforge.net/users/event_handling.html and would use ‘ axes_enter_event’ to react on, then draw a line with axvline(x=event.xdata, linewidth=1, color='r') but how can

Re: [Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
>>> Sven Duscha 12/06/11 4:50 PM >>> On Dec 6, 2011, at 4:34 PM, Till Stensitzki wrote: > I think you have to plot something, else matplotlib don't know where to draw the > ticks. Thankfully that got solved; I had an additional self.ax1.get_xaxis().set_visible(

Re: [Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
ce code of the application is a bit overwhelming to be completely posted on the mailing list. Cheers, Sven -- Sven Duscha ASTRON P.O. Box 2 7990 AA, Dwingeloo, The Netherlands Phone: +31 521 595 241 Email: du

[Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
could simplify the matplotlib/QT integration? Cheers, Sven -- Sven Duscha ASTRON P.O. Box 2 7990 AA, Dwingeloo, The Netherlands Phone: +31 521 595 241 Email: dus...@astron.nl -- Cloud Services Checklist: Pricin

[Matplotlib-users] compiling matplotlib on Snow Leopard / tar error

2010-03-18 Thread Sven Duscha
I tried to follow the instructions given on http://blog.hyperjeff.net/?p=160 and modified the make.osx accordingly to compile matplotlib on OS X 10.6.2 (Snow Leopard). But after executing sudo make -f make.osx fetch deps mpl_build mpl_install I get the following error message: I had compiled