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

3,973 questions
Filter by
Sorted by
Tagged with
134 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). ...
137 views

### Images as labels - resizing problem

I'd like to label a pie chart with images, ideally resized to fit inside the sectors. The problem is I can't seem to control the size of the imported images. Here's an MWE with no attempt at resizing, ...
38 views

### What font is used for the TraditionalForm? [closed]

What font is used for the TraditionalForm?
346 views

Writing: ...
52 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: ...
59 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 ...
1k views

### Drawing a trihexagonal tiling

I am trying to draw a trihexagonal tiling of the following form using Mathematica. I attempted to begin by using the result given in this Stack Overflow Q & A. However, I couldn't figure out how ...
57 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 ...
54 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 ...
129 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 ...
130 views

### JavaGraphics` and CreateDialog don't work with ListPlot in Mathematica 11.3/12

Bug introduced in 11.2 and persists through 12.2, case 4331202 I'm trying to see some plots based on data from a remote cluster as it runs various Mathematica 11.3/12 scripts, so I want to use the ...
39 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: ...
85 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[...], ...
32k views

### How can I transpose x and y axis on a Plot?

This question has appeared in various forms online, but I have not yet seen a complete answer, so I am posting it here. More specifically, suppose I have a function ...
99 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 ...
51 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 ...
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 ...
102 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 ...
27 views

### Exported Frame Tick Labels Don't Look Anti-aliased

I have a frame with labeled gridlines and I'm exporting it as a PNG. I am using ImageResolution to scale it up. This is the output I get when there is no function being plotted (it has an alpha ...
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 ...
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 ...
2k views

### Can trees be made into graphs?

When one has the output of a function like TreeForm, for instance: Can this be turned into a Graph object? I would like to be able to apply functions like ...
91 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 ...
207 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 ...
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 ...
51 views

### Adding an inset box on a graph

Question: I would like to have a second inset box on the graph below, as a legend for the graph but it's not showing. I tried to do make it work by editting an old example I had from another question, ...
15 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, ...
16 views

### How to manipulate time on a geographic map

First I've input: ...
93 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. ...
93 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. ...
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: ...
3k views

### Creating the Yin Yang symbol with minimal code

The following code creates the Yin Yang symbol ...
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....
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 ...
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 ...
95 views