graphic.py modified to log scale
This commit is contained in:
parent
e9c29b1a43
commit
a4fd493e18
BIN
bin/server
BIN
bin/server
Binary file not shown.
|
|
@ -69,6 +69,8 @@ categorias = ["0,064KB","0,128KB","0,256KB","0,512KB","1KB","2KB","4KB","8KB"]
|
||||||
|
|
||||||
plt.bar(categorias, valores, color='purple', width=0.8)
|
plt.bar(categorias, valores, color='purple', width=0.8)
|
||||||
|
|
||||||
|
plt.yscale('log')
|
||||||
|
|
||||||
plt.xlabel('Tamanho do buffer em (KB)')
|
plt.xlabel('Tamanho do buffer em (KB)')
|
||||||
plt.ylabel('Tempo de execução em (ms)')
|
plt.ylabel('Tempo de execução em (ms)')
|
||||||
plt.title('Transmissão de Buffers entre Cliente e Servidor via Conexão por Socket')
|
plt.title('Transmissão de Buffers entre Cliente e Servidor via Conexão por Socket')
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
import pylab
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
a = [pow(10, i) for i in range(10)]
|
||||||
|
fig = plt.figure()
|
||||||
|
ax = fig.add_subplot(2, 1, 1)
|
||||||
|
|
||||||
|
line, = ax.plot(a, color='blue', lw=2)
|
||||||
|
|
||||||
|
ax.set_yscale('log')
|
||||||
|
|
||||||
|
pylab.show()
|
||||||
Loading…
Reference in New Issue