Personal notes
plot Because it's a little small to be displayed
fig = plt.figure(dpi=150)
I write that. Then it will be displayed large.
The default size like this It grows like this
And finally
python:relaxed:
plt.savefig('bifferSize.png')
plt.show()
You can save it to a local file by writing.
here
plt.show()
plt.savefig('bifferSize.png')
If you do plt.show ()
first, the saved image will be blank.
If plt.savefig doesn't work, this order may be wrong.
:relaxed: :relaxed: :relaxed: :relaxed: :relaxed: :relaxed: :relaxed: :relaxed: :relaxed: :relaxed: This code
import matplotlib
import matplotlib.pyplot as plt
fig = plt.figure(dpi=150)
plt.plot(x,ys,marker='.', color="blue", label = 'client')
plt.plot(x,yc,marker='.', color="red", label = 'server')
plt.xscale('log')
plt.ylabel('delay time [s]')
plt.xlabel('buffer size')
plt.legend()
plt.title('Relationship between buffer size and delay time')
plt.savefig('bufferSize.png')
plt.show()
Recommended Posts