I'd like to place markers on a line specific points. I have a TRUE/FALSE list that says where on the x-axis the markers are wanted. Here is the snippet I am using:
markers_on = list(compress(self.x, self.titanic1))
a0.plot(self.x, self.nya, marker='v', markevery=markers_on)
self.titanic1 is a list of Boolean values, self.x is a list of our x axis values and self.nya is a list of y values. I get the following error message.
The interesting bit is that the list in the error message is correct, those are the correct x-axis values for the markers. Does anybody know what this message means? The markevery doc clearly says it'll take a list of integers.
markevery [None | int | length-2 tuple of int | slice | list/array of int | float | length-2 tuple of float]
