Questions tagged [graphics]
Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of Plot commands.
4,998 questions
0
votes
1
answer
94
views
HowTo vertically center node labels in Graph output
Version: "14.3.0 for Linux x86 (64-bit) (July 8, 2025)"
The code listed below using the data following it produces the result shown in the image. I want the node labels positioned directly ...
1
vote
2
answers
339
views
Creating a spiral
This is both a math question and a Mathematica question. I am trying to draw a simple spiral, and found this diagram that fits what I am trying to create.
Implementing the math, using Mathematica, I'...
1
vote
3
answers
419
views
How to change the color of the individual squares on a chessboard?
The code I have written to create a chessboard is as follows:
...
4
votes
1
answer
185
views
Blurry AxisObject
I am trying to imitate default frame of ContourPlot with AxisObject. I used AbsoluteOptions ...
1
vote
0
answers
69
views
How to simply change filled-in marker with empty circles in the given code?
I use this code
p1 = Graphics[{PointSize[0.05], Red, Point[{{4, 0}, {7, 0}}]}];
p2 = Plot[Sin[x], {x, 0, 10}, PlotRange -> {-2, 2}];
Show[{p1, p2}]
which gives ...
1
vote
1
answer
97
views
How to make a Framed PlotLabel span the exact width of the plot Frame?
I am trying to add a title with a background color to my plot. Currently, using Framed inside PlotLabel only creates a box around the text itself.
I want the background box of the title to:
Span the ...
4
votes
1
answer
152
views
Cut a thick arc (sector of annulus)
I have a thick arc (or it can be represented as sector of annulus), just a very simple example:
...
2
votes
3
answers
195
views
Styling collection of polygons in single Polygon differently [closed]
In documentation of Polygon we can read:
Polygon[{poly_1,poly_2,…}] represents a collection of polygons poly_i.
But then there is no example how to style each ...
0
votes
1
answer
82
views
ParametricNDSolveValue Doesn't Work
I am plotting particle trajectory using ParametricNDSolveValue, but it gives error. Any help is highly appreciated.
...
4
votes
0
answers
186
views
Make graphics units exactly 1 cm in exported PNG/PDF to match LaTeX TikZ picture coordinates
Bug introduced in 14.3 or earlier.
Question has been amended — see below
How can I make a plot, such as from the following, so that the spacing of the points x = 1, 2, 3 on the x-axis and y = 1, 2, 3,...
1
vote
1
answer
109
views
How to make edges of a graph longer in 13.3, so that long edge labels are always readable?
In Mathematica 13.3, is there a robust way to force longer edges so that long edge labels are always readable and not clipped/overlapped? As far as I could see, options for edge spacing in "...
4
votes
1
answer
161
views
Find all cases of shortest curve on 3D surface
There are cases when there exist several different shortest curves with exactly the same length.
Do you have a better idea than mine which is adding obstacles to first found curve so that algorithm is ...
2
votes
2
answers
181
views
How to plot a very large bracket but keep it thin in Graphics?
Text[Style["}", 230, FontWeight -> "Thin"], {0, 0}] in Graphics gives me a large bracket, but it is toooo thick. How can I get a thin bracket ...
3
votes
1
answer
140
views
Automatic tooltips of ContourPlot are miraculously fast and selective in Show
How is this possible that tooltips of Show (inherited from ContourPlot) are that perfectly selective that they are displayed ...
3
votes
3
answers
826
views
Drawing a matrix of billiard balls
I would like Mathematica to produce for me a matrix $M$, where the entry $M_{ij}$ is a coloured disk with a black numeral in it, representing a billiard ball.
Basically, I want a simplified example ...