You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use builtin round instead of np.round for scalars.
Compared to np.round, builtin round is 20x faster for python floats and
2x faster for numpy floats (it's admittedly unlikely that any of the
places patched is an actual bottleneck).
On Py2 builtin round and np.round were not equivalent because builtin
round rounded halves away from zero, but now both round-to-even.
Small misc. changes; the rearrangement in backend_agg.draw_text is to
make the implementation more similar to draw_mathtext (just above).
0 commit comments