Skip to content

Commit 63dcc78

Browse files
author
Matthias Koeppe
committed
src/sage/plot/graphics.py: Use more block tags
1 parent 2326a21 commit 63dcc78

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/sage/plot/graphics.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,10 +1890,11 @@ def show(self, **kwds):
18901890
18911891
::
18921892
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)
18971898
18981899
Change the style of all the grid lines.
18991900
@@ -2730,9 +2731,9 @@ def matplotlib(self, filename=None,
27302731
The patch changes them to float before creating `matplotlib` objects.::
27312732
27322733
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()
27362737
27372738
If the axes are flipped, the limits of the axes get swapped::
27382739

0 commit comments

Comments
 (0)