Skip to content

Instantly share code, notes, and snippets.

@boada
Created July 28, 2020 18:33
Show Gist options
  • Save boada/c90440347b2c8cc0c10a3a5975b56ba7 to your computer and use it in GitHub Desktop.
Save boada/c90440347b2c8cc0c10a3a5975b56ba7 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
y = 0.01 + np.random.random(1000)* 10
x = np.random.random(1000)
fig, ax = plt.subplots(figsize=(7, 7 * (np.sqrt(5.) - 1.0) / 2.0))
ax.set_xlim(0.02,0.75)
ax.set_ylim(0.01, 20)
ax.tick_params(zorder=10)
ax.semilogy()
ax.scatter(x,y)
ax.plot([0.001, 1], [0.001, 10], c='r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment