Skip to content

Instantly share code, notes, and snippets.

@detly
Created May 27, 2015 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save detly/fdc430b44e74d5841f90 to your computer and use it in GitHub Desktop.
Save detly/fdc430b44e74d5841f90 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
ylims = (-50, 150)
fig = plt.figure()
axes = fig.add_axes([0.12,0.1,0.83,0.85])
axes.set_yscale("linear")
axes.yaxis.set_major_locator(MultipleLocator(base=10))
axes.set_ylim(ylims)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment