Matplotlib 0.90.0 on OS-X with wxPython2.8.3

Hi all,

I've got the MPL 0.90.0 installer on pythonmac working OK with:

Python2.5
wxPython2.8.3

I accomplished this by removing:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_wxagg.so

Which disables the accelerator that doesn't work with wxPython 2.8

What we really need to do is get Ken's changes into a release, but I have my immediate needs met.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Do I need to manually remove _wxagg.so in order to use the new packages?

Thanks Chris!
-stephen

···

On 4/11/07, Christopher Barker <Chris.Barker@...259...> wrote:

Hi all,

I've got the MPL 0.90.0 installer on pythonmac working OK with:

Python2.5
wxPython2.8.3

I accomplished this by removing:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_wxagg.so

Which disables the accelerator that doesn't work with wxPython 2.8

What we really need to do is get Ken's changes into a release, but I
have my immediate needs met.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Stephen Uhlhorn wrote:

Do I need to manually remove _wxagg.so in order to use the new packages?

if you want to use them with wxPython 2.8.*, yes.

They *should* work with 2.6.*, with _wxagg.so, but I haven't tested that. This should all be better with the next release.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Just to be clear, the installation order is:

1) install python2.5 from macpython.
2) remove wxagg.so
3) install wxpython frim macpython
4) install numpy/mpl from macpython

Correct?
-stephen

···

On 4/12/07, Christopher Barker <Chris.Barker@...259...> wrote:

Stephen Uhlhorn wrote:
> Do I need to manually remove _wxagg.so in order to use the new packages?

if you want to use them with wxPython 2.8.*, yes.

They *should* work with 2.6.*, with _wxagg.so, but I haven't tested
that. This should all be better with the next release.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Stephen Uhlhorn wrote:

Just to be clear, the installation order is:

1) install python2.5 from macpython.
2) remove wxagg.so
3) install wxpython frim macpython
4) install numpy/mpl from macpython

that's out of order. wxagg.so is part of mpl, so:

1) install python2.5 from macpython.
2) install wxpython frim macpython
3) install numpy/mpl from macpython
4) remove wxagg.so

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

One more question:

What impact does disabling the "accelerator" have? Will this slow down
plotting in some situations?

-stephen

···

On 4/12/07, Christopher Barker <Chris.Barker@...259...> wrote:

Stephen Uhlhorn wrote:
> Just to be clear, the installation order is:
>
> 1) install python2.5 from macpython.
> 2) remove wxagg.so
> 3) install wxpython frim macpython
> 4) install numpy/mpl from macpython

that's out of order. wxagg.so is part of mpl, so:

1) install python2.5 from macpython.
2) install wxpython frim macpython
3) install numpy/mpl from macpython
4) remove wxagg.so

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Stephen Uhlhorn wrote:

What impact does disabling the "accelerator" have? Will this slow down
plotting in some situations?

yes. the accelerator uses C++ code to build a wxImage from the Agg buffer, so it *should* be a bit faster at transferring the image to the screen.

If you're drawing is slow because you're drawing lots of stuff, it won't make a difference, as it only effects the transfer of the final image to the screen.

I don't' think you'll notice unless you're doing some kind of animation.

-Chris

···

-stephen

On 4/12/07, Christopher Barker <Chris.Barker@...259...> wrote:

Stephen Uhlhorn wrote:

Just to be clear, the installation order is:

1) install python2.5 from macpython.
2) remove wxagg.so
3) install wxpython frim macpython
4) install numpy/mpl from macpython

that's out of order. wxagg.so is part of mpl, so:

1) install python2.5 from macpython.
2) install wxpython frim macpython
3) install numpy/mpl from macpython
4) remove wxagg.so

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...