0
Lately I came up with the need to use Python for plotting graphics with more than 3600 coordinates, but I realized that time can be a problem, but I’m not sure if the code I did has any performance problem or if it is from the library:
plt.figure()
for k in range(len(tempo)):
plt.plot(tempo,tensao, color='black')
fig1 = plt.gcf()
plt.rcParams['lines.linewidth'] = 0.5
plt.ylim([-1,2])
plt.xlim([min(tempo),max(tempo)])
plt.grid(True)
plt.savefig('resultadoPlot.jpeg', dpi=1200, facecolor='w', edgecolor='w',orientation='portrait', papertype=None, format=None,
transparent=False, bbox_inches=None, pad_inches=0.1,
frameon=True)
plt.show()
As for this part: for k in range(Len(tempo)): plt.Plot(tempo,tensao, color='black') What are you doing with this? what is the purpose of this part of the code?
– Nicolas Vieira