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
4 votes
4 answers
454 views

How to produce wavy lines

New to Mathematica, I'd like to produce some 'thick wavy lines' as simple graphical forms (not sure how else to describe them), like the waved shape of this dagger blade (but not the handle): I've ...
Steve's user avatar
  • 233
6 votes
3 answers
861 views

How can I draw this image and if you can make it rotate horizontally and vertically?

I've been looking at the site, but it doesn't occur to me there was a method to obtain the coordinates of the image, but I can't find it. Could you give me a hand? It's for a poster of the ...
Pamela's user avatar
  • 309
1 vote
1 answer
135 views

How to make this Morphological Graph appear on top of 3D Graph

I have some code where I want to align a Graph3D of a river and a Plot3D of GeoElevationData,...
Navvye's user avatar
  • 51
0 votes
1 answer
43 views

Using Show with GeologicalPeriodData

In an effort to understand how to use GeologicalPeriodData and extending an example provided in the instructions, I created four GeoGraphics plots of bedrock of varying ages. Each sizes nicely, as ...
Stuart Poss's user avatar
  • 1,774
3 votes
2 answers
782 views

How to speed up this small 2D graphics code?

The following code is very slow, with Mathematica 13.2 on a Mac Silicon M2 Pro: ...
Cham's user avatar
  • 3,969
0 votes
1 answer
90 views

Text missing when exporting a plot as .pdf

I have Mathematica 13.1 on Windows 10. The problem is not present on Mathematica 12.1! I try to export the following plot: ...
John Taylor's user avatar
  • 4,681
4 votes
1 answer
137 views

How can I increase boundaries accuracy in satellite images?

I use the following codes for this work on Mathematica, but they have low accuracy. I would be grateful if you could help me improve accuracy. The codes are as follows ...
Erfan's user avatar
  • 159
3 votes
1 answer
66 views

ListDensityPlot bounded by a region

I want to make a ListDensityPlot within the region bounded by ...
atanu's user avatar
  • 353
-2 votes
1 answer
120 views

How can I graphically represent a vector in as a circle? [closed]

I have an Array of multiple values which represent cars with their velocities. It looks something like this: ...
100xln2's user avatar
  • 427
11 votes
4 answers
964 views

How to create a random zonogon?

A zonogon is a polygon that is convex and is made only out of pairs of parallel sides with the same length. Any regular polygon with an even number of sides is an example of a zonogon. When I use: <...
Teg Louis's user avatar
  • 403
0 votes
1 answer
55 views

How to automate graph display for large datasets?

Large outputs are automatically truncated. For example, How can I apply this to displaying graphs? ...
hana's user avatar
  • 2,688
1 vote
2 answers
64 views

Selecting interesting graph positions with a button press/click or something similar

Assume that I have a graphList as shown below (a simple working example). ...
emnha's user avatar
  • 2,411
3 votes
2 answers
205 views

Fill data points within the boundary established by the given points

I have the following data points: ...
葉柏樂's user avatar
  • 135
0 votes
1 answer
73 views

How could a function in a cylindrical coordinate system be plotted? [duplicate]

Below is the code for finding the eigenfunctions and eigenvalues of a particle in the Coulomb field using NDEigensystem. The problem is solved in cylindrical coordinates ($\rho,\theta,z$; $\rho \in [0,...
Mam Mam's user avatar
  • 1,753
1 vote
1 answer
42 views

How to color functions on a graph in different colors when using Table? [duplicate]

Why are both parabolas of the same color in the first code, and different in the second code? How to make each parabola a different color in the first case and make the corresponding legend? 1. ...
Mam Mam's user avatar
  • 1,753
2 votes
1 answer
246 views

Moving disk over a underlying image

I want to make the following animation. The basis is a image, for example Lena's photo. I will place a new layer over this image. This layer has a color, for example black. In this layer there is a ...
Michiel van Mens's user avatar
3 votes
2 answers
166 views

Colouring stacked 2D in 3D

...
user84456's user avatar
  • 1,554
2 votes
1 answer
58 views

How to put a dot in front of a plot created with listcontourplot?

I would like to put a large round dot at (x,y)=(0,1) in front of a plot constructed with the ListContourPlot function. I have ...
TobiR's user avatar
  • 254
2 votes
1 answer
82 views

CoordinatesToolOptions -> CopiedValueFunction weirdness

It seems that a bug was introduced to the CopiedValueFunction option of CoordinatesToolOptions, where the function is applied to ...
Chris K's user avatar
  • 19.6k
2 votes
1 answer
65 views

Crossing out region on surface

Consider the following Wolfram Mathematica code ...
Smilia's user avatar
  • 592
2 votes
1 answer
103 views

How can we control size of the arrowhead in Graphics3D?

I want to change the size of the head in a specific way such that the distance from the top to the base of the head becomes smaller. ...
MMA13's user avatar
  • 4,265
3 votes
2 answers
145 views

VectorDisplacementPlot is stuck in certain geometries

I want to plot some deformation fields on some geometries with two holes. I do it using VectorDisplacementPlot. In some of the cases the distance between the holes is very small (for example: ...
Shachaf Rotem's user avatar
2 votes
1 answer
87 views

How to style a graph of isotope decay data automatically so that vertices and edges correspond to half-lives and decay probabilities?

For teaching purposes I am trying to create some plots of radioactive decay chains, whereby each node on the graph represents the isotope with a color corresponding to the isotopes stability and with ...
Dunlop's user avatar
  • 3,923
2 votes
1 answer
60 views

Displaying FrameTicks Only on Specified Axes [closed]

I am trying to make a plot with FrameTicks and I would like to have them displayed only on the left and bottom axes. However, the way I wrote the definition, it ...
Christian's user avatar
  • 123
1 vote
0 answers
78 views

Export graphics to PDF without whitespace borders

I have created a 3d graphics plot, and I would like to export it to a pdf file, tightly cropped (no whitespace around the outside). But if I try ...
Bruce Bartlett's user avatar
2 votes
1 answer
88 views

Spurious output from SliceDensityPlot3D with CenterCutBox

Bug introduced in 12.2 or earlier, persisting through 13.2. I am modeling a simple system: the potential from a sphere of charge Q as a function of position. SliceDensityPlot3D with the "...
Jack Adams's user avatar
1 vote
0 answers
137 views

Incorrect line thickness in the exported PDF

The code below plots and exports to a PDF file. As one can see, there is a clear difference between the plotted line thickness in the notebook (left) and in the PDF snapshot (right). This is a sister ...
xiaohuamao's user avatar
  • 4,698
4 votes
2 answers
155 views

Line thickness out of control in exported pdf

The code below plots and exports to a PDF file. As one can see, there is a clear difference between the plotted line thickness in the notebook and in the PDF snapshot. ...
xiaohuamao's user avatar
  • 4,698
0 votes
0 answers
46 views

Custom Single keystroke shortcut related to `Graphics`

In the world of software, single keystroke shortcut exists but rare. Because for single keystroke shortcut, there is a prerequisite : A single keystroke shortcut can be used in situations where ...
imida k's user avatar
  • 4,047
3 votes
2 answers
104 views

Inset disappears once PlotLegends is moved

The following code shows three positions for placing the PlotLegends. Weirdly, only in the first case can we see the Inset '...
xiaohuamao's user avatar
  • 4,698
2 votes
0 answers
87 views

Scale text by adjusting its immediately surrounding frame

I want to ask if it is possible to scale text in Graphics by adjusting its immediately surrounding frame, not the whole frame. ...
imida k's user avatar
  • 4,047
2 votes
0 answers
34 views

Use FoldList to successively ImageAdd regular polygons with between 3 and 8 sides, and with opacity 0.2 [closed]

This question is from Section 29 of "An Elementary Introduction to the Wolfram Language". The objective is to successively add regular polygons with between 3 and 8 sides, and with opacity 0....
QC123_367's user avatar
  • 481
0 votes
1 answer
66 views

Plot VectorPlot and Plot in the same figure [closed]

I want to plot both P1 and P2 in the same figure. What to do? ...
user1942348's user avatar
1 vote
0 answers
39 views

Big FontSize produces empty result

Style[A, FontSize -> 540] (* A with FontSize 540*) Style[A, FontSize -> 541] (* Nothing*) I think FontSize 541 is not too big. Practically there may be a ...
imida k's user avatar
  • 4,047
1 vote
0 answers
41 views

Scalable text in Graphics [duplicate]

From my little experience, it seems impossible to scale a text in Graphics. In other words, text in Graphics is not scalable. ...
imida k's user avatar
  • 4,047
8 votes
2 answers
517 views

How to recursively subdivide a quadrilateral?

I have the following problem which is most easily described by this diagram: We start off with a quadrilateral, not necessarily a square, with four fixed points, here represented in green. We have a ...
flinty's user avatar
  • 23.9k
1 vote
1 answer
76 views

Initialize Graphics Directives

Is it possible to initialize Graphics Directives when constructing Graphics? (=when writing a code for a ...
imida k's user avatar
  • 4,047
1 vote
2 answers
125 views

How could the whole series of graphics be saved?

I would like to save a series of graphics of a function as pictures. But the problem is that I can't manipulate the name of the graphs, because of that only the last graphics in the series is saved. ...
Mam Mam's user avatar
  • 1,753
0 votes
2 answers
124 views

Real-time function graph display

I would like to see how the graph of the function en[B, i, j, k, p] changes depending on i, j...
Mam Mam's user avatar
  • 1,753
0 votes
1 answer
78 views

Measure dimension of an expression without Rasterize [duplicate]

Is there a method to measure (in pixel) width and height of an expression without making it to an Image ? I found a method for measuring width and height of an ...
imida k's user avatar
  • 4,047
0 votes
0 answers
61 views

ParametricPlot3D locations of axes and labels

In 3d plots, the location of the axes are very annoying since it adjusts automatically and usually it does not appeal to what we want. I have browsed some posts but I have not seen any that dealt with ...
mathemania's user avatar
1 vote
1 answer
47 views

How do I assign PlotMarkers based on two different variables?

I'm trying to create ternary diagrams with 6 data points (samples) that each have two values - a type and a location. I have these two pieces: ...
Ilene Kruger's user avatar
0 votes
3 answers
111 views

Parallel movement(Translation) of entire Graphics

Can we construct parallel movement function which act on Graphics primitive or Graphics? Example of ...
imida k's user avatar
  • 4,047
0 votes
1 answer
97 views

How can I draw a triangle and find the length of its height?

Given that the sum of three inner angles $a,b$ and $c$ in a triangle is $\pi$, and knowing that: $$2 \sin(a−c) = \sin b,$$ $$a+b=3c,$$ how can I draw this triangle and find the length of the height on ...
csn899's user avatar
  • 2,901
2 votes
1 answer
69 views

Plane embedded in Non-Euclidean spacetime

The AdS-Schwarzschild black hole metric is given by, $$ds^2 = \frac{1}{z^2} \left( -f(z) dt^2 + \frac{dz^2}{f(z)} + dx^2 \right)$$ where $t$ is time, $z$ is the radial direction, $x$ is a transverse ...
mathemania's user avatar
4 votes
1 answer
98 views

Graphics - nice variant of ImageSize (pixels per GraphicsUnitLength)

On my MMA, I apply the options SetOptions[$FrontEnd, GraphicsBoxOptions -> {BaseStyle -> Magnification -> 72/120}] Then I can assure the output ...
imida k's user avatar
  • 4,047
3 votes
1 answer
97 views

Clip Planes issues

I want to plot a schematic diagram of this or So far, I am able to plot this using the code provided below. I am having a problem with ClipPlanes ...
user84456's user avatar
  • 1,554
0 votes
1 answer
68 views

"Graphics" will cause text tilted

I feel Graphics will make text tilted. As ...
Y. zeng's user avatar
  • 465
7 votes
2 answers
467 views

How to divide the contour in three parts with the same arclength?

We set MeshFunctions to "ArcLength",but it is missing the boundary point,so there only two points on the contour. <...
herbertfederer's user avatar
1 vote
1 answer
110 views

How to show a contourplot within a region?

I want to make a cotourplot given by ...
atanu's user avatar
  • 353

1 2
3
4 5
95