Skip to content

Commit 660713a

Browse files
committed
Update PointSize doc
Note the values of defaults.
1 parent 0c34b56 commit 660713a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mathics/builtin/graphics.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,12 +998,16 @@ class Thick(Builtin):
998998
class PointSize(_Size):
999999
"""
10001000
<dl>
1001-
<dt>'PointSize[$t$]'
1002-
<dd>sets the diameter of points to $t$, which is relative to the overall width.
1001+
<dt>'PointSize[$t$]'
1002+
<dd>sets the diameter of points to $t$, which is relative to the overall width.
10031003
</dl>
1004+
'PointSize' can be used for both two- and three-dimensional graphics. The initial default pointsize is 0.008 for two-dimensional graphics and 0.01 for three-dimensional graphics.
10041005
10051006
>> Table[Graphics[{PointSize[r], Point[{0, 0}]}], {r, {0.02, 0.05, 0.1, 0.3}}]
10061007
= {-Graphics-, -Graphics-, -Graphics-, -Graphics-}
1008+
1009+
>> Table[Graphics3D[{PointSize[r], Point[{0, 0, 0}]}], {r, {0.05, 0.1, 0.8}}]
1010+
= {-Graphics3D-, -Graphics3D-, -Graphics3D-}
10071011
"""
10081012

10091013
def get_size(self):

0 commit comments

Comments
 (0)