Questions tagged as 'matplotlib'

1
answer

Initialize the graph in the matplotlib and then insert elements

Hello. Is there any way I can first open a chart with matplotlib and, after open, perform some operations? Eg open chart and then plot one line, then another, and so on. I know there are some topics in the English stackoverflow about this, an...
asked by 23.11.2017 / 21:02
0
answers

How can I trace a real-time spectrogram by reading data from an ADC like the "MCP3008" connected to the GPIO of Raspberry?

My idea is to read data from an ADC like the MCP3008 connected to the Rasperry GPIO, from the readings plotting a real-time graph of the signal processed by a FFT (fourrier rapid transform) or STFT (transformed short of fourrier) Example...
asked by 07.06.2017 / 19:43
1
answer

Print dictionary using matplotlib

Hello, I have a dictionary of type: and I would like to print a line chart with the key k as x and v as y. I tried a number of things but kept getting errors: plt.plot(lr.keys(),lr.values()) plt.title('ID modelo:'+str(Index)+' model accu...
asked by 15.04.2017 / 22:54
1
answer

Does the "sudo" command work in Debian?

I tried to run sudo in python and it returned me "bash: sudo: command not found", what's the problem? I'm trying to use matplotlib and I'm not getting it, so I tried installing it, running: sudo apt-get build-dep python-matplotlib...
asked by 18.04.2018 / 09:16
1
answer

Plotting circles on different planes

I need to plot circles in the zy and zx planes, but I can only plot in the xy plane, because by changing the variables x, y and z, I forget the shape of the circle. How can I fix this? import numpy as np from matplotlib import pyplot as plt im...
asked by 04.10.2018 / 01:57
1
answer

How to generate a chart with distinct X and Y with the module matplotlib in Python?

The goal would be to generate a bar chart where the Y axis runs from 0 to 10 (fixed mode), and the user would enter the maximum value of X (the X axis being 1 to the reported value).     
asked by 09.07.2018 / 01:47