Nov-05-2018, 12:58 PM
Hello,
I am using matplotlib to make a scatter-plot, here is the code:
Thanks
I am using matplotlib to make a scatter-plot, here is the code:
if os.path.isfile("example.txt"):
days_KECS, intensity_KECS = np.loadtxt("example.txt", unpack=True,
converters={ 0: mdates.strpdate2num('%Y%m%d')})
plt.plot_date(x=days_KECS, y=intensity_KECS, fmt="ro")
plt.title("KECS intensity datas")
plt.ylabel("Intensity")
plt.xlabel("Date")
plt.grid(True)
plt.show()
else:
print("MISSING DATAS")my question is, how can I set the y axis (intensity datas), that the max values wouldn't be on the edge, so the max value on the scale would be a bit bigger?Thanks
