Skip to content

Commit 8083bd5

Browse files
author
Matthias Koeppe
committed
Add # optional
1 parent 4ad162a commit 8083bd5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/sage/typeset/ascii_art.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,21 @@ def ascii_art(*obj, **kwds):
232232
We can specify a separator object::
233233
234234
sage: ident = lambda n: identity_matrix(ZZ, n)
235-
sage: ascii_art(ident(1), ident(2), ident(3), sep=' : ')
235+
sage: ascii_art(ident(1), ident(2), ident(3), sep=' : ') # optional - sage.modules
236236
[1 0 0]
237237
[1 0] [0 1 0]
238238
[1] : [0 1] : [0 0 1]
239239
240240
We can specify the baseline::
241241
242-
sage: ascii_art(ident(2), baseline=-1) + ascii_art(ident(3))
242+
sage: ascii_art(ident(2), baseline=-1) + ascii_art(ident(3)) # optional - sage.modules
243243
[1 0][1 0 0]
244244
[0 1][0 1 0]
245245
[0 0 1]
246246
247247
We can determine the baseline of the separator::
248248
249-
sage: ascii_art(ident(1), ident(2), ident(3), sep=' -- ', sep_baseline=-1)
249+
sage: ascii_art(ident(1), ident(2), ident(3), sep=' -- ', sep_baseline=-1) # optional - sage.modules
250250
[1 0 0]
251251
-- [1 0] -- [0 1 0]
252252
[1] [0 1] [0 0 1]

src/sage/typeset/character_art.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ def __format__(self, fmt):
161161
162162
EXAMPLES::
163163
164-
sage: M = matrix([[1,2],[3,4]])
165-
sage: format(ascii_art(M))
164+
sage: M = matrix([[1,2],[3,4]]) # optional - sage.matrix
165+
sage: format(ascii_art(M)) # optional - sage.matrix
166166
'[1 2]\n[3 4]'
167-
sage: format(unicode_art(M))
167+
sage: format(unicode_art(M)) # optional - sage.matrix
168168
'\u239b1 2\u239e\n\u239d3 4\u23a0'
169169
"""
170170
return format(self._string_type(self), fmt)

src/sage/typeset/unicode_art.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def unicode_art(*obj, **kwds):
9898
⎮ x + π
9999
100100
sage: ident = lambda n: identity_matrix(ZZ, n)
101-
sage: unicode_art(ident(1), ident(2), ident(3), sep=' : ')
101+
sage: unicode_art(ident(1), ident(2), ident(3), sep=' : ') # optional - sage.modules
102102
⎛1 0 0⎞
103103
⎛1 0⎞ ⎜0 1 0⎟
104104
(1) : ⎝0 1⎠ : ⎝0 0 1⎠
@@ -107,7 +107,7 @@ def unicode_art(*obj, **kwds):
107107
an unicode art separator::
108108
109109
sage: sep_line = unicode_art('\n'.join(' ⎟ ' for _ in range(5)), baseline=5)
110-
sage: unicode_art(*AlternatingSignMatrices(3), # optional - sage.combinat
110+
sage: unicode_art(*AlternatingSignMatrices(3), # optional - sage.combinat sage.modules
111111
....: separator=sep_line, sep_baseline=1)
112112
⎟ ⎟ ⎟ ⎟ ⎟ ⎟
113113
⎛1 0 0⎞ ⎟ ⎛0 1 0⎞ ⎟ ⎛1 0 0⎞ ⎟ ⎛ 0 1 0⎞ ⎟ ⎛0 0 1⎞ ⎟ ⎛0 1 0⎞ ⎟ ⎛0 0 1⎞

0 commit comments

Comments
 (0)