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

2
votes
2answers
108 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
151 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
110 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
35 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
68 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
89 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. ...
5
votes
1answer
144 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
0answers
139 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
45 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
73 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
89 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
124 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 ...
4
votes
2answers
199 views

Plotting a complicated 3D wave on the surface of a sphere [duplicate]

Suppose you have a vectorial wave described by a complicated function of time and cartesian coordinates $t$, $x$, $y$ $z$ (very simple example below) : ...
4
votes
2answers
98 views

Labeling backplanes in a 3D plot using “enclosed numbers” (i.e. ①, ② …)

When we use ListPlot3D or Plot3D in Mathematica, a box is generated to contain the plot, as shown below. In the drawings below, ...
2
votes
1answer
70 views

Cannot combine GeoPosition polygons in version 10.4

I was using with Mathematica 10 for plotting different kinds of maps the function PolygonCombine. It seems that this fucntion has disappeared with the version 10.4? Here is a classical example for the ...
50
votes
4answers
5k views

Is it possible to draw this figure using Mathematica?

The figure is See the how-to video or a speeded-up GIF. I believe it should be possible to draw this figure programmatically using some Random function, but I'm ...
2
votes
3answers
81 views

How to get a C4-symmetric (coincides after 90° rotation) matrix via `ImageData` from `Graphics`?

I tried an easy example with Disk centered at {0,0} with radius 1. Obviously, that object is C4-symmetric. Further, ...
-2
votes
3answers
108 views

Constructing an Equilateral Triangle Inscribed Inside a Circle

How to plot something like this? I need only the triangle and the 3 circles green. Thank you!
2
votes
1answer
82 views

How to use BezierCurve or BSplineCurve to define a quarter of a circle?

I know the command Circle can do that too, however, I want to be more flexible later on and want to know how to define this with the above mentioned functions. ...
1
vote
2answers
41 views

How do I Define a Module Which Displays Some Graphics and Returns Some Data?

I want to bundle some actions of a task in a module to call it a few times. The task shall display some Graphics and it shall return some data (as a list). But I can't do that (it would have been ...
-3
votes
1answer
78 views

How to implement Bifurcation of delayed Lorenz system? [closed]

The delayed Lorenz system is as follows: (Bifurcation parameter as $\tau$) $$\begin{align*} D^\alpha x_1(t) = & a_1(x_2(t-\tau)-x_1(t)) \\ D^\alpha x_2(t) = & a_2x_1(t)-x_2(t)-x_1(t)x_3(t) ...
0
votes
1answer
27 views

Bad output for SwatchLegend using LegendMarker with an EdgeForm

Consider the following input which should give a legend with a red rectangle and a black frame: ...
3
votes
2answers
130 views

Connecting the points surrounding the adjacent polygons

I'm trying to connect the points surrounding the adjacent polygons. I know how to find the adjacent polygons on a Voronoi mesh. However, I'm unable to adjacent of the adjacent polygons. What I'm ...
5
votes
1answer
93 views

How to export a 3D circle as a single piece PDF vectorial object?

I need to export a circle drawn in 3D with a specific point of view to a PDF file. This is easy to do. However, the exported circle is made of tons of non-connected small bits. I need the whole ...
0
votes
3answers
37 views

A shift of a trapezoid and a connect to the original

I have: Graphics[{ Line[{{0, 0}, {30, 0}, {55, 50}, {-25, 50}, {0, 0}}] }] Now, I'd like to keep it in place, then shift a copy up and to the right, then ...
9
votes
2answers
254 views

How to define variable “Rainbow” curve colors?

Firstly, I'm not asking about blending a color gradient on a curve. I would like to make the curve color uniform on all its lenght instead, but the color should change dynamically while we slide a ...
1
vote
1answer
72 views

Color of figure keeps changing

I'm not sure this should be posted here, but I don't know where else to ask this question. Please feel free to refer to another more relevant SE if necessary. I plotted a figure with Mathematica, and ...
28
votes
2answers
412 views

General techniques for creating complex animations

I love good animations of abstract concepts, and when I try to create them myself, I prefer doing so in code to make sure they are exact (and because some things are just way too fiddly to do by ...
1
vote
3answers
169 views

How to apply a color gradient to a Rectangle primitive? [duplicate]

How can we apply a color gradient (say "Rainbow") to a Rectangle primitive ? Of course, I searched the documentation : http://reference.wolfram.com/language/ref/Rectangle.html, and also the site : ...
0
votes
1answer
95 views

Step plot with log-log scale

Anyone know how to impose a log scale on both the $x$ and $y$ axes after using ListStepPlot? There's nothing special about the data set I've used, just a list of ...
0
votes
0answers
19 views

How to remove extra space around polar plot in manipulate? [duplicate]

In Manipulate, PolarPlot adds lots of useless space around the exterior circular grid. Is there a way to remove that space, so the whole circular plot could take more space ? Here's a MWE showing ...
4
votes
2answers
197 views

How can I visualize a map $f:T^2\to T^2$?

Let $T^2\cong S^1\times S^1$ be the one-holed torus surface (say, embedded in $\mathbb{R}^3$) and say I have a simple-ish map $f:T^2\to T^2$ which I'd like to visualize. How might I do that? To make ...
0
votes
2answers
75 views

Ticks on axes with a frame without frameticks [duplicate]

I would like to draw a simple 2D graphics with a frame, without any FrameTicks, but still having central axes with ticks. The code is this : ...
2
votes
1answer
89 views

How to draw a density (list) polar plot?

I have the function $P_{ns}$ which gives me the amplitude of a signal. The angles $\theta_B$ and $\phi_B$ are known. (25 and 180 for example) ...
2
votes
0answers
51 views

Buttons in graphics

I've created a workflow using Drawing Tools. It consists of Images, lines, and in some places I have cut and pasted Button objects. These buttons work fine if you paste directly into the Graphic ...
6
votes
0answers
208 views

Mathematica 10.4 crashes when using too many font sizes

While working on How to make the digits of π around like this? I encountered a problem that Mathematica would crash at regular intervals with an internal self-test error, either ...
44
votes
4answers
5k views

How to make the digits of π go around in a spiral like this?

Here is a start. MapIndexed[Text[Reverse[First[RealDigits[Pi,10,252]]][[Tr@#2]],#]&, Table[{t Cos[t],t Sin[t]},{t,0,16Pi,0.2}]]//Graphics
5
votes
3answers
75 views

Graphics option to suppress lines between adjoining polygons

In 10.3.1 there was a Graphics option -- it might be a sub-option of Method -- which erases the thin line visible at the join ...
1
vote
0answers
52 views

Discrete color bar: height not adjusting

I am trying to adjust height of my color bar, but LegendMarkerSize is not doing what it is supposed to do. Code ...
1
vote
1answer
53 views

Building function where the output is graphic [closed]

I want to build a function, where the inputs are points and voronoimesh, and points. But, the output would be a graphics parameter. the code is following: ...
1
vote
1answer
53 views

Multiple Sphere from imported data

i have the centers, radius, and xyz coordinates of say 200 sphere that i'd like to plot in a box. I know how to do one sphere using this information and Graphics3D ...
3
votes
1answer
66 views

How to let Graphics3D show texts only within the plot range?

OS: Windows Server 2012 R2 MMA Version: 10.3.0.0 ...
3
votes
2answers
43 views

Trouble aligning Graphics with Image

I import the test image eloquently named "Tank2": img = ExampleData[{"TestImage", "Tank2"}] And do an extremly poor corner detection: ...
1
vote
1answer
55 views

Labeling Points on a Plot

I have the following discrete map: \begin{equation} x_{n+1}=μ-x^4 \end{equation} for which I have used manipulate to see the way the system evolves depending on the real parameter $μ$: ...
2
votes
1answer
64 views

Is it possible to manipulate multiple graphs with one manipulate function? [closed]

I'm trying to find a way to manipulate a function and its derivative, but two variables of the function change. Is there a way to manipulate multiple graphs with the same set of parameters? Meaning, ...
-1
votes
1answer
70 views

How to change the 3D Mesh resolution?

I need to fix the resolution of the mesh lines drawn on some surfaces, and currently I don't know how. Here's a MWE to work with (a simple sphere) : ...
0
votes
1answer
62 views

NDSolve Surface Plot to Compare Initial Values

I am trying to solve a system of differential equations which model reaction kinetics using NDSolve. I would like to generate a surface-plot of the function value as a function of time and the initial ...