Home > other >  Turn to Python on the issue of the matplotlib drawing,
Turn to Python on the issue of the matplotlib drawing,

Time:10-27

How to dynamically change the marker style,
N=self. _ax. The plot ([], [], color='r', marker="o", graphics.linestyle='None', picker=5) [0]
N.s et_data (x, y) this is through the method of coordinate, is there a way to can change the marker, I write is directly repeat the above code, but zoom in on the time display of chaos, strives for the big support

CodePudding user response:

Problem description is not clear,

Change the style of marker, set up a marker="o" this parameter, circular, triangle, star, square and so on

CodePudding user response:

Change the style, I know, I mean, I write this in the __init__, want to dynamically change, is equivalent to the data at the same time I change the style, because the data is more, I am a sliding center to display the time axis, I wrote about the method of incoming data, incoming data change at a time, the problem is that I wrote this method inside a larger or smaller, it is all the points before sliding timeline display, is equal to the said display become chaos, as shown, the code is

before amplification
After amplification

CodePudding user response:

I found the set_marker ()