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.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to