Questions tagged as 'matplotlib'

1
answer

matplotlib and tkinter to plot in real time

I am trying to graph a series of data from a text file, but my idea is that this graph only appears when I press a button on a GUI made in tkinter. However, at the moment of pressing the button the graph appears but without the data, that is, it...
asked by 27.03.2018 / 20:24
0
answers

Change the limit of x on a seaborn graph

I'm having problems changing the x limit of a large dispersion chart. g = sns.distplot(df['growth_rate']) I would like to see the distribution of the following graph, in the range of x = (-10 to 10) Thank you very much     
asked by 22.03.2018 / 19:01
1
answer

unpack requires a byte object of length 17665190

I am trying to read the data from a .wav file for an audio visualization however I get the following error. Here I leave my code I hope you can help me import matplotlib matplotlib.use('Agg') from matplotlib import pylab import matplo...
asked by 29.03.2018 / 03:31
0
answers

matplotlib barplot does not draw the complete x axis

I create a barplot with matplotlib, which has two groups of data, and the x-axis is drawn only under the sets of bars drawn, and not along the entire figure. Initially, a figure with 6 subplots is declared, and then, within a for loop, they a...
asked by 29.03.2018 / 10:08
0
answers

python error list index out of range

I am generating a project in python an audio visualizer, without embark I find an error when running the program. This is the error: This is the code: import wave import struct import sys import numpy as np from math import sqrt im...
asked by 28.03.2018 / 18:21
0
answers

Error python unpack requires a buffer

I'm working on a code to visualize audio however I face 2 problems. The first one an error that shows the following: The second is that as far as I could read it is more practical to convert the files to .wav to work with them, so I...
asked by 29.03.2018 / 01:29
0
answers

Help with audio graphic display in python

Hi, I have the following code to generate a graphic audio visualizer but after a modification I made it I could not make it work anymore. And two proclems with the code are presented to me. 1.-I get an error that I do not know how to solve...
asked by 26.03.2018 / 04:02
0
answers

Error and slow response in specgram matplitlib

I've been working on an audio spectrum analyzer in pyqt with python, I have almost finished just that I have 3 last situations, 1.- It is very slow when making the representation of the file, that is to say in general the program is slow...
asked by 26.03.2018 / 03:00
0
answers

how it works matplotlib functions (beginner)

When one works with the library matplotlib.pyplot a simple code example would be: 1 a=[1,2,3,4,5] b=[1,2,3,4,5] plt.plot(a,b) plt.xlim(0,100) plt.show() 2 a=[1,2,3,4,5] b=[1,2,3,4,5] fig=plt.figure() ax=fig.add_subplot(111) ax.plot...
asked by 31.01.2018 / 06:31
0
answers

UnicodedecodeError ipython

Good, I'm trying to graph some data from an experiment and the terminal has not stopped giving me dislikes. I put the code here: from matplotlib import * squares1=[0.0,0.004,0.006,0.009,0.012,0.016,0.018,0.021] #desplazamiento eje x en metros...
asked by 12.01.2018 / 02:57