wxmpl incompatibility with matplotlib 0.98.x

Hi,

Sorry if bothering you. Here we use a software (that I've written) that is based on wxmpl and matplotlib, among other things. A collegue of mine noticed a problem when installing it on Windows, with the following error:

   File "hooke.py", line 21, in <module>
     import wxmpl
   File "C:\Python25\lib\site-packages\wxmpl.py", line 26, in <module>
     from matplotlib.axes import PolarAxes, _process_plot_var_args
ImportError: cannot import name PolarAxes

He was using matplotlib 0.98.3 .Downgrading to 0.91 solved the issue.
I remember the same happened when, some month ago, I tried to install the same software on OS X using what were basically SVN versions of mpl, labeled "0.98pre" (see http://macinscience.org/?page_id=6 )

I guess you are probably aware of the problem: are you already working on it :slight_smile: ? Is there any workaround?

I'd like to help you patching it, if within my skills, but I'd need some direction on how the mpl API have been updated.

m.

···

--
Massimo Sandal , Ph.D.
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
massimo.sandal@...898...

web:
http://www.biocfarm.unibo.it/samori/people/sandal.html

tel: +39-051-2094388
fax: +39-051-2094387

I'm not aware of the problem (but I'm not a regular wxmpl user).

From 0.91 to 0.98, a major refactoring was done to make it easier to add new kinds of projections. So PolarAxes is no longer a special case, it is just one of many possible non-Cartesian projections. Unfortunately to do this, the API had to change in a number of places. These are documented in the API_CHANGES file in the "TRANSFORMS REFACTORING" section.

wxmpl needs to be updated based on those instructions in order to be compatible with mpl 0.98. Hopefully that process won't be too difficult, but it's hard to say without trying. basemap, a fairly large mpl toolkit, was able to handle the transition fairly smoothly.

Let me know if I can be of further assistance.

Cheers,
Mike

massimo sandal wrote:

···

Hi,

Sorry if bothering you. Here we use a software (that I've written) that is based on wxmpl and matplotlib, among other things. A collegue of mine noticed a problem when installing it on Windows, with the following error:

  File "hooke.py", line 21, in <module>
    import wxmpl
  File "C:\Python25\lib\site-packages\wxmpl.py", line 26, in <module>
    from matplotlib.axes import PolarAxes, _process_plot_var_args
ImportError: cannot import name PolarAxes

He was using matplotlib 0.98.3 .Downgrading to 0.91 solved the issue.
I remember the same happened when, some month ago, I tried to install the same software on OS X using what were basically SVN versions of mpl, labeled "0.98pre" (see http://macinscience.org/?page_id=6 )

I guess you are probably aware of the problem: are you already working on it :slight_smile: ? Is there any workaround?

I'd like to help you patching it, if within my skills, but I'd need some direction on how the mpl API have been updated.

m.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Howdy,

···

On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <mdroe@...86...> wrote:

I'm not aware of the problem (but I'm not a regular wxmpl user).

From 0.91 to 0.98, a major refactoring was done to make it easier to
add new kinds of projections. So PolarAxes is no longer a special case,
it is just one of many possible non-Cartesian projections.
Unfortunately to do this, the API had to change in a number of places.
These are documented in the API_CHANGES file in the "TRANSFORMS
REFACTORING" section.

wxmpl needs to be updated based on those instructions in order to be
compatible with mpl 0.98. Hopefully that process won't be too
difficult, but it's hard to say without trying. basemap, a fairly large
mpl toolkit, was able to handle the transition fairly smoothly.

Are there any news on this front? Has wxmpl been updated, are there
plans to do so, or is it on hold for now?

Just curious...

Cheers,

f