Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a19cd43

Browse files
committed
mathtext.py style fixes.
The only non-trivial fix is a replacement of np.round to the builtin round (mostly because it helps squeezing a line withing 79 chars); np.round was introduced in 95fda79 to get consistent Py2/Py3 behavior but Py3 matches np.round anyways (Py2's builtin round rounds halfway away from zero, Py3's builtin round and np.round round to even). Builtin round is faster than np.round for scalars, too (not that it really matters).
1 parent 8a8c881 commit a19cd43

File tree

2 files changed

+265
-170
lines changed

2 files changed

+265
-170
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ per-file-ignores =
4545
matplotlib/font_manager.py: E203, E221, E251, E261, E262, E302, E501
4646
matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225, E302
4747
matplotlib/legend_handler.py: E201, E501
48-
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E231, E251, E261, E301, E302, E303, E402, E501
48+
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E251, E301, E402
4949
matplotlib/patheffects.py: E231
5050
matplotlib/projections/geo.py: E203, E221, E231, E261, E502
5151
matplotlib/pylab.py: E501

0 commit comments

Comments
 (0)