mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 05:07:03 +10:00
15 lines
293 B
Python
15 lines
293 B
Python
import matplotlib.pyplot as plt
|
|
import numpy as np
|
|
|
|
rng = np.random.RandomState(0)
|
|
|
|
|
|
for marker in ["o", ".", ",", "x", "+", "v", "^", "<", ">", "s", "d"]:
|
|
plt.plot(rng.rand(5), rng.rand(5), marker, label="marker='{0}'".format(marker))
|
|
|
|
plt.legend(numpoints=1)
|
|
|
|
plt.xlim(0, 2)
|
|
|
|
plt.show()
|