Anaconda Mac or matplolib bug ?

Hello.

I do not know the guilty people in this story. The following code works with Anaconda Python 3 on Lubuntu 14 but it does not with Anaconda Python 3 Mac OS Maverick. Why ?

This message has been posted on both the list of Anaconda and the one of matplotlib.

Christophe

=== Code ===

Source

* http://matplotlib.org/1.3.1/users/image_tutorial.html

import matplotlib.pyplot as plt

import matplotlib.image as mpimg

impath = path2stinkbug_png"

im = mpimg.imread(impath)

implot = plt.imshow(im)

plt.show()

The example works fine with matplotlib 1.4.0, python 3.4.0 (not from Anaconda) with Mac OS X Maverick.

Best,
-Michiel.

···

--------------------------------------------
On Wed, 9/17/14, Christophe Bal <projetmbc@...287...> wrote:

Subject: [Matplotlib-users] Anaconda Mac or matplolib bug ?
To: anaconda@...4497..., matplotlib-users@lists.sourceforge.net
Date: Wednesday, September 17, 2014, 2:19 AM

Hello.
I do not know the guilty people in this story.
The following code works with Anaconda Python 3 on Lubuntu
14 but it does not with Anaconda Python 3 Mac OS Maverick.
Why ?
This message has been posted on both the list of
Anaconda and the one of matplotlib.
Christophe
=== Code ===
# Source# * http://matplotlib.org/1.3.1/users/image_tutorial.html
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
impath = path2stinkbug_png"im =
mpimg.imread(impath)
implot = plt.imshow(im)
plt.show()

-----Inline Attachment Follows-----

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
-----Inline Attachment Follows-----

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

If you don’t get an error message, and you don’t get a window, it probably means you matplotlib is defaulting to the Agg backend. The backend is set by default in site-packages/matplotlib/mpl-data/matplotlibrc . What does this report?:

import matplotlib

print(matplotlib.rcParams[‘backend’])

On my system, it reports ‘Qt4Agg’. If your reports ‘Agg’, you can copy that matplotlibrc file into your ~/.matplotlib directory, and edit the backend based on whatever GUI toolkit you have installed or prefer.

Darren

···

On Tue, Sep 16, 2014 at 10:27 PM, ‘Michiel de Hoon’ via Anaconda - Public <anaconda@…4497…> wrote:

The example works fine with matplotlib 1.4.0, python 3.4.0 (not from Anaconda) with Mac OS X Maverick.

Best,

-Michiel.


On Wed, 9/17/14, Christophe Bal <projetmbc@…287…> wrote:

Subject: [Matplotlib-users] Anaconda Mac or matplolib bug ?

To: anaconda@…4497…, matplotlib-users@…431…ists.sourceforge.net

Date: Wednesday, September 17, 2014, 2:19 AM

Hello.

I do not know the guilty people in this story.

The following code works with Anaconda Python 3 on Lubuntu

14 but it does not with Anaconda Python 3 Mac OS Maverick.

Why ?

This message has been posted on both the list of

Anaconda and the one of matplotlib.

Christophe

=== Code ===

Source# * http://matplotlib.org/1.3.1/users/image_tutorial.html

import matplotlib.pyplot as plt

import matplotlib.image as mpimg

impath = path2stinkbug_png"im =

mpimg.imread(impath)

implot = plt.imshow(im)

plt.show()

-----Inline Attachment Follows-----


Want excitement?

Manually upgrade your production database.

When you want reliability, choose Perforce.

Perforce version control. Predictably reliable.

http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

-----Inline Attachment Follows-----


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Anaconda Community Support Group Brought to you by Continuum Analytics


You received this message because you are subscribed to the Google Groups “Anaconda - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+unsubscribe@…4497…

To post to this group, send email to anaconda@…4497…

Visit this group at http://groups.google.com/a/continuum.io/group/anaconda/.