From 260e47dfb94fecca2c0ada95901eed844ae97a89 Mon Sep 17 00:00:00 2001 From: mmatera Date: Fri, 19 Jan 2024 12:34:43 -0300 Subject: [PATCH] changes --- CHANGES.rst | 5 ++++- mathics/builtin/drawing/graphics3d.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5e1e0257d..6cf0c4bf6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,7 +21,9 @@ Compatibility * ``*Plot`` does not show messages during the evaluation. * ``Range[]`` now handles a negative ``di`` PR #951 * Improved support for ``DirectedInfinity`` and ``Indeterminate``. - +* ``Graphics`` and ``Graphics3D`` including wrong primitives and directives + are shown with a pink background. In the Mathics-Django interface, a tooltip + error message is also shown. Internals --- @@ -41,6 +43,7 @@ Bugs * ``Definitions`` is compatible with ``pickle``. * Improved support for ``Quantity`` expressions, including conversions, formatting and arithmetic operations. +* ``Background`` option for ``Graphics`` and ``Graphics3D`` is operative again. * ``Switch[]`` involving ``Infinity`` Issue #956 * ``Outer[]`` on ``SparseArray`` Issue #939 * ``ArrayQ[]`` detects ``SparseArray`` PR #947 diff --git a/mathics/builtin/drawing/graphics3d.py b/mathics/builtin/drawing/graphics3d.py index f8a112b2c..6a6b7c4c3 100644 --- a/mathics/builtin/drawing/graphics3d.py +++ b/mathics/builtin/drawing/graphics3d.py @@ -78,8 +78,8 @@ class Graphics3D(Graphics): = -Graphics3D- The 'Background' option allows to set the color of the background: - >> Graphics3D[Sphere[], Background->RGBColor[.6, .7, 1.]]: - = -Graphics- + >> Graphics3D[Sphere[], Background->RGBColor[.6, .7, 1.]] + = -Graphics3D- In 'TeXForm', 'Graphics3D' creates Asymptote figures: >> Graphics3D[Sphere[]] // TeXForm