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
3 votes
2 answers
85 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 ...
user avatar
1 vote
1 answer
52 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 ...
user avatar
  • 313
3 votes
2 answers
39 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 ...
user avatar
  • 63
4 votes
0 answers
62 views

Drawing a tree diagram

I want to draw a tree diagram, like this I use Wolfram do some work ...
user avatar
0 votes
1 answer
55 views

Graphing and calculating the volume using mathematica (or other)

I posted the following in MSE: (See Here) Consider two cylinders Cs (solid) and Ch (hollow): Cylinder Cs has a radius rs, and has the points (x1,y1,z1) and (x2,y2,z2) as the centers of its bases. ...
user avatar
1 vote
2 answers
108 views

Drawing two figures

Can someone please help me to draw the attached figure in Mathematica?
user avatar
0 votes
0 answers
18 views

Rotate Label not working in ListPlot [duplicate]

RotateLabel->False is not working for me in ListPlot. I'm using Mathematica 13.1 for Mac OS X Arm (64-bit). For example, this produces the error for me ...
user avatar
  • 345
2 votes
1 answer
74 views

Axis Label 3D plot

I want to move the two horizontal axes closer to the axes keeping the same writing style (the label parallel to the axis), and also, the vertical axis should be parallel to the vertical label. Does ...
user avatar
1 vote
1 answer
121 views

How to introduce random correlations in a 3D uniform distribution of points?

I would like to build a simple visualization of the distribution of galaxies on a large scale model of the universe. Currently, my galaxies are represented as uniform random black dots in a 3D cube, ...
user avatar
  • 3,645
1 vote
4 answers
195 views

A square with different centers and sides of different lengths

As you can see the bottom square is in the ${((0,2),(0,2))}$ range The center of the square is indeterminate The length of a square is indeterminate The length of the square is indeterminate, and $1/...
user avatar
5 votes
1 answer
192 views

How can I generate the image without the diagonal line in an efficient way

The purpose is to generate a square texture image from a triangle patch of the original texture image. ...
user avatar
  • 8,155
2 votes
2 answers
115 views

How to remove seams between hexagonal pixels

I'm trying to plot a function taking discrete values on hexagonal lattice. However, there are visible white seams between hexagonal pixels. As a comparison, the built-in ...
user avatar
  • 633
1 vote
1 answer
66 views

Distorted vertical arrows

I had this problem before, but can't find anything about it on the web. I will paste, what looks like a lot of code, but really it's not. On the top are just some parameters: lengths of arrows, their ...
user avatar
4 votes
1 answer
102 views

How to get to ComponentMeasurements[] from orthographic projection of a Graphics3D[] object?

Let's say I have some composite 3D graphics of various shapes. For simplicity, let's say these are just two capsules, like below: ...
user avatar
  • 1,563
0 votes
0 answers
47 views

Fullscreen "real-time" animation without margins

Suppose you have a function mapping a discrete input, e.g., ranging from 1 to $n$, to an image. Each image resulting from a sequence of such inputs should be displayed in fullscreen one after the ...
user avatar
4 votes
2 answers
165 views

How to calculate different combinations of back and dotted perimeter

I have this code that generates the image below, my question is how to calculate the area and perimeter of the first figure and all the variations of it considering a side of square "L" or ...
user avatar
  • 43
0 votes
0 answers
46 views

Save and view multiple Manipulates in one file

Following a suggestion under this question, I tried to use several Manipulates to record groups of many plots. This is to avoid the painful delay and freezing of ...
user avatar
  • 4,226
7 votes
3 answers
221 views

How can I smooth a CapsuleShape[] visualization?

Simple question I can't figure out. Is it possible to smooth the edge faces of a capsule, or is this inherent to the mesh underlying the capsule? This is just for visualization purposes, I don't ...
user avatar
  • 1,563
9 votes
2 answers
383 views

How can I rotate and reflect a molecule plot?

Consider: MoleculePlot[Molecule[Entity["Chemical", "Theobromine"]]] How can I rotate and reflect it? This is my current method: ...
user avatar
  • 24.5k
1 vote
0 answers
94 views

High performance fullscreen visualization of image sequence

What is the fastest way you can come up with to display an image sequence in fullscreen where each image in the sequence must be shown? Here is my attempt. Let's create a 1920x1080 image as this is a ...
user avatar
7 votes
1 answer
189 views

Weird PDF (also EPS and SVG) exported graphics

I'm producing a graphic (sorry for not posting the code but it's quite disordered (see edit below)) and would like to export it as a vector image. For some reason the PDF (below left) does not look ...
user avatar
6 votes
1 answer
160 views

Convert interpolating function to a Bezier curve

I've been wondering, is there a way to convert an interpolation into a sequence of BezierCurve objects that form each step in the interpolation? There is an easy ...
user avatar
  • 220k
10 votes
1 answer
191 views

VectorColorFunction not working at a few points

I use the following data to ListVectorPlot a vector field with the color indicating the vector direction. However, there seem to be some vectors not colored ...
user avatar
  • 4,226
2 votes
3 answers
421 views

How to get a white circle with a black border using "Graphics"?

I want a white filling inside the black dot Graphics[{Black, FillingStyle -> White, PointSize[0.035], Point[{1, 2}]}]
user avatar
0 votes
0 answers
38 views

VectorPlot doesn't show PlotLegend when I change VectorColorFunction to measure vector components

Using the example given in Mathematica's own reference page (https://reference.wolfram.com/language/ref/VectorColorFunction.html) we can make VectorPlot colour the arrows by, e.g., horizontal ...
user avatar
5 votes
2 answers
210 views

How can we Rasterize only plots profile without frame or labels?

Exporting very dense DensityPlot or Plot3D figures as vectors (pdf, eps) become very huge in size. for example, exporting this ...
user avatar
7 votes
2 answers
456 views

2D Polygon in 3D

What is the easiest way to implement a polygon in a Graphics3D? I want to take a regular polygon, the hexagon for example, and be able to easily rotate it in 3D, as ...
user avatar
  • 4,358
0 votes
1 answer
40 views

Strings to textbox to graphics to ImageCollage

I have a set of 42 open comments which will increase in the near future. They all have quite a different length, form 25 to 1294 characters atm, 300 in the mean. I used a weird combination of (minimal ...
user avatar
0 votes
0 answers
29 views

DiscretePlot with a List as argument [duplicate]

Suppose I have some multidimensional function that is computationally very expensive to evaluate. Here, I will just use ...
user avatar
  • 101
1 vote
1 answer
35 views

Additional lines in the plotting graph

I tried to plot the following ...
user avatar
2 votes
1 answer
123 views

How can I remove plot markers at some desired points?

How can I remove plot markers at some data points? For example, I want to remove one plot marker at the circled point leaving only one marker there. I tried deleting the data points but this would ...
user avatar
  • 2,392
0 votes
0 answers
46 views

How to mix two styles with some lines with filled and non-filled markers?

How can I mix styles with some lines with filled and non-filled markers? The post here mentioned all cases but I couldn't combine them into one plot. ...
user avatar
  • 2,392
0 votes
1 answer
42 views

How to use Callout for joined points line

I want to use Callout to make a label of my joining point, instead of using PlotLabels like this ...
user avatar
-1 votes
1 answer
67 views

Visualize data with a Shapefile

I am trying to visualize data of a dataset on a shapefile in Mathematica, but cannot find an understandable example. Let's assume I have a normal Shapefile with one Field "District No." ...
user avatar
  • 129
0 votes
0 answers
83 views

Is there any way to magnify the figures in the "Show" command?

I am trying to magnify a small part in the following Mathematica figure. What should I write in the 'show' environment to magnify the specific part of the figure? ...
user avatar
  • 1
7 votes
4 answers
323 views

Finding "middle curve" inside region

I have some simply connected region, as shown below. ...
user avatar
0 votes
0 answers
40 views

What is wrong with FrameTicks in this small code?

I'm having a problem with FrameTicks not working with this MWE: ...
user avatar
  • 3,645
2 votes
1 answer
131 views

Figure weirdly damaged after Exporting

I use the following code to generate and export a simple combined figure with an epilog of the long horizontal arrow. ...
user avatar
  • 4,226
2 votes
2 answers
203 views

Restores a difficult digraph

I want to reconstruct this picture,like this: I have do some work,this is my code ...
user avatar
3 votes
2 answers
174 views

Remove the white space bounding a 3D plot

The following simple 3D plot always bears a rather wide empty space surrounding the sphere. I only need the sphere and vectors without box or axes. How to remove/control the empty space? A few padding ...
user avatar
  • 4,226
7 votes
3 answers
403 views

STL generation for Ball-in-a-maze puzzle

As a minimal example, consider: ...
user avatar
  • 16.3k
3 votes
1 answer
132 views

Plot planes of 3D vectors without severe scale distortion

I need to visualize a few planes/slices of a 3D vector field. The first plot with only one slice is fine. Now I want to plot three slices of vectors together. And I need to separate the three planes ...
user avatar
  • 4,226
0 votes
1 answer
111 views

Calligraphic Pen Signature, Part II

Continuing toward my goal pf getting a calligraphic signature pane pursuant to this answer (https://mathematica.stackexchange.com/a/13376/43662). I have produced the code below. The user writes using ...
user avatar
  • 1,625
3 votes
1 answer
46 views

How to enable TouchPosition[ ... , 2]?

It appears that the mechanics of the Front End prevent TouchPosition from working as expected. My plan is to keep track of the position of the second touch using <...
user avatar
  • 1,625
3 votes
0 answers
53 views

Mathematica failing to export consistent layout

Mathematica is a great tool but when it comes to layout generation is quite poorly intuitive: I would love that exporting to images and SVGs could be more friendly and compliant with graphic design ...
user avatar
3 votes
2 answers
359 views

Finding the length of a line constructed by coordinates

I have a list of coordinates, for example: ...
user avatar
  • 245
0 votes
0 answers
48 views

Merge plots and imported images

I am trying to plot some things using Mathematica. I haven't used Mathematica for plotting before , so apologies if my question is basic. I have the following image, which is my target image: I also ...
user avatar
5 votes
1 answer
229 views

Calligraphic Pen Signature Pane

This exchange about writing the infinity symbol using a calligraphic pen nib (https://mathematica.stackexchange.com/a/13376/43662) gave me an idea that is a bit steep for me to implement. The idea is ...
user avatar
  • 1,625
3 votes
1 answer
107 views

Disable editing for graphics

I am creating an interactive graphics that plots points on the canvas, and allows the user to move around the points: ...
user avatar
  • 319
0 votes
1 answer
61 views

How to use RadialGradientFilling in Mathematica 11.1

I'm trying to create a disk with a radial gradient. I found the built in function "RadialGradientFilling" which should do the trick but, alas, I am using an older version of Mathematica ...
user avatar

1
2 3 4 5
87