Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. locmaj = matplotlib.ticker.LogLocator(base=10.0, numticks = 6)
  2. ax.yaxis.set_major_locator(locmaj)
  3.  
  4. fig, ax = plt.subplots()
  5. ax.scatter(df['cunnanes'],df['turbidity'], s = 4)
  6. ax.scatter(exceed['exceedance'], exceed['turbidity'])
  7.  
  8. ax.set_title(names[i] + ' Exceedance graph')
  9. ax.set_xlabel('Exceedance Probability (%)')
  10. ax.set_ylabel('Turbidity (FNU)')
  11. ax.set_yscale('symlog')
  12. ax.set_ylim([-0.5, 10000])
  13.  
  14. ax.minorticks_on
  15. ax.tick_params(axis = 'x', which = 'both', direction = 'in', top = True, bottom = True)
  16. ax.tick_params(axis = 'y', which = 'both', direction = 'in', left = True, right = True)
  17. locmin = matplotlib.ticker.LogLocator(base=10.0, subs=(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9))
  18. ax.yaxis.set_minor_locator(locmin)
  19. ax.yaxis.set_minor_formatter(matplotlib.ticker.NullFormatter())
  20.  
  21. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement