[matplotlib-devel] Mixed-mode rendering

2008-05-03 Thread Eric Bruning
, Eric Bruning Graduate Research Assistant, Meteorology, Univ. Oklahoma As of 6/1/2008, Research Assoc., Univ. Maryland/CICS and NOAA/NESDIS/STAR - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss

Re: [matplotlib-devel] TextCollection

2008-07-22 Thread Eric Bruning
On Jul 22, 2008, at 6:26 PM, Ryan May [EMAIL PROTECTED] wrote: John Hunter wrote: On Mon, Jul 21, 2008 at 11:35 PM, Ryan May [EMAIL PROTECTED] wrote: Hi, Has anyone ever thought about creating a TextCollection class? The purpose would be similar to the other collections, to group a

Re: [matplotlib-devel] Scale independent drawing

2008-07-22 Thread Eric Bruning
On Tue, Jul 22, 2008 at 6:55 PM, Eric Firing [EMAIL PROTECTED] wrote: Ryan May wrote: Hi, I'll continue my current flood of emails to the list. :) I'm finally getting back to my work on Skew-T plots, and I have a semi-working implementation (attached.) It runs, and as is, plots up some of

[matplotlib-devel] Before/after callback registry decorator

2008-07-22 Thread Eric Bruning
I've expanded a bit on my previous solution for pre/post draw method callbacks to add a registry which can be used to connect up arbitrary callback functions. The solution above is easy to adapt to other functions that might need a callback, such as (to pick a random example) set_xlim. See the

[matplotlib-devel] Alternate lasso: click to form polygon

2008-07-29 Thread Eric Bruning
I wanted something more precise (and easier on the carpal tunnel) than the included Lasso widget. Inspired by the existing Lasso, I forked out an alternate approach that creates a polygon with mouse clicks and returns a list of vertices to a callback function. See the attached for a demo. It's

Re: [matplotlib-devel] Native backend for Mac OS X

2008-10-28 Thread Eric Bruning
Nice work ... and an ambitious effort. I've gotten it running, and am a bit perplexed by some of the performance I'm seeing. Specifically, the following bit takes well over twice as long to run as does WxAgg. Does this align with others' testing? The only difference I detect is that the Mac

Re: [matplotlib-devel] SVG clickable images

2008-10-30 Thread Eric Bruning
Another use case in favor of implementation of the URL property at the artist level: Consider a map with scatter points representing geolocated photos that can be viewed at some URL. Attach a mouse click on the artist to the following code: import webbrowser webbrowser.open(patch.url) And you

[matplotlib-devel] Loss of filled vs. stroked distinction by Collections

2008-12-11 Thread Eric Bruning
I think of artists as having visual properties that persist (e.g., filled vs. outlined, a colormap with min and max values) even as data associated with the artist is changed. In the edge case described below, this doesn't seem to hold true. I have code that animates a scatter plot by

Re: [matplotlib-devel] Loss of filled vs. stroked distinction by Collections

2008-12-15 Thread Eric Bruning
Thanks for the fix - works for me on this afternoon's SVN. -Eric On Mon, Dec 15, 2008 at 1:27 AM, Eric Firing efir...@hawaii.edu wrote: Eric Bruning wrote: I think of artists as having visual properties that persist (e.g., filled vs. outlined, a colormap with min and max values) even as data

Re: [matplotlib-devel] Native backend for Mac OS X

2008-12-17 Thread Eric Bruning
Hi Michiel, +1 to Chris Barker's request for information on where Agg makes extra calls to draw(). The 20% speedup in scatter performance is nice, and is clearly related to Agg. Any idea why the pcolormesh example is so much slower in Mac OS X than TkAgg? Thanks for your continued work on this.

[matplotlib-devel] Rasterized artists have wrong transform

2009-02-19 Thread Eric Bruning
I just updated to the latest svn, and unveiled a bug that's evident when using mixed-mode rendering in the PDF backend. I'm suspect I'm the only one running my patch that enables set_rasterized on a per-artist basis, so I'm the only one that's seeing it. :) Artists that are left in vector mode are

Re: [matplotlib-devel] File format for plots

2009-03-03 Thread Eric Bruning
One of the mpl backends is svg; can you use something like Inkscape to make the plot adjustments you are talking about? Eric [F] I'll second this recommendation - indeed, it's my default workflow (except that I use Illustrator). By definition, vector image formats contain all the data needed

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-03-23 Thread Eric Bruning
the dpi setting and forces 72 dpi across the board, which is why I was able to use it as a workaround. Thanks, Eric Regards, -JJ On Thu, Feb 19, 2009 at 4:01 PM, Eric Bruning eric.brun...@gmail.com wrote: I just updated to the latest svn, and unveiled a bug that's evident when using mixed-mode

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-03-24 Thread Eric Bruning
I don't quite like my solution but it seems to work. It passes over the figure instance when initializing the MixedRenderer, and let the renderer change the dpi of the figure when changing the backend. I hope some other developer who better understands the dpi thing take a look and come up

Re: [matplotlib-devel] OpenGL backend and pyglet expertiments

2009-04-03 Thread Eric Bruning
The idea of a shell with inline plots is a fascinating one - I like the minimalism and directness of being able to plot data like this. And the speed of OpenGL is obviously attractive. Is the figure() call syntax different from the existing syntax for figure()? I think there's a usage pattern

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-04-21 Thread Eric Bruning
On Thu, Apr 16, 2009 at 1:38 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Eric and others, I just committed the fix for this problem to the trunk. It should also work with the svg backend. Thanks, that's fantastic. I'm glad to have the fix in place. On a somewhat related note, how are you

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-04-23 Thread Eric Bruning
On Thu, Apr 23, 2009 at 3:06 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Tue, Apr 21, 2009 at 10:42 PM, Eric Bruning eric.brun...@gmail.com wrote: On a somewhat related note, how are you turning rasterization on and off? Are you using my per-artist patch (which last I knew wasn't in trunk

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-04-26 Thread Eric Bruning
The discussion about what to do with my patch fizzled. I created a decorator that made mixed-mode switching a one-line change per artist type. I also added get/set_rasterized and an _rasterized attribute to the Artist base class. I've used it on and off for a few months now with no noted

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-04 Thread Eric Bruning
On Wed, Apr 29, 2009 at 4:17 PM, Eric Firing efir...@hawaii.edu wrote: Jae-Joon Lee wrote: On Sun, Apr 26, 2009 at 11:31 PM, Eric Bruning eric.brun...@gmail.com wrote: I like that this solution doesn't litter every call to draw with rasterize checks. But it means that the rasterization

Re: [matplotlib-devel] crazy ideas for MPL

2009-07-02 Thread Eric Bruning
On Wed, Jul 1, 2009 at 9:51 PM, Andrew Strawstraw...@astraw.com wrote: Gael Varoquaux wrote: On Wed, Jul 01, 2009 at 08:39:30AM -0500, John Hunter wrote: Anyone interested?  And if so, feel free to suggest topics or weigh in on some I listed. Actually, I have something I would like to

[matplotlib-devel] building from SVN on Mac OS X 10.5

2009-08-17 Thread Eric Bruning
Just got a new Mac, and went with Python 2.6 from python.org on OS X 10.5. My experience building Matplotlib was less than smooth, and I thought I'd pass along what eventually wound up working. To summarize: 1. Rolling your own libpng and freetype in /usr/local appears to lead to a lot of

Re: [matplotlib-devel] building on OSX

2009-08-25 Thread Eric Bruning
Hi Ariel, Thanks for the suggestion. Combining John's new makefile with the changes to the Python.framework Makefile yielded: distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.4 but 10.5 during configure. As a general philosophy, I'm a bit hesitant to go about

[matplotlib-devel] Basemap.shiftgrid without cyclic point

2009-10-15 Thread Eric Bruning
I'm using basemap to plot a dataset* that has longitude values like so: lon = [0, 2, 4, ..., 356, 358] I'd like to use Basemap.shiftgrid to transform the longitudes and data to the -180, 180 interval, but I get 'ValueError, cyclic point not included' since 360 isn't among the longitudes.

[matplotlib-devel] Memory leak with rasterized pcolormesh and savefig

2010-04-27 Thread Eric Bruning
Hi all, I've come across a memory leak when saving multiple figures in a row. The figure contains a single pcolormesh artist, which I need to rasterize in my application. However, turning on rasterization causes a memory leak.The attached script reproduces the problem; swap out the commented

Re: [matplotlib-devel] Thoughts about callbacks

2010-10-28 Thread Eric Bruning
On Mon, Oct 25, 2010 at 9:40 AM, Michael Droettboom md...@stsci.edu wrote:  On 10/23/2010 06:05 PM, David Carmean wrote: As I blurted on -users, I'm thinking lately about callbacks in the non-GUI portions of the libraries--mostly Artist and subclasses. I'm curious if anybody else has been

[matplotlib-devel] blit support in webagg / nbagg backends?

2014-08-29 Thread Eric Bruning
I see that supports_blit=False in FigureCanvasWebAggCore. Is there a technical limitation that prevents this, or is it a matter of someone finding time to do the implementation? Absence of blit support doesn't seem to crash code that uses it (in my case, a lasso tool), but I also see no output to