ploter.py 516 B

12345678910111213141516171819202122
  1. import os
  2. import matplotlib.pyplot as plt
  3. results = {}
  4. def errorfill(x, y, yerr, color=None, alpha_fill=0.3, ax=None):
  5. ax = ax if ax is not None else plt.gca()
  6. if color is None:
  7. color = ax._get_lines.color_cycle.next()
  8. ymin, ymax = yerr
  9. ax.plot(x, y, color=color)
  10. ax.fill_between(x, ymax, ymin, color=color, alpha=alpha_fill)
  11. from res import *
  12. errorfill(axis[0], resu[0], resu_bars[0])
  13. errorfill(axis[0], resu[1], resu_bars[1])
  14. errorfill(axis[2], resu[2], resu_bars[2])
  15. plt.show()