Skip to content

Conversation

@mmatera
Copy link
Contributor

@mmatera mmatera commented Jan 23, 2026

This PR starts to reorganize the code for formatting Graphics and Graphics3D expressions according to the new organization. Also

  • Following the scheme in Layout boxes, default values of Options in GraphicsBox and Graphics3DBox expressions are not shown.
  • Fix render 3DBoxes including many points (example: Sphere[{pt1, pt2,...}]).

@mmatera
Copy link
Contributor Author

mmatera commented Jan 23, 2026

Examples:

In master:

In[1] MakeBoxes[Graphics[{Disk[]}]]

Out[1]:=GraphicsBox[{DiskBox[]}, AlignmentPoint → Center, AspectRatio → Automatic, Axes → False, AxesLabel → None, AxesOrigin → Automatic, AxesStyle → {}, Background → Automatic, BaseStyle → {}, BaselinePosition → Automatic, ContentSelectable → Automatic, CoordinatesToolOptions → Automatic, Epilog → {}, FormatType → TraditionalForm, Frame → False, FrameLabel → None, FrameStyle → {}, FrameTicks → Automatic, FrameTicksStyle → {}, GridLines → None, GridLinesStyle → {}, ImageMargins → 0., ImagePadding → All, ImageSize → Automatic, LabelStyle → {}, LogPlot → False, Method → Automatic, PlotLabel → None, PlotRange → Automatic, PlotRangeClipping → False, PlotRangePadding → Automatic, PlotRegion → Automatic, PreserveImageOptions → Automatic, Prolog → {}, RotateLabel → True, Ticks → Automatic, TicksStyle → {}]

This branch:

In[1] MakeBoxes[Graphics[{Disk[]}]]

Out[1]:=GraphicsBox[{DiskBox[]}]

In Mathics-Django and Master:
image

With this branch:

image

All small lint issues and some duplication reduction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants