Bir dağılım grafiğinde değişken işaretçi boyutunu ayarlamak istiyorum. Benim kodum:Matplotlib'de değişken nokta boyutunu ayarlama
import numpy as np
import matplotlib.pyplot as plt
from os import getcwd
from os.path import join, realpath, dirname
mypath = realpath(join(getcwd(), dirname(__file__)))
myfile = 'b34.dat'
data = np.loadtxt(join(mypath,myfile),
usecols=(1,2,3),
unpack=True)
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.plot(data[0], data[1], 'bo', markersize=data[2], label='the data')
plt.show()
İçe aktardığım dosyada üç sütun var. Sütun 1 ve 2 (x,y)
değerlerdir) data[0]
ve saklanır ve her nokta sütun 3 (yani duyarlı olarak tepki istiyorum: data[2]
)
arada Canopy IDE kullanıyorum.