Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
documentation now builds. problem was attempting to set frame and axe…
Browse files Browse the repository at this point in the history
…s options in graphics_array with sphinx_plot.
  • Loading branch information
alauve committed Aug 9, 2016
1 parent c836728 commit dc15618
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/sage/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@
.. PLOT::
g=plot(lambda x:fibonacci(round(x)),(x,1,10))
sphinx_plot(g)
g=plot(lambda x:fibonacci(round(x)),(x,1,10))
sphinx_plot(g)
Many concentric circles shrinking toward the origin::
Expand Down Expand Up @@ -397,7 +397,7 @@ def y(x): return x*sin(x**2)
g1 = plot(cos(20*x)*exp(-2*x), 0, 1)
g2 = plot(2*exp(-30*x) - exp(-3*x), 0, 1)
g = graphics_array([g1, g2], 2, 1) #needs a GraphicsArray.plot() method
g = graphics_array([g1, g2], 2, 1)
sphinx_plot(g)
Pi Axis::
Expand Down Expand Up @@ -1516,7 +1516,7 @@ def h2(x): return -abs(sqrt(x**3 - 1))
p3 = plot([sin(x), cos(2*x)*sin(x)], -pi, pi, fill=[0, [0]], fillcolor=['#f60'], fillalpha=1, color={1: 'blue'})
p4 = plot([sin(x), cos(2*x)*sin(x)], (x,-pi, pi), fill=[0, x/pi], fillcolor='grey', color=['red', 'blue'])
g = graphics_array([[p1, p2], [p3, p4]])
sphinx_plot(g.show(frame=True, axes=False))
sphinx_plot(g) # Needs to accept options 'frame', 'axes', ...
A example about the growth of prime numbers::
Expand Down Expand Up @@ -1569,7 +1569,7 @@ def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1)
p1 = plot([b(c) for c in [1..5]], 0, 40, fill={i:[i+1] for i in [0..3]}, color='blue')
p2 = plot([b(c) for c in [1..5]], 0, 40, fill={i:i+1 for i in [0..3]}, color='blue', linestyle='-') # long time
g = graphics_array([p1,p2])
sphinx_plot(g.show(frame=True, axes=False))
sphinx_plot(g) # Needs to accept options 'frame', 'axes', ...
Extra options will get passed on to :meth:`~sage.plot.graphics.Graphics.show`,
as long as they are valid::
Expand Down Expand Up @@ -3102,8 +3102,10 @@ def list_plot_loglog(data, plotjoined=False, **kwds):
.. PLOT::
#g = list_plot_loglog(zip(xl, yl), base=2.1) # long time # with base 2.1 on both axes
#sphinx_plot(g)
yl = [5**k for k in range(10)]
xl = [2**k for k in range(10)]
g = list_plot_loglog(zip(xl, yl), base=2.1) # long time # with base 2.1 on both axes
sphinx_plot(g)
::
Expand Down

0 comments on commit dc15618

Please sign in to comment.