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

learn more… | top users | synonyms

6
votes
3answers
445 views

Partition a disk into regions based on points on a circle

I am plotting the roots of a polynomial on the unite circle this way ...
3
votes
1answer
49 views

Change of parameters on ouput graph

I have generated the graph, but i lost the settings, i would like to make the Plotmarkers slightly bigger. Is there anything to do this without redoing the computation? Like ...
1
vote
1answer
222 views

Make a fractal-like dot animation

How to make an animation of following fractal-like gif by using Mathematica?
1
vote
0answers
41 views

Periodic boundary condition trick

I'm plotting a curve on a compact space which is having periodic boundaries on the left and right parts. Currently, the code I'm using is working great, but I'm wondering if there's a simpler and ...
1
vote
1answer
85 views

Drawing spheres with texts on top of each other without overlapping [closed]

I want to use Graphics3D to draw a sphere with a text on it. Then, I'd like to draw another sphere (with a different text on it) on top of the first one. This is the code I'm using ...
3
votes
1answer
137 views

How to guarantee the point's position is fixed in the Graphics and Image

SeedRandom[8] plot = ParametricPlot[ Evaluate@BezierFunction[temPoint = RandomReal[{-50, 50}, {5, 2}]][ t], {t, 0, 1}, AxesOrigin -> {0, 0}] We can ...
2
votes
1answer
50 views

Small glitch with EdgeForm and PlotRange

I'm experiencing a small problem with the edges of a square, if the PlotRange has the same size as the square : ...
2
votes
2answers
85 views

How to make a graphics with a point of intersection

This is current method can do this ...
1
vote
2answers
106 views

How can I plot two concentric circles with a polygon inscribed in one and circumscribed about the other

So I am new to Mathematica still learning basic codes.. However I need help to become quicker in my research. Can anyone help me with the simplicit code to plot 2 concentric circles and a polygon of ...
3
votes
2answers
116 views

Density Plot: Colour Corresponding to Different Parts of a Function

I am trying to create a DensityPlot of a symmetric function f(r)=f(x,y) that is composed of 2 other functions: f(r)= g(r) + h(r) f(x,y)=g(x,y)+h(x,y). I can plot f(x,y) fine (can always convert ...
3
votes
2answers
68 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
0
votes
0answers
49 views

Intel Graphics Driver Crash and Recovery messages with 3D graphics?

Ever since i updated to Mathematica 10.4 from 10.2, I have been occasionally experiencing a graphics crash error message and 3D images/graphics that used to appear normally just turn black upon ...
0
votes
1answer
79 views

Visualize a pretzel using a closed cubic B-spline and Tube [closed]

I want to visualize a 3D nonplanar pretzel using a closed cubic B-spline displayed with Tube. I'm just absolutely lost on the whole thing. The closest pretzel ...
3
votes
1answer
64 views

Exporting sharp corners in Bézier curves to pdf

I'm a bit baffled by this. I have a number of arrows in a series of diagrams, and I'm defining the arrowheads using Bézier curves such as ...
3
votes
2answers
93 views

How to remove parts of a curve?

I have a curve that have some unwanted parts. How can I remove them ? Or how to constraint the curve to a specific region ? Here's a MWE that shows the problem : ...
3
votes
1answer
68 views

Frame labels without a frame?

Is there a way to add labels to a 2D plot, without the Frame ? Here's a MWE which shows a simple graph with four labels around its frame. I need to remove the frame, but keep the labels. Is that ...
3
votes
1answer
153 views

Drawing dynamical trajectories diagram in Mathematica

I've a Boolean gene regulation system composed of vectors(corresponding to cellular phenotypes). Their components are binary numbers such as $\{1,0,0,1\}$. A vector can change its statement in ...
1
vote
2answers
51 views

Colour bar for contour 2D graph [duplicate]

How could I plot the colour legend for my 2D contour graph ...
2
votes
3answers
112 views

Strong glitch with Evaluate in Manipulate

I'm experiencing a strong evaluation problem for a Manipulate box and I can't find the best solution yet. Here's a MWE to show the glitch : ...
23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
7
votes
3answers
210 views

Modular Visualization

I have this: ...
3
votes
1answer
168 views

How to set the Arrowheads style in a figure with broken vertical axes

I am trying to combine three separated curves into a same figure. The codes are inspired by another post and answers here. Codes: ...
5
votes
2answers
127 views

How can I create a graphic of a wedge of a cylinder (like a slice of pie)?

http://demonstrations.wolfram.com/HoleInACylinder/ This demonstration uses Graphics3D and is able to generate what I want, but I cant figure out how to separate ...
0
votes
1answer
32 views

NDSolve point animation not working [closed]

The below code plots the path of a ball bouncing but loses 90% of its velocity each time it bounces. (adapted from https://reference.wolfram.com/language/ref/WhenEvent.html). ...
0
votes
1answer
64 views

Dynamically update three graphics simultaneously

I have a problem. How can I get three arrows in to update simultaneously? All work, but one by one. ...
1
vote
2answers
98 views

Tabular designs from modular arithmetic operations

I managed to make a mod4 addition table. Grid[Table[Mod[i + j, 4], {i, 0, 3}, {j, 0, 3}]] What I'd like to do is draw a grid of 16 small blocks, 4 rows, 4 ...
5
votes
0answers
97 views

Generating G-code from Mathematica

Has anybody generated G-code (used for controlling milling machines and plotters and other hardware) in Mathematica? High quality inexpensive plotters have reached the market and I would like to drive ...
43
votes
2answers
3k views

How to make this beautiful animation

How to make an animation of following gif in Mathematica? Edit: The animation shown above was created by Charlie Deck in processing. And how to make 3D analog? I tried first few steps ...
20
votes
5answers
3k views

How to draw all paths from (1,1) to (n,n) by move (+1, 0) or (0, +1)?

Now I can draw some grid: But what I want(I'm sorry for the weird line. I have no image processing software in my mac...): Please notice: ...
4
votes
1answer
91 views

Small output glitch with Histogram

I'm experiencing a small formating glitch with an histogram. I want to define an histogram with a square frame, with precise vertical ticks from 0 to 10. But I'm still getting a larger range, and I ...
17
votes
3answers
482 views

How to compute the boundary of a group of ellipse efficiently?

Update1 I discovered that the bountary of a series of ellipses consists of the following three parts Part (I): the first ellipse's effective black-segment; Part (II): the effective ...
0
votes
1answer
92 views

Periodic boundary for 3D sphere packing

I have the $x,y,z$ coordinates and radius $r$, of $N$ spherical particles, packed in a box with size $L$. For some cases, $x \pm r$ and/or $y\pm r$ and/or $z\pm r$ go outside the box. I want to be ...
1
vote
1answer
100 views

Clock - label and arrows [closed]

I have 12 circles. How every single circle sign (from 1 to 12). I know only how to sign with my range {a, 0, 2 π - π/6, π/6}, but I need to have numbers 1-12. ...
3
votes
2answers
67 views

NumberLinePlot — scaling coincident points

it doesn't seem the native function NumberLinePlot is able to scale points to reflect coincident points. When an expression such as ...
6
votes
4answers
114 views

How to add/insert a well aligned graphics on top of another one?

I need to add a small graphics on top of a larger one, and the small graphics should stick very close to the large one, with their axis aligned. Here's a minimal code to work with, using some ...
3
votes
1answer
47 views

Use (network) graph as vertex

I have a Markov chain with graphs as the states. Basically how one network structure would evolve to another in the next period. To avoid confusion, I'll use the term "network" instead of "graph". I ...
2
votes
2answers
109 views

Generating periodic structure using RegionPlot3D

I am trying to create a periodic structure from a unit cell figure which I created using RegionPlot3D: ...
3
votes
2answers
156 views

How to plot coordinates with different colors on a map?

How can I plot different sets of coordinates with different colors? For example, the two maps below would be merged into one map, with two colors. I'm using the commands below to create the maps ...
1
vote
2answers
122 views

How to do a parametric histogram?

Is it possible to draw a spectral histogram from two random sets ? More specifically, I have these two random functions (fmin, ...
2
votes
0answers
37 views

vector graphics of a ListPlot3D

My problem is quite simple and yet I can't seem to find a solution to it. I'm trying to create a figure in vector format but if I export it to EPS I get a very bad gradient in the colors. If I export ...
23
votes
5answers
1k views

Rounding the Corners of a Shape

I was wondering whether there is an option in Mathematica that enables me to smooth the corners of a shape. The example I want to start with is the pentagon. This can be crudely specified as ...
0
votes
2answers
73 views

ListDensityPlot boundary is extrapolated

I have a solution of a finite element analysis and I have a list of data {{x,y,a}....} where x, y are the coordinates and a is the value to be plotted. The geometry is half of a tooth like this but ...
9
votes
0answers
95 views

ErrorListPlot ignores some exact data points

Possible bug? Or am I missing something / expecting too much? Forgive the seemingly obscure data points but they're where I've noticed a problem. ...
6
votes
1answer
151 views

How to interpolate colors on scattered points for a smooth visualization

I am a novice user, so please bear with me! I have a set of random points which are color-coded by some function. The point distribution is fairly dense so I should be able to see a smooth color ...
7
votes
1answer
170 views

How to define a custom 2/3D graphic primitive like built-in?

There are lots of basic graphic-pimitive in Mathematica, such as 2D- pimitive: Line[], Circle[], Disk[] and 3D-pimitive: ...
1
vote
1answer
49 views

Plot with Color Data as Third Coordinate of Ordered Pairs

Suppose I have a data set data={{0,0,-1},{0,1,-0.5},{1,1,0},{2,1,0.5},{2,2,1}}; where the first two coordinates are x and y values, and the third is input for ...
3
votes
1answer
75 views

Understanding FaceGrids

I'm having difficulties with FaceGrids. This should be pretty basic, but the documentation isn't helpfull with its fancy and mostly useless examples (again!) I ...
1
vote
2answers
83 views

A way to show all the 3D curve, with view still centered on {0, 0, 0}

I frequently have this graphics output problem : I draw a 3D curve using NDSolve, and depending on the initial data, there's no way I could predict the shape and ...
3
votes
3answers
91 views

How to change random values in manipulate?

I made a Manipulate box that is working very well, using lots of random numbers. I would like to add a button to "reset" (i.e. to change, randomize, or reselect) all the random parameters. Here's ...
1
vote
1answer
128 views

How to generate a graph from a tetrahedral lattice

My goal is to generate a graph from a 3D isotropic array of vertex connected tetrahedrons. Each tetrahedron represents a node of my graph, and connects to 4 other neighbors. Then my idea is to ...