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

Commit

Permalink
src/sage/manifolds/differentiable/curve.py: Update imports of RealLin…
Browse files Browse the repository at this point in the history
…e in PLOT directives
  • Loading branch information
mkoeppe committed Jul 12, 2021
1 parent cc3aa94 commit cb307e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/manifolds/differentiable/curve.py
Expand Up @@ -101,7 +101,7 @@ class DifferentiableCurve(DiffMap):
M = Manifold(2, 'M')
X = M.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = M.curve([sin(t), sin(2*t)/2], (t, 0, 2*pi), name='c')
g = c.plot(aspect_ratio=1)
sphinx_plot(g)
Expand Down Expand Up @@ -212,7 +212,7 @@ class DifferentiableCurve(DiffMap):
M = Manifold(2, 'M')
X = M.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = M.curve([sin(t), sin(2*t)/2], (t, 0, 2*pi), name='c')
v = c.tangent_vector_field()
g = c.plot(thickness=2, aspect_ratio=1) + v.plot(chart=X, number_values=17, scale=0.5)
Expand Down Expand Up @@ -772,7 +772,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None, prange=None,
R2 = Manifold(2, 'R^2')
X = R2.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = R2.curve([sin(t), sin(2*t)/2], (t, 0, 2*pi), name='c')
g = c.plot()
sphinx_plot(g)
Expand All @@ -786,7 +786,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None, prange=None,
R2 = Manifold(2, 'R^2')
X = R2.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = R2.curve([sin(t), sin(2*t)/2], (t, 0, 2*pi), name='c')
g = c.plot(prange=(0,pi))
sphinx_plot(g)
Expand All @@ -800,7 +800,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None, prange=None,
R2 = Manifold(2, 'R^2')
X = R2.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = R2.curve([sin(t), sin(2*t)/2], (t, 0, 2*pi), name='c')
g = c.plot(color='green', style=':', thickness=3, aspect_ratio=1)
sphinx_plot(g)
Expand Down Expand Up @@ -834,7 +834,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None, prange=None,
X3 = R3.chart('x y z')
F = S2.diff_map(R3, {(XS, X3): [sin(th)*cos(ph), sin(th)*sin(ph),
cos(th)]}, name='F')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
c = S2.curve([2*atan(exp(-t/10)), t], (t, -oo, +oo), name='c')
graph_c = c.plot(mapping=F, max_range=40, plot_points=200,
thickness=2, label_axes=False)
Expand All @@ -857,7 +857,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None, prange=None,
R2 = Manifold(2, 'R^2')
X = R2.chart('x y')
t = RealLine().canonical_coordinate()
t = manifolds.RealLine().canonical_coordinate()
a, b = var('a b')
c = R2.curve([a*cos(t) + b, a*sin(t)], (t, 0, 2*pi), name='c')
g = c.plot(parameters={a: 2, b: -3}, aspect_ratio=1)
Expand Down

0 comments on commit cb307e1

Please sign in to comment.