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,138 questions
Filter by
Sorted by
Tagged with
58 views

Is a point inside a graphics group composed of multiple Polygons and FilledCurves, not all overlapping?

I have many thousands of points, and I want to check if they are inside a GraphicsGroup that is composed of many Polygons and FilledCurves, similar to GeoWithin but without having to make tedious ...
171 views

Plotlabel too high issue (V12.3)

I think I started to notice this issue with plots when I updated to version 12.3 a couple weeks ago but didn't pay too much attention. Now it's really bugging me because I have a presentation of this ...
151 views

Plotting ellipse with given parameters

How would I go about plotting an ellipse at a given center point x,y with a given angle, semi major axis length as well as the major axis length? My attempt I had tried to use the Ellipsoid function ...
88 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 <...
84 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, ...
104 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 ...
54 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 ...
191 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 ...
74 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 ...
75 views

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

It includes adjusting the DPI of the image.
122 views

Consider: ...
455 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, but the arrow end has ...
32 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 ...
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. ...
59 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 ...
174 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). ...
56 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: ...
111 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 ...
437 views

Writing: ...
164 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 ...
46 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: ...
101 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[...], ...
65 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 ...
61 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 ...
108 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 ...
139 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 ...
57 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 ...
72 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 ...
77 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 ...
39 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 ...
20 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, ...
23 views

How to manipulate time on a geographic map

First I've input: ...
36 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: ...
63 views

Is it possible to resize Canvas?

I would like to create Canvas with width along x is doubled the value along y. In ...
119 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. ...
86 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....
68 views

On the geometric transformations of polygons

Each starry set has the following property: ...
149 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. ...
41 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. ...
38 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 ...
105 views

25 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 ...