Update marker shape of a scatter plot
问题 A scatter plot object has a method called .set_color to update the colors of the markers and .set_offsets to update their position but how can I update the marker shapes? 回答1: A scatter plot returns a path collection, it contains the paths of the markers. In order to change the marker shape you need to set the path to the new marker path. For built-in markers, these paths can be obtained from the MarkerStyle class. For custom markers see my SO answer here. Example - scatter plot with dot