Plot with fewer markers than data points (or a better way to plot CDFs?) [matplotlib, or general plotting help]

You can do plot(x,y,marker=”o”,markevery=5) to mark every fifth point, but I don’t think there is any built-in support for setting marks at even intervals. You could decide on the x locations where you want the marks, use e.g. numpy.searchsorted to find which data points the locations fall between, and then interpolate between the neighboring points … Read more