Cleanup: sorted, dict iteration, array.{ndim,size}, ... #7549
Merged
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
70909c4
Cleanup: use `sorted()` whereever possible.
anntzer 7a83fc4
Iterating over a dict is easy.
anntzer 5bfd4b7
Use ndim, size whereever appropriate.
anntzer 1d4192c
Use \N{} unicode entities.
anntzer 39352a8
dict.keys() is nearly always useless.
anntzer 338f6da
safezip is (mostly) overrated.
anntzer 43f2f7c
alltrue and sometrue are known as all and any.
anntzer 04062b6
Cleanup while 1: ... and file iteration.
anntzer 14b47ba
More cleanups following PR comments.
anntzer
Jump to file
No files or symbols found.
+6
−0
code_removal.rst
doc/api/api_changes/code_removal.rst
+1
−1
gen_gallery.py
doc/sphinxext/gen_gallery.py
+1
−2
gen_rst.py
doc/sphinxext/gen_rst.py
+2
−6
math_symbol_table.py
doc/sphinxext/math_symbol_table.py
+3
−7
pylab_names.py
doc/utils/pylab_names.py
+3
−2
custom_projection_example.py
examples/api/custom_projection_example.py
+1
−2
custom_scale_example.py
examples/api/custom_scale_example.py
+1
−7
multiprocess.py
examples/misc/multiprocess.py
+3
−3
fancybox_demo2.py
examples/pylab_examples/fancybox_demo2.py
+1
−2
font_table_ttf.py
examples/pylab_examples/font_table_ttf.py
+1
−1
tex_unicode_demo.py
examples/pylab_examples/tex_unicode_demo.py
+1
−1
bxp_demo.py
examples/statistics/bxp_demo.py
+1
−1
errorbar_limits.py
examples/statistics/errorbar_limits.py
+2
−5
style_sheets_reference.py
examples/style_sheets/style_sheets_reference.py
+2
−2
basic_units.py
examples/units/basic_units.py
+5
−7
toolmanager.py
examples/user_interfaces/toolmanager.py
+11
−27
__init__.py
lib/matplotlib/__init__.py
+13
−29
afm.py
lib/matplotlib/afm.py
+1
−1
animation.py
lib/matplotlib/animation.py
+1
−5
artist.py
lib/matplotlib/artist.py
+8
−10
_axes.py
lib/matplotlib/axes/_axes.py
+26
−42
_base.py
lib/matplotlib/axes/_base.py
+28
−36
axis.py
lib/matplotlib/axis.py
+4
−8
backend_bases.py
lib/matplotlib/backend_bases.py
+1
−1
backend_tools.py
lib/matplotlib/backend_tools.py
+2
−3
backend_gdk.py
lib/matplotlib/backends/backend_gdk.py
+11
−12
backend_gtk.py
lib/matplotlib/backends/backend_gtk.py
+1
−2
backend_gtk3.py
lib/matplotlib/backends/backend_gtk3.py
+2
−2
backend_pdf.py
lib/matplotlib/backends/backend_pdf.py
+1
−1
backend_pgf.py
lib/matplotlib/backends/backend_pgf.py
+44
−68
backend_ps.py
lib/matplotlib/backends/backend_ps.py
+1
−2
backend_qt5.py
lib/matplotlib/backends/backend_qt5.py
+4
−8
backend_svg.py
lib/matplotlib/backends/backend_svg.py
+8
−18
backend_tkagg.py
lib/matplotlib/backends/backend_tkagg.py
+1
−1
tkagg.py
lib/matplotlib/backends/tkagg.py
+6
−9
bezier.py
lib/matplotlib/bezier.py
+1
−1
category.py
lib/matplotlib/category.py
+4
−7
cbook.py
lib/matplotlib/cbook.py
+9
−12
cm.py
lib/matplotlib/cm.py
+5
−6
colors.py
lib/matplotlib/colors.py
+2
−3
dates.py
lib/matplotlib/dates.py
+1
−1
dviread.py
lib/matplotlib/dviread.py
+8
−32
figure.py
lib/matplotlib/figure.py
+4
−9
font_manager.py
lib/matplotlib/font_manager.py
+7
−8
image.py
lib/matplotlib/image.py
+12
−28
legend.py
lib/matplotlib/legend.py
+3
−11
lines.py
lib/matplotlib/lines.py
+1
−1
markers.py
lib/matplotlib/markers.py
+4
−4
mathtext.py
lib/matplotlib/mathtext.py
+20
−31
mlab.py
lib/matplotlib/mlab.py
+9
−13
offsetbox.py
lib/matplotlib/offsetbox.py
+8
−18
patches.py
lib/matplotlib/patches.py
+1
−3
path.py
lib/matplotlib/path.py
+1
−3
__init__.py
lib/matplotlib/projections/__init__.py
+3
−2
geo.py
lib/matplotlib/projections/geo.py
+3
−6
polar.py
lib/matplotlib/projections/polar.py
+4
−7
pyplot.py
lib/matplotlib/pyplot.py
+1
−3
scale.py
lib/matplotlib/scale.py
+4
−12
spines.py
lib/matplotlib/spines.py
+2
−3
core.py
lib/matplotlib/style/core.py
+14
−24
table.py
lib/matplotlib/table.py
+2
−2
compare.py
lib/matplotlib/testing/compare.py
+1
−1
test_arrow_patches.py
lib/matplotlib/tests/test_arrow_patches.py
+6
−6
test_axes.py
lib/matplotlib/tests/test_axes.py
+2
−2
test_backend_pdf.py
lib/matplotlib/tests/test_backend_pdf.py
+11
−48
test_cbook.py
lib/matplotlib/tests/test_cbook.py
+1
−1
test_colors.py
lib/matplotlib/tests/test_colors.py
+0
−9
test_image.py
lib/matplotlib/tests/test_image.py
+1
−2
test_png.py
lib/matplotlib/tests/test_png.py
+3
−3
test_rcparams.py
lib/matplotlib/tests/test_rcparams.py
+1
−1
test_ticker.py
lib/matplotlib/tests/test_ticker.py
+2
−7
text.py
lib/matplotlib/text.py
+5
−5
ticker.py
lib/matplotlib/ticker.py
+3
−5
triangulation.py
lib/matplotlib/tri/triangulation.py
+1
−1
triinterpolate.py
lib/matplotlib/tri/triinterpolate.py
+1
−4
widgets.py
lib/matplotlib/widgets.py
+1
−1
axes_divider.py
lib/mpl_toolkits/axes_grid1/axes_divider.py
+2
−2
angle_helper.py
lib/mpl_toolkits/axisartist/angle_helper.py
+3
−8
gtktools.py
lib/mpl_toolkits/gtktools.py
+5
−5
art3d.py
lib/mpl_toolkits/mplot3d/art3d.py
+14
−21
axes3d.py
lib/mpl_toolkits/mplot3d/axes3d.py
+6
−13
proj3d.py
lib/mpl_toolkits/mplot3d/proj3d.py
+4
−7
test_triage.py
tools/test_triage.py
Oops, something went wrong.
NelleVDec 19, 2016
Contributor