[Matplotlib-users] Problem with "set_array" function

2012-11-08 Thread Sebastian Rhode
Hi guys, I have a problem with the "set_array" function. In a example from the matplotlib homepage this works fine, but when I tries to adaot to my needs, the image just stays the same. No Update, but also no error messages: see On Timer function --> the plot is just created during the start but

[Matplotlib-users] Plot data from file while is file is constantly updated

2012-11-08 Thread Sebastian Rhode
Hi, I have a textfile where every second a line is written. Usually the look like this: 1; 124; 455 a second later 1; 124; 455 2; 104; 600 ... Finally such a file is quite easy to plot using matplotlib. But what would be very useful for me is a script, that is watching the TXT file and update

[Matplotlib-users] Savefig Question

2011-07-08 Thread Sebastian Rhode
Hi, I use the followng function for my application: def OnSaveAs(self, event): dlg = wx.FileDialog(self, 'Choose a Filename', os.getcwd(), '', '*.png*', wx.SAVE | wx.OVERWRITE_PROMPT) if dlg.ShowModal() == wx.ID_OK: savename = dlg.GetPath() self.page_graph.figure.s

[Matplotlib-users] Missing Toolbar Button inside Wx Application

2010-09-29 Thread Sebastian Rhode
self.toolbar.Realize() self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) self.toolbar.Show() self.SetSizer(self.sizer) self.Fit() ... -- Dr. Sebastian Rhode Grünwalder Str. 103a 81547 München Tel: +49 89 4703091 Mobil: +49 15122810945

[Matplotlib-users] Show pixelated image using imshow

2010-02-25 Thread Sebastian Rhode
Hi, I would like to show an image using the imshow function. Thsi is quite trivial, but what I acn not figure out so far, is how to display the image without any interpolation. For my application it is useful to really see the individaul pixel and the borders between them. Setting interpolation=No

[Matplotlib-users] Display Pixel intensity

2010-02-23 Thread Sebastian Rhode
Hi, has anyone a good idea how to interactively display the xy coordintes (as whole numbers) and the pixel intensity using the mouse cursor. Here is the code snippet: ... fig = plt.figure() ax1 = fig.add_subplot(111) channel_select = 1 p = imread(filename) # normally I use TIFF file if (p.ndim >

[Matplotlib-users] Problem with updating the plot

2009-12-09 Thread Sebastian Rhode
as soon as I check the check item, the graph is not updated right away If I select show405 first, I see nothing, but if I open a dataset afterwards with openls, both graphs are shown. So the graph from show405 must be somewhere ... Thanks for your help. Cheers, Sebi ---

[Matplotlib-users] Beginner Problem with drawing

2009-12-04 Thread Sebastian Rhode
x) ex = normspec_filter(ex) self.gex, = self.axes.plot(ex[:,0],ex[:,1],'b', lw=2,label = mypathex) #self.axes.plot(ex[:,0],ex[:,1],'b', lw=2,label = mypathex) self.axes.axis([xmin,xmax,ymin,ymax]) self.axes.legend(l

[Matplotlib-users] Delete Line & legend from graph using matplotlib & wxPython

2009-09-02 Thread Sebastian Rhode
good ides how to achieve this? Cheers, Sebi -- Dr. Sebastian Rhode Grünwalder Str. 103a 81547 München Tel: +49 89 4703091 sebrh...@googlemail.com -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Da