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
1answer
37 views

Get the list of (x,y) point of a graphic

I have a function like this: E^(-t/0.001)*Cos[t] + E^(-t/0.01)*Cos[1000 t] I used the code below as suggested in the forum to obtain the x,y values for points <...
1
vote
1answer
62 views

Find appropriate functions for fitting curves

How can I produce, using Mathematica, the red curves of the following schematic? Unfortunately, I cannot use simple trigonometric functions such as Sin, ...
0
votes
0answers
33 views

Bug in Export of figures with PlotMarkers?

I am experiencing problems with exporting figures such as combinations of ContourPlot and ComplexListPlot. As an example, when ...
1
vote
1answer
39 views

Improving my superimposed hexagonal lattice code

Pretty knew to Mathematica here. I have created a code stemming from a basic function that I found here in the stack exchange. I am basically making three different hexagonal lattices. Two of them are ...
4
votes
2answers
124 views

Implementation of Bean machine (Galton board)

Bean machine is a triangular array of pegs, Balls are dropped onto the top peg and then bounce their way down to the bottom where they are collected in little bins.Each time a ball hits one of the ...
0
votes
1answer
48 views

How can I adjust the size of this parametric plot output? [closed]

I have a problem with the dimensions of the output of a ParametricPlot. What I'm trying to do is solve a differential equation using ...
0
votes
0answers
45 views

How can I make publication quality figure in mathematica? [duplicate]

It includes adjusting the DPI of the image.
1
vote
3answers
92 views

Plotting a graph with legends that don't overlap the graph?

Consider: ...
7
votes
1answer
441 views

Draw an arrow such that this arrow gradually dims away?

How to draw an arrow such that this arrow gradually dims away? Say the arrow head has Opacity[1], but the arrow end has ...
3
votes
0answers
30 views

Graphics Ticks function evaluation on Wolfram Cloud

I have been trying to get something like ResourceFunction["GraphicsInformation"] to work in the cloud - however, it looks like the tick and grid functions ...
17
votes
3answers
3k views

All that doesn't glitter isn't gold

I would like to color some objects in metallic shades like gold and silver. Various web sources suggest that the gold is a variant of yellow with RGB values 83.14% red, 68.63% green, and 21.57% blue. ...
0
votes
1answer
52 views

ParametricPlot Piecewise Bug

I have a code where I wrote a piecewise function and did a parametric plot. However, there seems to be something wrong with the plot because there is an edge that appeared which should not be there ...
7
votes
2answers
160 views

How can I rescale / format chart elements in a bar chart?

In this simple MWE, I create a simple chart element of a female figure, and then I apply it to a barchart, with the following code (note: womfig = this little stick figure here). ...
1
vote
1answer
54 views

Draw first few sides of a polygon thicker than the remaining sides

I use the following code to draw an n-polygon where the first t sides are meant to be thicker than the remaining sides: ...
0
votes
1answer
60 views

How to form Rigid Body Transformation Matrices?

We have two line segments specified by a pair of points $(b_1,t_1)$, and $(b_2,t_2)$. We want to find the transformation between the two line segments. Define a unit vector $z_1$ from $b_1$ and ...
4
votes
2answers
390 views

On orthographic projection

Writing: ...
3
votes
2answers
131 views

Find intersection points between ParametricRegion and other curves

How do you instruct Mathematica to return intersection points between curves as numerical values, when using ParametricRegion to represent at least one of the ...
3
votes
1answer
42 views

LayeredGraphPlot: How to draw inputs and outputs edges without first and final vertex?

I would like to obtain entrance edge and output edges as in the following figure My code is the following: ...
1
vote
2answers
87 views

How can I change the default color of the basic geometric regions in 2D?

I like to use the basic geometric regions in Mathematica, like Parallelogram[...], Rectangle[...], ...
0
votes
0answers
53 views

Projections of the 3-dimensional phase-space of a non-autonomous ODE system

Given classical system of ODE: $\begin{cases} \dot{x}=g \\ \dot{g}=t \cdot (-g+\frac{df}{dx}) \\ \dot{h}=-h+\frac{d^2f}{d^2x} \end{cases}$ where $f = e^{-x^2}$ I am constructing a three-dimensional ...
3
votes
1answer
50 views

How to use multiple Locators with different TrackingFunction in Manipulate?

I am trying to use TrackingFunction with Locator inside Manipulate, and it works fine with a ...
2
votes
2answers
101 views

Canonical way to plot a function along a 2D path defined by a list of points

I have some function f[x_, y_] = Sin[x] Cos[x],say. I want to plot this function in 2d along a path defined by a list of points in the plane, say ...
0
votes
1answer
106 views

How do I recreate this circle packing image?

I found this image online: and I would like to recreate it in mathematica. Is there an easy way to create this kind of circle packing in mathematica wihtout calculating all the individual radii? I ...
3
votes
0answers
34 views

Interpolating vertex colors with trilinear coordinates instead of barycentric

In 3D graphics, vertex attributes like vertex normals, texture coordinates, and vertex colors are interpolated over the surface of triangles using barycentric coordinates. In actual fact it's more ...
2
votes
1answer
66 views

how can I put axes with different values on the same graph

My difficulty is to find a way to make the other waves are aligned with different axes and parts with different times ...
1
vote
2answers
57 views

Efficiently saving a vector graphic with RegionPlot and labels

I would like to save an image as a vector graphic (.pdf), so that when I zoom in, the lines and labels remain crisp. However, the image I am saving also contains components that are generated by ...
0
votes
1answer
33 views

LayeredGraphPlot: How to remove one arrow from the edge of the LayeredGraph and keeping the other arrows visualized?

I used "LayeredGraphPlot" in the simulation of a schema. I would like to remove the two green arrows while keeping their edges, and the other arrows of the graph. How should I proceed to ...
0
votes
0answers
16 views

How to create an average plot of net-profit of companies

What I want to do is to get let's say 10 companies from the tech sector into a list (I can do that manually, no problem) but then I would want to plot the net-profit of these companies with one graph, ...
0
votes
0answers
16 views

How to manipulate time on a geographic map

First I've input: ...
2
votes
0answers
34 views

LayeredGraphPlot: How to control the style of the edges? [closed]

I am trying to plot a graph using LayeredGraphPlot; I would like to change the style of the edges commented out inside the following command to dashed lines with different colors: ...
1
vote
0answers
53 views

Is it possible to resize Canvas?

I would like to create Canvas with width along x is doubled the value along y. In ...
3
votes
2answers
94 views

Normal to surface spanned by 2 vectors [closed]

I am trying to get the normal to a surface spanned by 2 vectors, but am getting an incorrect result. ...
2
votes
1answer
77 views

Is there a way to overlay two DensityPlot3D graphs

I'm trying plot 3D wave functions around potentials. I'd like to show the potential function on a DensityPlot3D, and the resulting wave functions on the same graph....
0
votes
1answer
53 views

On the geometric transformations of polygons

Each starry set has the following property: ...
2
votes
1answer
94 views

How can I combine two parametric plots in a continuous one?

I'm studying the Ekman spiral for piecewise uniform viscosity. So I have two velocity components (u,v) for every layer. One pair for the sufrace and one pair for the layer below. ...
0
votes
0answers
38 views

How can I plot complex functions which take small values?

I would like to know, how can I plot some functions that have oscillating behavior each function can be plot independent. The goal is to show both oscillations even is they are very small values. ...
1
vote
1answer
35 views

Cannot combine graphic objects while plotting two Smooth Histograms

I am trying to plot two smooth histograms, which I'm generating separately so I can chose their PlotStyle separately. When I run the code, it says I cannot combine the two graphic objects. What am I ...
3
votes
1answer
96 views

Updated! Graphics ignores $ImageResolution in v12.2 - MMA Graphics slow down with 4K monitor - Rasterize with Dynamic give problems in v12.2

Update: I've determined that my problem is partly specific to my 4k display. When I run the exact same code on a 2k display, I have no trouble at all, despite MMA still treating ...
4
votes
0answers
64 views

Drawing on screen outside notebooks

Is there a way to display (animated) graphics outside of Mathematica notebooks, i.e., in a specified rectangle on the screen? I can imagine that one way to achieve that is by creating a notebook ...
20
votes
6answers
3k views

Creating the Yin Yang symbol with minimal code

The following code creates the Yin Yang symbol ...
5
votes
2answers
208 views

embedded text in Graphics3D does not appear when exported as pdf?

I am using this answer to embed text in Graphics3D (MMA12.2.0.0, win64) but when exported as pdf the text disappears? here is the first part of the code from the ...
1
vote
1answer
39 views

Colors in RegionPlot legend

I'm trying to put a common legend for two-row RegionPlot. However, I haven't been able to get the colors in the legend right: ...
1
vote
0answers
53 views

How can I use TradingChart without volume data?

I am trying to use the Mathematica Function TradingChart to produce a chart. I am using data produced by me for the plot and I do not have the volume data. Here is ...
2
votes
3answers
155 views

arrows arranging on a ring

I have been involved in a challenge for some time: A ring with a number of arrows on its perimeter. The number of arrows depends on the angle $\theta$. For example, for $\theta=2\pi/36$, the number of ...
0
votes
0answers
22 views

StreamDensityPlot creating an Image that doesn't correspond to DensityPlot

I am trying to use StreamPlotDensity to find the direction of my electric field at a point x,y. My electric field is given as ...
2
votes
1answer
79 views

Plot function with Safari: numbers from Axis squished in the corner

I'm using the Mathematica cloud service and want to plot a function like this. (This is the basic Example from the Documentation) But on my browser the resulting Plot looks like this. (an image of my ...
9
votes
1answer
255 views

On the ordering of the vertices of a polygon

Writing: pts = {{1, 0}, {2, 0}, {2, 3}, {3, 3}, {3, 4}, {0, 4}, {0, 3}, {1, 3}, {1, 0}}; Graphics[{Red, Point[pts], Blue, Line[pts]}] we get: and all of this ...
2
votes
2answers
92 views

Changing graphics coordinates to the image coordinate frame

The graphics libraries I'm used to using with images, all use image coordinate frames. That is, the origin is in the upper left hand corner. I'm relatively new to using Mathematica for image ...
0
votes
1answer
61 views

Extracting intensity from density plot image given color bar

I have an image showing a density plot from a paper, as well as the corresponding color bar. I am trying to convert this back to a 2D array of intensities. Here's what I did, which works but seems to ...
1
vote
0answers
73 views

Creating a map of earth from an unknown region of the sphere

Lately I've been trying to use Mathematica to plot a map of earth. I have an analytic function from a known triangle to some part of a unit sphere, described by unknown parametrization. This function $...

1
2 3 4 5
80