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

### Fill in color for transparent area in 3D plot

I have a lattice of large spheres: ...
• 195
56 views

### Code worked before and now doesn't [closed]

I created some CobewebPlots and everything worked. Two days later I wanted to copy this code in order to make more graphs, but it doesn't work anymore and I don't know why, even if I press shift+enter ...
48 views

### Graphic-inset in Plot gets butchered

I want to add an inset with a graphics-primitive in a ListPlot. This should be fairly simple: First the inset is defined: ...
73 views

### Problem With Dynamic[] in Graphics

I'm writing a little function to quickly draw some bezier-curves and lines on diagrams. The function opens a DialogInput. The user can use Locators to draw a line onto the diagram. When the user ...
• 319
19 views

### Recovering Data Points from an image with log axis

I saw this question (Recovering data points from an image) and it works when axis are linear, but, what if axis are log,log (red curve below) or linear,log (blue curve) like this:
• 41
121 views

### How to plot the distance between a point moving on a line and the center of a circle

I want to plot a graph that represents the distance of a moving point on a line and the center of a circle, I want to plot the graph on the right (the red dotted graph) screenshot of an explanatory ...
• 179
36 views

### How to hide the front edges of box like this picture? [duplicate]

I want to show only 9 edges of the box,but hide 3 edges that would obscure the graphics.
• 33
94 views

### Plot3D plotting serrated edge

I want to plot the upper casket of a sphere in 3D using its parametrisation as $s(x,y) = \sqrt{1-x^2-y^2}$. Although this show be straight forward with Plot3D, I am running into an issue I find very ...
58 views

### How to generate two random points when a button is pressed

I want to plot two random points when a user presses a button. I have done some work but nothing happens when the button is pressed. The points remain at their current locations. My code is as follows:...
• 179
77 views

### How to draw a smooth scatter plot where the group of points in the graph are replaced by a smooth coloured region and an exponential scale being used?

I want to draw a scatter plot where in place of the points in the graphs it is replaced with a colored region. And also the scale in both the X and Y axis from 10^(-4)-1 i.e it should go in the way 10^...
1k views

### Draw impossible figure with MMA, how can it be done?

How can I draw this figure using Mathematica? I have tried to trace the points on it but the white lines or contours that they have distort the resulting figure. I have searched for some similar code ...
• 181
73 views

### Is there an alternative way to obtain the given plot directly from the equation $f(a,b,x)=0$? [duplicate]

I have the equation $f(a,b,x)=0$ where the function $f(a,b,x)$ is as follows f[a_, b_, x_] := (x^2 + 2) (Sin[5 a] + Sin[3 b]) - 3 (x^2 + 1) Sin[x] I want to plot ...
• 1,089
109 views

### How can we get coordinates of 3D vector with respect to a specific plane?

I have three vectors that are lying down in the 111 plane ...
• 3,517
148 views

### Controlling point in graphics 3D with locator

I want to control a point in 3D graph by dragging it with the mouse lets say this is my code and I want to add some functionality like the way locator works in 2d graphics ...
• 179
28 views

### Error : Array {-6, 2} has the wrong dimensions for a graphics coordinate list [closed]

I'm trying to plot two lines and the point of intersection between them, and I got this error : ...
• 179
120 views

### How can we color 3D objects in specific direction?

Update I would like to control the direction of the color gradient to get similar to this plot but in 3D Original ...
• 3,517
1 vote
72 views

### Organize and identify data of points to data of lines

I have a data set of points in 3D, which consists of a few lines. data is given as a list of points for each z-plane. I plot ...
• 4,370
113 views

First, run ...
• 16.4k
84 views

### How is a 3D plot drawn in 2D from an arbitrary viewpoint?

I am working on a project that involves SciDraw. The SciDraw software is great for making high quality plots, but it is not compatible with any 3D plots. I need to add some relatively simple 3D plots -...
453 views

### How can I make a similiar kind of diagram without solving the dynamical equation?

This is the phase-space diagram of a system that is itself a modified Thomas system for c=5 and b=0.0. However, I want to plot a similar figure without solving the equation. It does not need to be as ...
• 664
357 views

### Using graphics primitives as buttons

I am trying to use graphics primitives as buttons, but can't do it unless I rasterise first: ...
• 8,005
97 views

### How to change the manipulation of the point Q to a Locator?

I want to control the point Q by a Locator not with Slider, how to make this work? ...
• 179
148 views

### Weird black line appears in vector density plot

Bug introduced in 13.0, persisting through 13.1. I am plotting a vector field data where the background color indicates the vector orientation. I use ...
• 4,370
1 vote
82 views

### How to align two axes with CombinePlots?

How can I align the lowest point and highest point of these two axes like 0 is aligned with 0 and 3 is aligned with 1.0 on the other axis? The desired output is something like this (just to show the ...
• 2,151
36 views

### Controlling Both Show's Plotting Order and Options Generally

Similar to Changing the plotting order in Show, I'd like to have control over plotting order with more advanced graphics, like a Legended ...
56 views

### Modify AxesRange

I want to modify the range of the axes. The axes should only show the range from 0 to 1. The plot contains a text item (name of HalfLine) witch disappears when I add PlotRange, but if I don't add ...
81 views

### Plot sphere and points from file

I've been trying to plot spheres and points, given the (c_x, c_y, c_z) centre coordinates of the sphere and (x, y, z) coordinates of the points, like this: ...
• 21
522 views

### Rotating 2D graph like if it were in 3D

I want to rotate graph plotted in 2D like if it were in 3D - around any axis x, y, z. The following code allows me to rotate only inside ...
• 3,735
46 views

### Custom PlotMarkers with Graphics get cut

In attempt to accurately place points in a ListPlot, I'm using custom PlotMarkers made from ...
• 18.3k
45 views

### Multiple 2D and 3D plots in a table with mathematica/wolfram

I'm a mathematica newbie! I want to display 15 plots (5 rows labeled by "A" "B" "C" "D" "E" and 3 columns labeled by "P1" "P2" &...
• 101
70 views

### Why does Rasterize introduce a new area into my Graphics object?

Bug introduced in 13.1 or earlier I am using Rasterize on a Graphics object (because I want to count the number of black and ...
1 vote
67 views

### Label a HalfLine [closed]

I want to show the two accumulation points of the attached plot with two HalfLines, but I don't know how to label the HalfLines. I've been searching quite a while on internet but I can't find a useful ...
121 views

### How to plot two BVPs in Mathematica [closed]

I have two BVPs as: $x^{\prime\prime}(t)+tx(t)-t^{3}-2=0$ and $x^{\prime\prime}(t)+x^{2}(t)-t^{4}-2=0$ and their BCs are $x(0)=0$ and $x(1)=1$. Now the function $x(t)=t^{2}$ is their common solution. ...
• 161
119 views

### How to generate a Mollweide projection of the rotated earth?

I can center an orthographic projection of the earth over New Zealand with ...
• 37.9k
280 views

### Optimizing combinations of 3D figures

For every complex number $a$ one can define a function $Q_a$ on $\mathbb{C}$ ; $Q_a(b)=$IP[ar, ai, br, bi], $a,b\in \mathbb{C},ar=Re(a),ai=Im(a),br=Re(b),bi=Im(b)$, ...
• 312
63 views

### Get range of a Graphics object [duplicate]

Let g1 = Graphics[{Orange, Disk[{0, 0}, {3, 4}]}] It is clear that the g1 can be contained in a rectangular region whose left-...
• 3,221
216 views

### How can I draw several diagonal squares?

I'm the beginner in Mathematica Plot, so I recently met many situations that I could not understand. Here is my code for drawing 10 squares across the diagonal line in a square: ...
• 101
86 views

### For Graphics, ImageDimensions yields slightly different value

I use Mathematica version 12.2, Windows 10. Graphics[{Red, Rectangle[{0, 0}, {200, 300}]}, ImageSize -> 200] // ImageDimensions {200, 296} I think the output ...
• 3,221
184 views

### How stack text over an arrow

As part of a visualization of a mapping from a planar domain to another planar domain, I want to create a Row of the form ...
• 11.5k
135 views

### Context menu to graphics component

How do I add individual context menus (shown upon secondary mouse click) to various components of a graphics object without needing to go into edit mode? Consider the following example: ...
• 18.9k
68 views

### Why my region plot looks so weird? [closed]

I'm trying a 2d plot using the following code: ...
• 101
150 views

### How use Locator for planar point and image of that point under a function?

Consider the following function as mapping the {x,y}-plane to a copy of that plane: F[{x_, y_}] := {x^2 - y^2, 2 x y} I want to ...
• 11.5k
88 views

### How to correctly specify the ViewCenter here?

The folowing code produces 2 graphicses: LEFT ONE (denoted slika1): camera view and an object (octahedron) RIGHT ONE (denoted ...
• 449
243 views

### How do I draw the vertices of the following hollow polygon and connect them in the way I want?

What about polygons with a higher number of vertices?
• 43
91 views

### Ticks showing only partially or not at all

I have the following code: ...
105 views

### Unwanted fill color in David Park's Presentations package plots

The Presentations package by David Park allows plotting of complex curves and other objects defined in terms of complex numbers. A free version of the package, but without any documentation, is ...
• 11.5k
98 views

### How can I visualize this complex geometry with mathematica?

Let $\varepsilon$ be a complex number of small magnitude and let $1+\varepsilon$ have magnitude $r$ and argument $\theta$. I want to generate the following image in Mathematica: and then I want to see ...
• 359
1 vote
63 views

### Plot graphics frame Issue

Bug introduced in 13.0 and persisting through 13.1 With Mathematica 13.1 I see the following issue with the right side frame changing based upon the number of elements plotted. Specifically, with ...
• 313
42 views

### GraphicsColumn - Multiline text isn't adapting based on overall column size

I'm trying to use Graphics Column to add a label under my plots. Eventually these individual columns will be combined in a grid, and I want the height of each plot to be the same so I can compare data ...
• 73