तो वहाँ इस गाइड है: http://matplotlib.org/examples/pylab_examples/scatter_symbol.html matplotlib कस्टम मार्कर/प्रतीक
# 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()
लेकिन क्या तुम मुझे पसंद कर रहे हैं और एक clubsuit मार्कर का उपयोग नहीं करना चाहते हैं ... अगर
कैसे क्या आप अपना खुद का मार्कर _________ बनाते हैं?
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()
आप [इस] पर एक नज़र पड़ा है (http://stackoverflow.com/q/2318288/1025391)? – moooeeeep
हां वास्तव में है। लेकिन यह मेरे लिए काम नहीं किया। मुझे matplotlib उदाहरण कोड के बारे में क्या पसंद है 'c = "g' 'जिसे मैं साजिश के लिए रंग समायोजन के रूप में समझता हूं (इसका परीक्षण करने के लिए लेखन पल में एक अजगर खोल नहीं है)। – Norfeldt