Hi, Does anyone knows why the default option for “contours” is set to “(0,0)” in implicit_plot (sage/plot/contour_plot.py line 571-572)? Instead of being left alone to “None”. The value “(0,0)” causes a lot of doctest failures when moving from matplotlib 1.5 to 1.5.1 (not yet a ticket for that, spotted in sage-on-gentoo): File "/usr/lib64/python2.7/site-packages/sage/plot/graphics.py", line 2563, in sage.plot.graphics.Graphics.? Failed example: gm = g.matplotlib() # long time # without the patch, this goes BOOM -- er, TypeError Exception raised: Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/sage/doctest/forker.py", line 499, in _run self.compile_and_execute(example, compiler, test.globs) File "/usr/lib64/python2.7/site-packages/sage/doctest/forker.py", line 861, in compile_and_execute exec(compiled, globs) File "<doctest sage.plot.graphics.Graphics.?[19]>", line 1, in <module> gm = g.matplotlib() # long time # without the patch, this goes BOOM -- er, TypeError File "/usr/lib64/python2.7/site-packages/sage/plot/graphics.py", line 2635, in matplotlib g._render_on_subplot(subplot) File "/usr/lib64/python2.7/site-packages/sage/plot/contour_plot.py", line 195, in _render_on_subplot linewidths=linewidths, linestyles=linestyles, label=options['legend_label']) File "/usr/lib64/python2.7/site-packages/matplotlib/__init__.py", line 1812, in inner return func(ax, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py", line 5644, in contour return mcontour.QuadContourSet(self, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/matplotlib/contour.py", line 1424, in __init__ ContourSet.__init__(self, ax, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/matplotlib/contour.py", line 863, in __init__ self._process_args(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/matplotlib/contour.py", line 1445, in _process_args x, y, z = self._contour_args(args, kwargs) File "/usr/lib64/python2.7/site-packages/matplotlib/contour.py", line 1540, in _contour_args self._contour_level_args(z, args) File "/usr/lib64/python2.7/site-packages/matplotlib/contour.py", line 1189, in _contour_level_args raise ValueError("Contour levels must be increasing") ValueError: Contour levels must be increasing
Any time “implicit_plot” is called we get a failure because of this. François -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.