Enlarge the plot display.

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. image.png

The default size like this image.png 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

Enlarge the plot display.
Display the edge
Display only the lower half (upper half) with seaborn pair plot
Plot the spread of the new coronavirus
Django-TodoList② ~ Let's display the details page ~
[pyqtgraph] Link Plot Options-> Transforms display
Display the absolute path on the Finder
Let's display the map using Basemap
How to display the progress bar (tqdm)
Plot the Nikkei Stock Average with pandas
Django ~ Let's display it in the browser ~
Display Python 3 in the browser with MAMP
Display the graph of tensorBoard on jupyter
I want to display the progress bar
Display markers above the border with matplotlib
Solution: The jedi-vim pop-up display is broken