Skip to content

Instantly share code, notes, and snippets.

@Rahuls66
Created July 26, 2021 17:12
Show Gist options
  • Save Rahuls66/e27c0ba31c06a714b2a7ce5651b290c8 to your computer and use it in GitHub Desktop.
Save Rahuls66/e27c0ba31c06a714b2a7ce5651b290c8 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
x = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']
y = np.random.random(1, (np.log(0.2 * np.pi)), 10)
plt.stem(x, y, use_line_collection = True)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment