Skip to content

Instantly share code, notes, and snippets.

@paulfurber
Created February 29, 2020 12:50
Show Gist options
  • Save paulfurber/5828e0cbf081be0c0e92050184ef1c24 to your computer and use it in GitHub Desktop.
Save paulfurber/5828e0cbf081be0c0e92050184ef1c24 to your computer and use it in GitHub Desktop.
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 10, 0.1)
# y = x
# y = np.exp(x)
y = x * x
# plt.yscale(value="linear")
plt.yscale(value="log")
plt.plot(x,y)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment