python - How to use set_data with semilogx? -
i'm doing,
self.fig = figure() self.axes = self.fig.add_subplot(111) self.axes.semilogx(omega,mag,*args,**kwargs)
i use set_data
change data points. how go it?
save reference artist:
line = self.axes.semilogx(omega, mag, *args, **kwargs)[0]
and can use set_data
method:
line.set_data(omega_new, mag_new)
Comments
Post a Comment