Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

When working on 3D plots, I’d like to implement a feature where visible edges are drawn as solid lines and obscured (hidden) edges are drawn as dashed lines. I haven’t found a good solution to this ...
King.Max's user avatar
  • 355
0 votes
1 answer
95 views

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 ...
Steven Thomas Hatton's user avatar
1 vote
2 answers
341 views

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'...
Tom De Vries's user avatar
  • 3,830
1 vote
3 answers
420 views

The code I have written to create a chessboard is as follows: ...
N31ngy's user avatar
  • 21
4 votes
1 answer
185 views

I am trying to imitate default frame of ContourPlot with AxisObject. I used AbsoluteOptions ...
azerbajdzan's user avatar
  • 32.8k
1 vote
0 answers
69 views

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 ...
charmin's user avatar
  • 1,179
1 vote
1 answer
97 views

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 ...
Lerh's user avatar
  • 43
4 votes
1 answer
152 views

I have a thick arc (or it can be represented as sector of annulus), just a very simple example: ...
LittleCat1's user avatar
2 votes
3 answers
195 views

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 ...
azerbajdzan's user avatar
  • 32.8k
0 votes
1 answer
82 views

I am plotting particle trajectory using ParametricNDSolveValue, but it gives error. Any help is highly appreciated. ...
David Senjaya's user avatar
4 votes
0 answers
186 views

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,...
murray's user avatar
  • 12.2k
1 vote
1 answer
109 views

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 "...
florin's user avatar
  • 2,380
4 votes
1 answer
161 views

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 ...
azerbajdzan's user avatar
  • 32.8k
2 votes
2 answers
182 views

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 ...
Harry's user avatar
  • 2,819
3 votes
1 answer
140 views

How is this possible that tooltips of Show (inherited from ContourPlot) are that perfectly selective that they are displayed ...
azerbajdzan's user avatar
  • 32.8k
3 votes
3 answers
826 views

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 ...
ZeroTheHero's user avatar
1 vote
0 answers
85 views

In an attempt to graphically present my research, I wish to plot families of curves in the xy plane. The curves depend on a parameter, p, that ranges from 0 to some positive constant, k. I want to ...
parula33's user avatar
  • 143
3 votes
3 answers
243 views

I often work with point processes and need simple graphical representation of points. Processes are investigated in all three dimensions, so arrays of points look like that: ...
lesobrod's user avatar
  • 2,590
4 votes
1 answer
197 views

High quality texture image was produced from matrix mat of dimension 640x640. When the texture is applied to a polygon (square) ...
azerbajdzan's user avatar
  • 32.8k
6 votes
2 answers
377 views

I have just discovered that it is possible to manipulate vertices or edges of graphs if they are converted to Graphics. After manipulation you can extract position ...
azerbajdzan's user avatar
  • 32.8k
5 votes
1 answer
218 views

Bug introduced in 14.2 or earlier, fixed in 14.3. ...
Deniz's user avatar
  • 329
7 votes
3 answers
467 views

In Python there are very easy to use and efficient libraries for surface parametrization (for instance igl). I wonder if in Mathematica we have a ready-made implementation. The parametrization is ...
Daniel Castro's user avatar
2 votes
0 answers
146 views

This picture is from the public domain but does not quite look so real... I assume that there is a 'decently simple' and known solution but I have not found a good approach by internet research. ...
Michael T's user avatar
  • 298
1 vote
1 answer
141 views

Suppose I have a PNG image img=Import["......\\img.png"]; I want a function addtext which will do this: ...
Harry's user avatar
  • 2,819
1 vote
0 answers
48 views

Graphics[ Polygon[l = {{-1, 0}, {1, 0}, {1, 0.5}, {1, 1}, {-1, 1}, {-1, 0.5}}, VertexColors -> (Blend[{Green, Red}, #[[2]]] & /@ (l))]] gives me this: Good,...
Harry's user avatar
  • 2,819
3 votes
1 answer
202 views

I am trying to redraw this illustration for the Poincaré section using Mathematica: For which I used this code as a start: ...
codebpr's user avatar
  • 3,028
0 votes
2 answers
175 views

I'm trying to use the idea in this answer to make a plot that has a "discontinuous break" symbol on one of the axes. The trouble is that my plot has a frame and no ...
WillG's user avatar
  • 1,120
6 votes
1 answer
741 views

I would like to create a 2d Graphic[] representing time-dependent flow direction in a network of 'pipes'. Commercial applications use 'animated' dashed lines where ...
Robert's user avatar
  • 505
0 votes
0 answers
111 views

I am trying to produce certain figures for a report that I am writing. Below, I put a previously produced image against which I am benchmarking tic marks and fonts etc of all the images of the report: ...
sap7889's user avatar
  • 93
2 votes
1 answer
165 views

I have the programm which is quite difficult for me and I'm trying to use it for my own purposes, to demonstrate the solution of the geomtric problem. What should I add in this program to get the ...
Maria's user avatar
  • 21
0 votes
0 answers
78 views

I'm interested in using VertexTextureCoordinates in a GraphicsComplex but the behavior is unexpected so I'm looking for ...
smish's user avatar
  • 81
0 votes
2 answers
136 views

I have a combination of ListLinePlot and Graphics. How can I change the point style in Graphics to a diamond or any other marker ...
charmin's user avatar
  • 1,179
0 votes
0 answers
80 views

I am converting a drawing into a grid of black circles. I want to send this new drawing to a laser cutter. The laser cutter should cut out all the black circles. To get ...
Michiel van Mens's user avatar
6 votes
1 answer
273 views

Given two closed shapes, I want to see if there exists a 'film' between the two shapes and if one exists what they are for various solutions where the film is formed by non-intersecting straight lines ...
Romogi's user avatar
  • 687
28 votes
4 answers
2k views

It has been 12 years since @simon-woods created this fascinating animation an invented a boids model which is more efficient than typical ones. Code is extremely short an elegant: ...
Vitaliy Kaurov's user avatar
0 votes
3 answers
317 views

I solved the following Integral $$ \oint_{|z|=2} \frac{1}{z^2+1}\,dz $$ and in my proof, I factor $z^2+1=(z-i)(z+i)$, so the function has simple poles at $z=i$ and $z=-i$, both inside the contour $ |z|...
Athanasios Paraskevopoulos's user avatar
8 votes
0 answers
225 views

I saw this recent art "Traces" by A. L. Crego - check original at the link, ecause animated GIF here is low quality: I cannot figure out what makes it look like it does. I guess we could ...
Vitaliy Kaurov's user avatar
4 votes
2 answers
430 views

I'm trying to recreate a geometric figure similar to the one on the cover of Gilbert Strang’s Introduction to Linear Algebra using Mathematica. The cover illustrates the structure of the complete ...
phy_std's user avatar
  • 323
1 vote
0 answers
69 views

I found and reported a likely bug (in 14.1, persisting till current 14.2.1), but since I would like to not wait until it is resolved, I would like to ask for a help circumnavigating it somehow. ...
P.L.'s user avatar
  • 97
8 votes
3 answers
777 views

I'm trying to create an animation using Graphics and Manipulate to represent a time-varying torque on a system. The idea is ...
Michael Seifert's user avatar
1 vote
0 answers
82 views

First off, apologies for the longish code included. I figured it would be more straightforward to simply include it so that those interested could witness the behavior I'm trying to avoid, as opposed ...
anonmous's user avatar
  • 195
4 votes
1 answer
259 views

I am using the MaTeX package so that symbols can have a widehat over them, e.g., $\widehat{X}$. In particular, here is the code I am using: ...
user107421's user avatar
1 vote
1 answer
126 views

Can we generate code for semi-relative local sensitivity for an ODE mathematical model? This is the ODE system I have: ...
Bakul's user avatar
  • 11
15 votes
3 answers
1k views

I am trying to create an imaginary coastline as per here: I am replicating the rice pattern with this (code adapted from here): ...
martin's user avatar
  • 8,858
1 vote
2 answers
192 views

I have 3 plots: P1, P2 and P3. I would like to create a figure with plot P2, of domain and codomain $[0,\frac12]\times [0,1]$, in the 1st quadrant; plot P1 in the 2nd quadrant, with P1's abscissa $[0,...
G Frazao's user avatar
  • 201
1 vote
2 answers
248 views

I want to superimpose a perfect circle on a plot (Plot, StreamPlot, ParametricPlot and ...
Jens's user avatar
  • 385
3 votes
2 answers
513 views

From the help documentation "As of Version 12.0, all the functionality of the Polytopes package is built into the Wolfram System. »" I would expect that ...
Ulrich Neumann's user avatar
3 votes
1 answer
150 views

When I try to add a bar legend to a log-scale ListDensityPlot, a decimal point appears at the weird position. For example, ...
S. Song's user avatar
  • 33
4 votes
4 answers
477 views

Is there a better way of plotting this? ...
user444's user avatar
  • 2,836
4 votes
1 answer
117 views

As a fun project with my kids, I've created a small GUI that enables us to explore the mandlebrot set. The GUI works great as long as you stay within machine precision. Even though the function <...
John's user avatar
  • 2,663

1
2 3 4 5
100