I have recently come up with the need to use Python to plot graphics with more than 3600 coordinates, but I realized that time may be a problem, but I'm not sure if the code I've done has a performance problem or if it's from the same 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()