matplotlib - Plotting dynamically and conditionally -
i have make plot getting updated after every 2 seconds (for total 20 seconds). in each update in range of 0 1 step 0.2 have 2 channels. , 3 options either 1 of them gets selected or none or both , everytime depending on value want determine among 3 options , want plot in different colours. can ?(i have 2 different functions initialization , refresh of plots.
i have got solution . used this
def update_result(name, x, y,result): axes, lines = figs[name] if(result == 0): axes.plot(x,y,'g^') elif(result == 1): axes.plot(x,y,'ro') elif(result == 2): axes.plot(x,y,'bs')
Comments
Post a Comment