Sunday, July 23, 2017

This is an elegant solution?

A = plt.axes()
A.set_yticks(np.arange(0,1.01,0.1))

That's silly.

A = plt.axes()
A.set_yticks(np.linspace(0,1,11))

Oh yes, that's much more obvious of a solution.

No comments:

Post a Comment