Skip to content

Commit 7c4f078

Browse files
author
Matthias Koeppe
committed
sage.manifolds: Fix # needs
1 parent 20c4a73 commit 7c4f078

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/sage/manifolds/differentiable/tangent_vector.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
261261
262262
Plot of the vector alone (arrow + label)::
263263
264-
sage: v.plot()
264+
sage: v.plot() # needs sage.plot
265265
Graphics object consisting of 2 graphics primitives
266266
267267
Plot atop of the chart grid::
268268
269-
sage: X.plot() + v.plot()
269+
sage: X.plot() + v.plot() # needs sage.plot
270270
Graphics object consisting of 20 graphics primitives
271271
272272
.. PLOT::
@@ -280,7 +280,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
280280
281281
Plots with various options::
282282
283-
sage: X.plot() + v.plot(color='green', scale=2, label='V')
283+
sage: X.plot() + v.plot(color='green', scale=2, label='V') # needs sage.plot
284284
Graphics object consisting of 20 graphics primitives
285285
286286
.. PLOT::
@@ -294,7 +294,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
294294
295295
::
296296
297-
sage: X.plot() + v.plot(print_label=False)
297+
sage: X.plot() + v.plot(print_label=False) # needs sage.plot
298298
Graphics object consisting of 19 graphics primitives
299299
300300
.. PLOT::
@@ -308,7 +308,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
308308
309309
::
310310
311-
sage: X.plot() + v.plot(color='green', label_color='black',
311+
sage: X.plot() + v.plot(color='green', label_color='black', # needs sage.plot
312312
....: fontsize=20, label_offset=0.2)
313313
Graphics object consisting of 20 graphics primitives
314314
@@ -323,7 +323,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
323323
324324
::
325325
326-
sage: X.plot() + v.plot(linestyle=':', width=4, arrowsize=8,
326+
sage: X.plot() + v.plot(linestyle=':', width=4, arrowsize=8, # needs sage.plot
327327
....: fontsize=20)
328328
Graphics object consisting of 20 graphics primitives
329329
@@ -342,15 +342,15 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
342342
(a, b)
343343
sage: v = Tp((1+a, -b^2), name='v') ; v.display()
344344
v = (a + 1) ∂/∂x - b^2 ∂/∂y
345-
sage: X.plot() + v.plot(parameters={a: -2, b: 3})
345+
sage: X.plot() + v.plot(parameters={a: -2, b: 3}) # needs sage.plot
346346
Graphics object consisting of 20 graphics primitives
347347
348348
Special case of the zero vector::
349349
350350
sage: v = Tp.zero() ; v
351351
Tangent vector zero at Point p on the 2-dimensional differentiable
352352
manifold M
353-
sage: X.plot() + v.plot()
353+
sage: X.plot() + v.plot() # needs sage.plot
354354
Graphics object consisting of 19 graphics primitives
355355
356356
Vector tangent to a 4-dimensional manifold::
@@ -365,7 +365,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
365365
366366
We cannot make a 4D plot directly::
367367
368-
sage: v.plot()
368+
sage: v.plot() # needs sage.plot
369369
Traceback (most recent call last):
370370
...
371371
ValueError: the number of coordinates involved in the plot must
@@ -375,7 +375,7 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
375375
the argument ``ambient_coords``. For instance, for a 2-dimensional
376376
plot in terms of the coordinates `(x, y)`::
377377
378-
sage: v.plot(ambient_coords=(x,y))
378+
sage: v.plot(ambient_coords=(x,y)) # needs sage.plot
379379
Graphics object consisting of 2 graphics primitives
380380
381381
.. PLOT::
@@ -391,14 +391,14 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
391391
Similarly, for a 3-dimensional plot in terms of the coordinates
392392
`(t, x, y)`::
393393
394-
sage: g = v.plot(ambient_coords=(t,x,z))
395-
sage: print(g)
394+
sage: g = v.plot(ambient_coords=(t,x,z)) # needs sage.plot
395+
sage: print(g) # needs sage.plot
396396
Graphics3d Object
397397
398398
This plot involves only the components `v^t`, `v^x` and `v^z` of `v`.
399399
A nice 3D view atop the coordinate grid is obtained via::
400400
401-
sage: (X.plot(ambient_coords=(t,x,z)) # long time
401+
sage: (X.plot(ambient_coords=(t,x,z)) # long time # needs sage.plot
402402
....: + v.plot(ambient_coords=(t,x,z),
403403
....: label_offset=0.5, width=6))
404404
Graphics3d Object
@@ -431,8 +431,8 @@ def plot(self, chart=None, ambient_coords=None, mapping=None,
431431
sage: v = XS.frame()[1].at(p) ; v # the coordinate vector ∂/∂phi at p
432432
Tangent vector ∂/∂ph at Point p on the 2-dimensional differentiable
433433
manifold S^2
434-
sage: graph_v = v.plot(mapping=F)
435-
sage: graph_S2 = XS.plot(chart=X3, mapping=F, number_values=9) # long time
434+
sage: graph_v = v.plot(mapping=F) # needs sage.plot
435+
sage: graph_S2 = XS.plot(chart=X3, mapping=F, number_values=9) # long time, needs sage.plot
436436
sage: graph_v + graph_S2 # long time
437437
Graphics3d Object
438438

0 commit comments

Comments
 (0)