@@ -1890,10 +1890,11 @@ def show(self, **kwds):
1890
1890
1891
1891
::
1892
1892
1893
- sage: y = x^5 + 4*x^4 - 10*x^3 - 40*x^2 + 9*x + 36 # needs sage.symbolic
1894
- sage: p = plot(y, -4.1, 1.1) # needs sage.symbolic
1895
- sage: xlines = lambda a, b: [z for z, m in y.roots()] # needs sage.symbolic
1896
- sage: p.show(gridlines=[xlines, [0]], frame=True, axes=False) # needs sage.symbolic
1893
+ sage: # needs sage.symbolic
1894
+ sage: y = x^5 + 4*x^4 - 10*x^3 - 40*x^2 + 9*x + 36
1895
+ sage: p = plot(y, -4.1, 1.1)
1896
+ sage: xlines = lambda a, b: [z for z, m in y.roots()]
1897
+ sage: p.show(gridlines=[xlines, [0]], frame=True, axes=False)
1897
1898
1898
1899
Change the style of all the grid lines.
1899
1900
@@ -2730,9 +2731,9 @@ def matplotlib(self, filename=None,
2730
2731
The patch changes them to float before creating `matplotlib` objects.::
2731
2732
2732
2733
sage: # long time, needs sage.symbolic
2733
- sage: f = lambda x, y: abs(cos((x + I * y) ** 4)) - 1 # long time, needs sage.symbolic
2734
- sage: g = implicit_plot(f, (-4, 4), (-3, 3), linewidth=0.6) # long time, needs sage.symbolic
2735
- sage: gm = g.matplotlib() # long time, needs sage.symbolic
2734
+ sage: f = lambda x, y: abs(cos((x + I * y) ** 4)) - 1
2735
+ sage: g = implicit_plot(f, (-4, 4), (-3, 3), linewidth=0.6)
2736
+ sage: gm = g.matplotlib()
2736
2737
2737
2738
If the axes are flipped, the limits of the axes get swapped::
2738
2739
0 commit comments