Ticket #3813: trac_3813_doctestfixes.patch
| File trac_3813_doctestfixes.patch, 1.7 kB (added by mabshoff, 5 months ago) |
|---|
-
a/sage/plot/plot.py
old new 1175 1175 z-coordinate. 1176 1176 1177 1177 EXAMPLES: 1178 sage: sum([plot(z*sin(x), 0, 10).plot3d(z) for z in range(6)]) 1178 sage: sum([plot(z*sin(x), 0, 10).plot3d(z) for z in range(6)]) #long 1179 1179 """ 1180 1180 from sage.plot.plot3d.base import Graphics3dGroup 1181 1181 g = Graphics3dGroup([g.plot3d(**kwds) for g in self.__objects]) … … 1290 1290 Add grid lines at specific positions (using iterators). 1291 1291 sage: def maple_leaf(t): 1292 1292 ... return (100/(100+(t-pi/2)^8))*(2-sin(7*t)-cos(30*t)/2) 1293 sage: p = polar_plot(maple_leaf, -pi/4, 3*pi/2, rgbcolor="red",plot_points=1000) 1294 sage: p.show(gridlines=( [-3,-2.75,..,3], xrange(-1,5,2) )) 1293 sage: p = polar_plot(maple_leaf, -pi/4, 3*pi/2, rgbcolor="red",plot_points=1000) #long 1294 sage: p.show(gridlines=( [-3,-2.75,..,3], xrange(-1,5,2) )) #long 1295 1295 1296 1296 Add grid lines at specific positions (using functions). 1297 1297 sage: y = x^5 + 4*x^4 - 10*x^3 - 40*x^2 + 9*x + 36 … … 4760 4760 sage: x = var('x') 4761 4761 sage: f = sin(1/x) 4762 4762 sage: n1 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_tolerance=0.01)); n1 4763 794763 15 4764 4764 sage: n2 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_recursion=5, adaptive_tolerance=0.01)); n2 4765 4765 15 4766 4766 sage: n3 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_tolerance=0.005)); n3 4767 884767 16 4768 4768 """ 4769 4769 if level >= adaptive_recursion: 4770 4770 return []