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
7
votes
2answers
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). ...
4
votes
2answers
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, ...
0
votes
0answers
38 views

What font is used for the TraditionalForm? [closed]

What font is used for the TraditionalForm?
4
votes
2answers
346 views

On orthographic projection

Writing: ...
1
vote
1answer
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: ...
0
votes
1answer
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 ...
8
votes
4answers
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 ...
0
votes
1answer
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 ...
1
vote
2answers
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 ...
3
votes
2answers
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 ...
3
votes
1answer
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 ...
3
votes
1answer
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: ...
1
vote
2answers
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[...], ...
16
votes
3answers
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 ...
2
votes
2answers
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 ...
0
votes
0answers
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 ...
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 ...
0
votes
1answer
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 ...
0
votes
0answers
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 ...
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 ...
12
votes
6answers
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 ...
2
votes
2answers
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 ...
5
votes
2answers
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 ...
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
1answer
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, ...
0
votes
0answers
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, ...
0
votes
0answers
16 views
3
votes
2answers
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. ...
2
votes
1answer
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. ...
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: ...
20
votes
6answers
3k views

Creating the Yin Yang symbol with minimal code

The following code creates the Yin Yang symbol ...
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....
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 ...
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 ...
3
votes
1answer
95 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 ...
0
votes
1answer
51 views

On the geometric transformations of polygons

Each starry set has the following property: ...
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 ...
4
votes
0answers
62 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 ...
9
votes
1answer
228 views

Unexpected behaviour of ImageSize and ImageDimensions in 12.1

Since upgrading to 12.1, I'm getting the following unexpected doubling of image sizes set with ImageSize and reported by ImageDimensions, as seen in the following MWE: ...
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: ...
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 ...
1
vote
0answers
52 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 ...
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 ...
7
votes
1answer
2k views

How to generate a 3D stream plot with stream rotation and compression?

Main Question In the Chinese TIEBA community, there is a quite interesting post that have real world application, so I’m going to translate it and post it here to see if anyone can give an elegant ...
9
votes
1answer
253 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 ...
1
vote
0answers
72 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
vote
2answers
50 views

Label each one of the different graphs generated by a parameter

I need help with this. I want to label each one of the graphs generated by the values of the parameter t, but I'm unable to do it because the program takes the five graphs of the summatory with a ...
3
votes
3answers
523 views

Connecting the closest points on circles with a line

Suppose I have the function f[c_, z_] := z^2 + c and the following collection of circles in the plane. This is a simple example with only three circles, disjoint ...

1
2 3 4 5
80