Quindi c'è questa guida: http://matplotlib.org/examples/pylab_examples/scatter_symbol.html Matplotlib marcatore custom/simbolo
# http://matplotlib.org/examples/pylab_examples/scatter_symbol.html
from matplotlib import pyplot as plt
import numpy as np
import matplotlib
x = np.arange(0.0, 50.0, 2.0)
y = x ** 1.3 + np.random.rand(*x.shape) * 30.0
s = np.random.rand(*x.shape) * 800 + 500
plt.scatter(x, y, s, c="g", alpha=0.5, marker=r'$\clubsuit$',
label="Luck")
plt.xlabel("Leprechauns")
plt.ylabel("Gold")
plt.legend(loc=2)
plt.show()
Ma cosa succede se siete come me e non si desidera utilizzare un pennarello Clubsuit ...
Come fai il tuo pennarello _________?
UPDATE
Quello che mi piace di questo speciale tipo di marcatore è che è facile da regolare con sintassi semplice matplotlib:
from matplotlib import pyplot as plt
import numpy as np
import matplotlib
x = np.arange(0.0, 50.0, 2.0)
y = x ** 1.3 + np.random.rand(*x.shape) * 30.0
s = np.random.rand(*x.shape) * 800 + 500
plt.plot(x, y, "ro", alpha=0.5, marker=r'$\clubsuit$', markersize=22)
plt.xlabel("Leprechauns")
plt.ylabel("Gold")
plt.show()
hai avuto uno sguardo a [questo] (http://stackoverflow.com/q/2318288/1025391)? – moooeeeep
Sì, lo so. Ma non ha funzionato per me. Quello che mi piace del codice di esempio matplotlib è il 'c = "g"' che interpreto come regolazione del colore per la trama (non ho una shell python nel momento della scrittura per testarlo). – Norfeldt