Skip to content

V2.x merge to master #5845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 13, 2016
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ recursive-include lib *
recursive-include extern *
include versioneer.py
include lib/matplotlib/_version.py
include tests.py
1 change: 1 addition & 0 deletions doc/_templates/citing.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ <h1>Citing matplotlib</h1>

<h2>DOIs</h2>
<dl>
<dt>v1.5.1</dt><dd><a href="http://dx.doi.org/10.5281/zenodo.44579"><img src="https://zenodo.org/badge/doi/10.5281/zenodo.44579.svg" alt="10.5281/zenodo.44579"></a></dd>
<dt>v1.5.0</dt><dd><a href="http://dx.doi.org/10.5281/zenodo.32914"><img src="https://zenodo.org/badge/doi/10.5281/zenodo.32914.svg" alt="10.5281/zenodo.32914"></a></dd>
<dt>v1.4.3</dt><dd><a href="http://dx.doi.org/10.5281/zenodo.15423"><img src="https://zenodo.org/badge/doi/10.5281/zenodo.15423.svg" alt="10.5281/zenodo.15423"></a></dd>
<dt>v1.4.2</dt><dd><a href="http://dx.doi.org/10.5281/zenodo.12400"><img src="https://zenodo.org/badge/doi/10.5281/zenodo.12400.png" alt="10.5281/zenodo.12400"></a></dd>
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/MEP/MEP13.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=================================
MEP12: Use properties for Artists
MEP13: Use properties for Artists
=================================

.. contents::
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/MEP/MEP14.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
====================
MEP13: Text handling
MEP14: Text handling
====================

.. contents::
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/legend_demo5.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_artists(self, legend, orig_handle,
lw = orig_handle.get_linewidths()[i]
except IndexError:
lw = orig_handle.get_linewidths()[0]
if dashes[0] != None:
if dashes[0] is not None:
legline.set_dashes(dashes[1])
legline.set_color(color)
legline.set_transform(trans)
Expand Down
17 changes: 17 additions & 0 deletions lib/matplotlib/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,20 @@ def symbol(self, s, loc, toks):
self._make_space(0.2)] ,
do_kern = True)]
elif c in self._punctuation_symbols:

# Do not space commas between brackets
if c == ',':
for i in six.moves.xrange(1, loc + 1):
prev_char = s[loc - i]
if prev_char != ' ':
break
for i in six.moves.xrange(1, loc + 1):
next_char = s[loc + i]
if next_char != ' ':
break
if (prev_char == '{' and next_char == '}'):
return [char]

# Do not space dots as decimal separators
if (c == '.' and s[loc - 1].isdigit() and s[loc + 1].isdigit()):
return [char]
Expand Down Expand Up @@ -2819,6 +2833,9 @@ def is_slanted(self, nucleus):
return nucleus.is_slanted()
return False

def is_between_brackets(self, s, loc):
return False

def subsuper(self, s, loc, toks):
assert(len(toks)==1)

Expand Down
22 changes: 11 additions & 11 deletions lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading