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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -