#17618: Update matplotlib so that plot_directive is less broken
-------------------------------------+-------------------------------------
Reporter: tmonteil | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.5
Component: packages: | Resolution:
standard | Merged in:
Keywords: | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | 374eca4c6161a7216b48ebb5ea772d62c5695f11
u/tmonteil/update_matplotlib_so_that_plot_directive_is_less_broken|
Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by tmonteil):
Here are the 13 doctest failures that appeared in a {{{make ptestlong}}},
quite a few are redundant:
{{{
File "src/doc/en/bordeaux_2008/introduction.rst", line 75, in
doc.en.bordeaux_2008.introduction
Failed example:
list_plot3d(v, interpolation_type='nn')
Expected:
Graphics3d Object
Got:
doctest:137: MatplotlibDeprecationWarning: The matplotlib.delaunay
module was deprecated in version 1.4. Use matplotlib.tri.Triangulation
instead.
Graphics3d Object
}}}
{{{
File "src/sage/graphs/generic_graph.py", line 15636, in
sage.graphs.generic_graph.GenericGraph.plot
Failed example:
D.plot(edge_labels=True, color_by_label={'a':'blue', 'b':'red'},
edge_style='dashed')
Expected:
Graphics object consisting of 34 graphics primitives
Got:
doctest:239: FormatterWarning: Exception in text/plain formatter:
'module' object has no attribute '_Base'
None
}}}
{{{
File "src/sage/plot/arrow.py", line 349, in
sage.plot.arrow.Arrow._render_on_subplot
Failed example:
a.save(filename=filename)
Exception raised:
Traceback (most recent call last):
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 488, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 850, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.plot.arrow.Arrow._render_on_subplot[11]>", line
1, in <module>
a.save(filename=filename)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/misc/decorators.py", line 471, in wrapper
return func(*args, **kwds)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/plot/graphics.py", line 3048, in save
figure = self.matplotlib(**options)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/plot/graphics.py", line 2494, in matplotlib
g._render_on_subplot(subplot)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sage/plot/arrow.py", line 414, in _render_on_subplot
class ConditionalStroke(pe._Base):
AttributeError: 'module' object has no attribute '_Base'
}}}
{{{
File "src/sage/plot/arrow.py", line 523, in sage.plot.arrow.arrow2d
Failed example:
arrow2d((1, 1), (3, 3), linestyle='dashed')
Expected:
Graphics object consisting of 1 graphics primitive
Got:
doctest:239: FormatterWarning: Exception in text/plain formatter:
'module' object has no attribute '_Base'
None
}}}
{{{
File "src/sage/plot/arrow.py", line 525, in sage.plot.arrow.arrow2d
Failed example:
arrow2d((1, 1), (3, 3), linestyle='--')
Expected:
Graphics object consisting of 1 graphics primitive
Got:
None
}}}
{{{
File "src/sage/plot/colors.py", line 22, in sage.plot.colors
Failed example:
sorted(colormaps)
Expected:
['Accent', 'Accent_r', 'Blues', 'Blues_r', 'BrBG', 'BrBG_r', ...]
Got:
[u'Accent',
u'Accent_r',
u'Blues',
u'Blues_r',
u'BrBG',
}}}
{{{
File "src/sage/plot/colors.py", line 1337, in sage.plot.colors.get_cmap
Failed example:
sorted(colormaps)
Expected:
['Accent', 'Accent_r', 'Blues', 'Blues_r', ...]
Got:
[u'Accent',
u'Accent_r',
u'Blues',
u'Blues_r',
u'BrBG',
u'BrBG_r',
}}}
{{{
File "src/sage/plot/colors.py", line 1398, in sage.plot.colors.Colormaps
Failed example:
sorted(colormaps)
Expected:
['Accent', 'Accent_r', 'Blues', 'Blues_r', ...]
Got:
[u'Accent',
u'Accent_r',
u'Blues',
u'Blues_r',
}}}
{{{
File "src/sage/plot/colors.py", line 1645, in
sage.plot.colors.Colormaps.__delitem__
Failed example:
maps.popitem()
Expected:
('Spectral', <matplotlib.colors.LinearSegmentedColormap object at
...>)
Got:
(u'Spectral', <matplotlib.colors.LinearSegmentedColormap object at
0x4afd4a0c>)
}}}
{{{
File "src/sage/plot/graphics.py", line 1091, in
sage.plot.graphics.Graphics.add_primitive
Failed example:
G
Expected:
Graphics object consisting of 2 graphics primitives
Got:
doctest:239: FormatterWarning: Exception in text/plain formatter:
'module' object has no attribute '_Base'
None
}}}
{{{
File "src/sage/plot/graphics.py", line 2096, in
sage.plot.graphics.Graphics.?
Failed example:
p._matplotlib_tick_formatter(subplot, **d)
Expected:
(<matplotlib.axes.AxesSubplot object at ...>,
<matplotlib.ticker.MaxNLocator object at ...>,
<matplotlib.ticker.MaxNLocator object at ...>,
<matplotlib.ticker.OldScalarFormatter object at ...>,
<matplotlib.ticker.OldScalarFormatter object at ...>)
Got:
(<matplotlib.axes._subplots.AxesSubplot object at 0x4b8da48c>,
<matplotlib.ticker.MaxNLocator object at 0x4bbe3dac>,
<matplotlib.ticker.MaxNLocator object at 0x4bbe3f2c>,
<matplotlib.ticker.OldScalarFormatter object at 0x4bbe388c>,
<matplotlib.ticker.OldScalarFormatter object at 0x4bbe332c>)
}}}
{{{
File "src/sage/plot/plot3d/list_plot3d.py", line 90, in
sage.plot.plot3d.list_plot3d.list_plot3d
Failed example:
list_plot3d(m, texture='yellow',
interpolation_type='nn',frame_aspect_ratio=[1,1,1/3])
Expected:
Graphics3d Object
Got:
doctest:137: MatplotlibDeprecationWarning: The matplotlib.delaunay
module was deprecated in version 1.4. Use matplotlib.tri.Triangulation
instead.
Graphics3d Object
}}}
{{{
File "src/sage/stats/distributions/discrete_gaussian_lattice.py", line
133, in sage.stats.distributions.discrete_gaussian_lattice.Disc
reteGaussianDistributionLatticeSampler
Failed example:
list_plot3d(l, point_list=True, interploation='nn')
Expected:
Graphics3d Object
Got:
doctest:137: MatplotlibDeprecationWarning: The matplotlib.delaunay
module was deprecated in version 1.4. Use matplotlib.tri.Triang
ulation instead.
Graphics3d Object
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17618#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.