Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created January 1, 2021 07:32
Show Gist options
  • Save Park-Developer/10890eafef84cf94197d1bf2e8937e16 to your computer and use it in GitHub Desktop.
Save Park-Developer/10890eafef84cf94197d1bf2e8937e16 to your computer and use it in GitHub Desktop.
matplotlib : plot range setting
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.xlabel('X-Label')
plt.ylabel('Y-Label')
plt.axis([0, 5, 0, 20])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment