matplotlib.lines.Line2D object at 0x283d310 - strange error

Hi,

I'm a bit new to matplotlib and python. I'm running ubuntu 64bit. whenever
I try and do anything with matplotlib I get an error similar to above. it
still works, i.e. when I run the show() command the plot will appear but all
matplotplib commands return an error similar to above. for example

In [15]: plot(a)
Out[15]: [<matplotlib.lines.Line2D object at 0x28487d0>]

In [16]: figure(2)
Out[16]: <matplotlib.figure.Figure object at 0x2ddc150>

Interestingly when I run from SPE and choose 'execute in shell' I get the
following errors.
11:32:29: Can't load image from file
'/usr/share/spe/_spe/skins/default/home.png': file does not exist.
11:32:29: Can't load image from file
'/usr/share/spe/_spe/skins/default/back.png': file does not exist.
11:32:29: Can't load image from file
'/usr/share/spe/_spe/skins/default/move.png': file does not exist.
11:32:29: Can't load image from file
'/usr/share/spe/_spe/skins/default/zoom_to_rect.png': file does not exist.

my simple script is as follows

import numpy, scipy, wave, struct
from pylab import *
from scipy import *
import wavFunctions
print(dir(wavFunctions))
#def readwave(wavfilename):

readwave=wavFunctions.readwave
    
# w=wave.open(wavfilename,'rb')
# (nchannel, width, rate, length, comptype, compname) = w.getparams()
# frames = w.readframes(length)
# data = numpy.array(struct.unpack("%sh" %length*nchannel,
frames)).reshape(length,nchannel)
# return data

audio = readwave("/media/LACIE/bfd
rendered/edited_single_hits/ayotte_snare_keplinger_hit.wav")
print audio
print audio.size
plot(audio)

fft_audio=fft(audio)
print fft_audio
figure(2)
plot(abs(fft_audio))
show()

11:32:29: Can't load image from file
'/usr/share/spe/_spe/skins/default/subplots.png': file does not exist.

···


View this message in context: http://www.nabble.com/matplotlib.lines.Line2D-object-at-0x283d310---strange-error-tp23740597p23740597.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

I'm a bit new to matplotlib and python. I'm running ubuntu 64bit. whenever
I try and do anything with matplotlib I get an error similar to above. it
still works, i.e. when I run the show() command the plot will appear but all
matplotplib commands return an error similar to above. for example

In [15]: plot(a)
Out[15]: [<matplotlib.lines.Line2D object at 0x28487d0>]

In [16]: figure(2)
Out[16]: <matplotlib.figure.Figure object at 0x2ddc150>

those are not error: what that line say is that you created an
instance of matplotlib.figure.Figure and that instance is located at
0x2ddc150 (it's a memory location).

if you do something like

p = plot(a)

you'll see this messages go away, since you assign the instance
reference to the variable p

Regards,

···

On Wed, May 27, 2009 at 13:29, ninjasmith <henrylindsaysmith@...287...> wrote:
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi