Novas respostas marcadas com a tag gráfico
1
Para gravar os dados no arquivo:
import numpy as np
start = float(input('valor inicial: '))
stop = float(input('valor final: '))
x = np.arange(start, stop+1)
y = x**2
np.savetxt('dados.dat', [x, y], delimiter=",")
Para ler os dados do arquivo e plotar:
import numpy as np
import matplotlib.pyplot as plt
x, y = np.loadtxt('dados.dat', ...
As 50 principais respostas recentes são incluídas
Tags relacionadas
gráfico × 146r × 44
python × 28
javascript × 23
ggplot2 × 18
php × 13
html × 13
c# × 9
highcharts × 9
matplotlib × 8
plot × 7
css × 5
rstudio × 5
histograma × 5
mysql × 4
ajax × 4
google-charts × 4
chartjs × 4
chart × 4
jquery × 3
array × 3
excel × 3
imagem × 3
desempenho × 3
matemática × 3