Re: [matplotlib-devel] [Numpy-discussion] glumpy, fast opengl visualization

2010-01-27 Thread Gregor Thalhammer
2010/1/25 Nicolas Rougier : > > > Hello, > > This is an update about glumpy, a fast-OpenGL based numpy visualization. > I modified the code such that the only dependencies are PyOpenGL and > IPython (for interactive sessions). You will also need matplotlib and > scipy for some demos. > > Sources: h

[matplotlib-devel] plot([], [], drawstyle = 'steps') fails

2009-02-23 Thread Gregor Thalhammer
Hi all, sorry, only reporting, no bugfix. I just discovered that an empty plot with drawstyle 'steps', 'steps-pre', 'steps-mid' and 'steps-post' fails. I am using matplotlib 0.98.5.2. Example plot([], [], drawstyle = 'steps') ... C:\Python25\lib\site-packages\matplotlib\lines.pyc in _draw_st

[matplotlib-devel] scatter and alpha

2008-12-12 Thread Gregor Thalhammer
I found that in scatter plots the alpha values given by individual entries in the color list are ignored. Here an example that shows different combinations of color and alpha arguments: x = [1,2,3] y = array([1,1,1]) c = [[1,0,0, 0.0], [1,0,0, 0.5], [1,0,0, 1.0]] scatter(x, y, s = 200

Re: [matplotlib-devel] help request: wx, tk, qt backend leave event

2008-12-03 Thread Gregor Thalhammer
2008/12/2 Darren Dale <[EMAIL PROTECTED]> > > > On Tue, Dec 2, 2008 at 10:41 AM, John Hunter <[EMAIL PROTECTED]> wrote: > >> On Tue, Dec 2, 2008 at 8:34 AM, Gregor Thalhammer >> <[EMAIL PROTECTED]> wrote: >> >> > If a mouse button is presse

Re: [matplotlib-devel] help request: wx, tk, qt backend leave event

2008-12-03 Thread Gregor Thalhammer
> > Can you update, repatch wx to use it (and Darren qt)? > I attached a patch that emits a enter_notify_event if the mouse enters the figure. Now the example behaves correctly. Gregor Index: backend_wx.py === --- backend_wx.py (Revi

Re: [matplotlib-devel] help request: wx, tk, qt backend leave event

2008-12-02 Thread Gregor Thalhammer
John Hunter schrieb: I recently added support for a figure/axes enter/leave event. The figure enter and axes enter/leave are easy to do with nothing new in the backends, just using the native mpl events. The figure leave event is harder, because when a user leaves a figure and activates another

Re: [matplotlib-devel] [Matplotlib-users] Crosshai cursor or Selector with matplotlib.backends.backend_wxagg

2008-11-11 Thread Gregor Thalhammer
[EMAIL PROTECTED] schrieb: > Dear all, > > after looking around for a plotting library I found Matplotlib and I tried to > create a gray scale image in a wxpython application. Looks good! > > Now I have to find a line in the image with mainly vertical orientation. To > do this a crosshair cursor

Re: [matplotlib-devel] navigation toolbar keyboard shortcuts patch

2008-10-17 Thread Gregor Thalhammer
Paul Ivanov schrieb: > Hi, > > I'm a big fan of keyboard shortcuts, so I decided to add these guys to > lib/matplotlib/backend_bases.py > > I'm not sure if this is too much, and maybe these should be configurable > down the line, but here's my first stab at it, what do you all think? > > in

[matplotlib-devel] unexpected behaviour of get_xlim

2008-10-10 Thread Gregor Thalhammer
Dear developers, the following example shows a somewhat unexpected behaviour of the get_xlim() method of an axis object: it returns a view to the internal data structure used to store the data limits. Because of this saving and restoring the data limits failed in this example (I am using matplo

[matplotlib-devel] scatter and alpha settings

2008-10-06 Thread Gregor Thalhammer
Dear developers, in matplotlib 0.98.3 I discoverd that in scatter individual alpha settings (by giving a list of rgba values) are ignered. Here an example that show this behaviour: All points show the same alpha value as given by the alpha keyword argument. (Omitting it equals to the setting al

Re: [matplotlib-devel] new legend interface and WXAgg interactive mode

2008-09-17 Thread Gregor Thalhammer
John Hunter schrieb: >> Second, I am using interactive mode and WXAgg in windows. So my startup >> script does this: >> import matplotlib as _mpl >> _mpl.use('WXAgg') >> import pylab as _p >> _p.ion() >> Before, when I would then type >> gca().plot([1,2,1]) >> > > I would not expect a draw her

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
John Hunter schrieb: > On Mon, Jun 9, 2008 at 10:18 AM, > > >> I attached a patch against the current svn version that adds a 'resample' >> argument to imshow. Additionally, this patch supports a 'image.resample' >> entry in the rc file. Setting this to false (default), the behaviour is >> uncha

[matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
supports a 'image.resample' entry in the rc file. Setting this to false (default), the behaviour is unchanged. I also attached a simple test script (test_imshow.py) to show the difference between image display with and without resampling. To see the difference it might be necessary t

Re: [matplotlib-devel] wx back-end bugs/issues

2008-05-07 Thread Gregor Thalhammer
John Hunter schrieb: > On Tue, May 6, 2008 at 8:49 AM, Gregor Thalhammer > <[EMAIL PROTECTED]> wrote: > > >> I also discovered this behaviour. It seems to be a Windows only specific >> behaviour that only affects the bitmaps of the disabled (or grayed out) &g

Re: [matplotlib-devel] wx back-end bugs/issues

2008-05-06 Thread Gregor Thalhammer
Chris Barker schrieb: Hi all, I usually use MPL embedded in wx, so I haven't noticed these before but with the pylab window: 1) A couple icons seem to be missing. See screenshot enclosed. I also discovered this behaviour. It seems to be a Windows only specific behaviour that only affects the

Re: [matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-04-14 Thread Gregor Thalhammer
Hi Christopher, thanks for your valueable feedback. I am proceeding slowly, but steadily. > > > backend_qtagg.py seems to contain a proper (more or >> less, see other postings of Ted Drain) implementation of double >> buffered drawing that avoids unnecessary rerendering of the bitmap. > > It stil

Re: [matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-04-07 Thread Gregor Thalhammer
Here I attached diff files of my changes, compared to matplotlib-0.91.2 release. Gregor Thalhammer --- Kopie von backend_wx.py Mon Mar 31 10:28:22 2008 +++ backend_wx.py Sun Apr 6 10:23:09 2008 @@ -752,11 +752,14 @@ self._isRealized = False self._isConfigured

Re: [matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-04-07 Thread Gregor Thalhammer
imilar to the QtAgg backend, but (for the moment) I wanted to try only simple changes. Anyhow, the Wx backend seems to be in some aspects outdated (uses old style wx methods, e.g. ToolBar.AddTool) and is even not fully functional (image support missing). What are the plans for the future?

[matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-03-31 Thread Gregor Thalhammer
Dear developers, I discovered that in backend_wx.py in _onPaint(), the callback function for repainting a matplotlib figure, every time a repaint is done also the bitmap is rerendered: backend_wx.py/_onPaint(): ... # Render to the bitmap self.draw(repaint=False) ... This also affects the behav

[matplotlib-devel] weird outline with fill

2006-08-18 Thread Gregor Thalhammer
filling, eps doesn't support this. Creating a high resolution png and downscaling improves the result, but this is tedious and time consuming. Any help is appreciated! Thanks in advance Gregor Thalhammer PS. Is this the right place to discuss such problems?