# 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,055 questions
Filter by
Sorted by
Tagged with
37 views

### Combining a BubbleChart with a MatrixPlot

Is there a way I can combine a BubbleChart with a MatrixPlot? I already plotted a MatrixPlot ...
49 views

### PlotRange is not applied after text image conversion is moved

I converted the text image using Rotate and Translate functions. ...
204 views

### Writing a document-like Text

Imagine I have the following code Graphics[{LightBlue, Rectangle[], Black, Text["Hello", {.1, .9}]}] If I had more text to the ...
65 views

### How to draw free body diagrams in Mathematica [closed]

I'm wondering how I can draw free body diagrams for physics in Mathematica. For example, how would I draw a side-view of the beams of a bridge with labels that show the forces in the x and y direction ...
83 views

### MoleculePlot always returns an empty plot

MoleculePlot@Molecule["O=C(C1CCC1)S[C@@H]1CCC1(C)C"] This is a documented example usage of MoleculePlot, but it ...
53 views

### Ising Model 1D /Thermodynamics properties

I want to plot the thermodynamics properties of the Ising model like free energy, entropy, magnetization..etc., when h=0 ( no external field ) and when h= finite values For the energy as function of ...
47 views

### 2D projection of a 3D plot [duplicate]

how we can obtain a 2D projection of 3D plot. I would to have a plot like this : PS: the plot is a publication paper.
301 views

### How to make a dynamic plot of a holed circle using "Manipulate"

I would like to make a dynamic circle with the inner radius ($R_a(t)$) moving to $R_b$ like the image below. I had difficulty using Manipulate and leaving the intersections colored as in the image. ...
135 views

### Preventing auto graphic rescaling

I would like do do something with dynamically updated graphics similar to: ...
65 views

### how to plot multiple plots sharing a common X-axis and Y-axis

With the following Code, I generate various ListLinePlots but I like to create the example ...
131 views

### Excessive computation time for ParametricPlot

How can I improve the excessive computation time for this plot. (Warning: do not attempt) ...
151 views

### Rectangle packing, fixed sizes

I have rectangles of a given size to fit into a larger rectangle of a fixed size, with a specified gap between the packed rectangles. I would like to write some code that optimises the number of ...
60 views

### Remove artifact in Graphics3D

I have this 3D image where on top(below) there is a hemisphere(blue) and an inner cylinder(green), you can see there is some overlap/artifact being displayed. How can I remove this? ...
802 views

### Text shake in an animation

I'm making a simple animation, found that the text is always slight shake. I think this is not a precision problem. Maybe related to rendering? Is there a related option or this workaround? ...
114 views

### How Can I Visualize a PDE Boundary Condition? [closed]

I want to use Mathematica to visualize boundary/initial conditions for PDEs in 3-dimensional space. This was sparked by the initial comment in this question, which attempts to solve the PDE \...
162 views

### Creating a table from a for loop output [closed]

I have created a For loop that solves f(x)=0 using the Bisection method: ...
101 views

### Dense packing of disks with different radii

Let's consider a disk ($D_{1}$) whose center position is randomly generated, but the radius is fixed at $r_{1}$. A second disk ($D_{2}$) of fixed radius $r_{2}$ (with $r_{2} < r_{1}$) is randomly ...
188 views

### Wrong input to Line[] crashes the Front End

WARNING: The code in this post crashes the Front End on my computer, causing all unsaved work to be lost. Be sure to save your work before trying this out! ...
46 views

### How to place labels on GraphicsRow?

I have a list of image and a list of labels and I am trying to combine them using GraphicsRow. I didn't see any "label" related option in GraphicsRow so ...
158 views

...
44 views

### Mesh Control Problem

I am having trouble combining two graphical objects. The problem has to do with controlling mesh lines. The simplest failing example is combining a circle graphics primitive with a RegionPlot. Either ...
40 views

### Plot markers size, shape and placement in ListPlot

I have the following test data ...
92 views

### Bloch ball for a given transformation: Applying transformations to regions

How can we apply transformations to Regions in the Wolfram language? For example, given the transformation $r_x \rightarrow r_x\sqrt{1-g}, r_y \rightarrow r_y \sqrt{1-g}, r_z \rightarrow g + r_z (1-g)$...
732 views

### How can I move around a circle and count the number of points inside it?

I have the following data: ...
107 views

### How to use Manipulate with ListLinePlot

I'd like to run Manipulate with 0<r<=4 that preserves the ListLinePlot of the recurrence table given with the colors shown. I'm looking to use the autorun feature in Manipulate to show how the ...
127 views

### ImplicitRegion does not work in simple case

Why doesn't this work: RegionPlot[ImplicitRegion[1 == 0.2 x + 0.5 y, {x, y}]], while this, which is almost the same works: ...
34 views

### ComplexListPlot not ploting [closed]

In a nutshell i have to plot a sequence of complex numbers to roughly see if it converges or not. I've created the list using the following ...
27 views

### How to deploy cloud application that graphs two companies net profit

What I want to do is to deploy a cloud application that would compare two stocks and (for bonus if it is possible) to also compare the net profit of two companies on a graph. I tried: ...
72 views

### New offset Dashing argument in 12.3

After finding out that in 12.3 two new optional arguments have been added to Dashing, I decided to have a look at them. Unfortuantely, I don't understand the way ...
74 views

### How to get neighbor lists in the same order/orientation from a periodic IGTriangularLattice[] graph?

Using IGraphM, I want to get the VertexComponent[] neighbors around all nodes, in a periodic IGTriangularLattice[] graph. To do ...
313 views

### How to draw arrows of certain length from a point, at a certain angle?

What's the specification to draw arrows of a certain length (from a reference point), at a given angle? Say, I want to draw an arrow of length 1 at 0 degrees, and one of length 0.5 at 90 degrees, each ...
63 views

is there a way to put the labels on this pie chart (e.g. {"c1", "c2", "c3"}) at a distance from the origin on the slices between "RadialCenter" and "...
61 views

### Graphics with frame labels written in terms of a parameter

Assume that variable pointList contains the coordinates of some random points, each of which is expressed in terms of L, for ...
142 views

### How do I plot (1,1) (2,2) (3,3) and so on, on a Polar Plot?

I recently downloaded Mathematica and am extremely new to the software. To start off, I wanted to work with Polar Coordinates and Archimedean Spirals. I want to be able to graph a continuous spiral ...
78 views

### Why do Spheres with negative radius appear dark?

If I run the following, Graphics3D@{Blue, Sphere[{0, 0, 0}, 1], Sphere[{3, 0, 0}, -1]} I find that the positive radius sphere is properly lit as one would expect, ...
91 views

### High quality Plot 3D

I have the following definitions ...
42 views

### Graphics3D default properties? [duplicate]

I realized that it is impossible to reproduce default sphere only by declaring its color. ...
76 views

### Plot two square lattices on top of one another

I plot two square lattices where one of them is rotated by 30 degrees. The Mathematica command to generate them is ...
83 views

### Automatically redraw Plot once Locator has changed

I have a Dynamic inside LocatorPane which provides a value to be used in several other places. The idea is to have a Plot that ...
73 views

### Producing a closed 2D parametric region

I would like to create a 2D contour plot inside a closed region where the latter is produced by generating a parametric plot of a piecewise parametric function and then using ...
855 views

### How to make figures in a casual, old-fashioned style

I'm writing a math textbook and use Mathematica to make figures. However, like all modern software, Mathematica produces perfectly crisp mathematically accurate figures. Meanwhile, I feel that old-...
117 views

### Plot or draw a differential geometry graph in Mathematica?

I want to draw a differential geometry diagram, but I don’t know how to draw it. I can only draw graphics like the first picture. There are many differential geometry diagrams in textbooks. What tools ...
167 views

### How to determine which points are on an envelope of ellipses?

I'm wondering how to determine the location of some of the points on the envelope of a family of ellipses? The picture I have is below: For each of the individual ellipses, I know how to get the ...
180 views

### How to get the image from output of Sound[]

Sound[] generates a visual representation of notes. I would like to extract that image, only notes, without controls and borders. How can I do it? Take this example ...
106 views

### How to draw tangents to a curve and obtain the corresponding angle?

I'm trying to solve an equation and plot the solutions in the complex plane: ...
40 views

### Would like to plot triangles while specifying color of vertices

In the following code, trying to specify that the points are red? Why not all of them are red? Also, is it possible to combine a and b into one plot? ...
96 views

### How can I create and plot (in the same diagram) 1000 different vectors in Mathematica?

I'm new to Mathematica and I got stuck. Also, I'm not a programmer, so I would like to ask the following question. I want to make 1000 different vectors, of which everyone contains 55 random elements. ...
39 views

### Add labels to points based on variable names

I have a list of points, and from them I am drawing a polygon: ...