Skip to content

Instantly share code, notes, and snippets.

@sschnug
Created September 30, 2016 14:08
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 sschnug/90c643d1109556fc13052bb6f627ffd8 to your computer and use it in GitHub Desktop.
Save sschnug/90c643d1109556fc13052bb6f627ffd8 to your computer and use it in GitHub Desktop.
Example plot
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(1)
N = 1000
r= np.random.randn(N)
x = np.exp(0.01 * np.arange(N)) + 0.2
y = np.exp(0.4 * np.arange(N)+r)
plt.loglog(x,y,label="Hello ")
plt.axvline(x=1.2, color='g')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment