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

0
votes
0answers
65 views

Problem in Plot at start [duplicate]

The derivative can be used to calculate roots. However the same function cannot be plotted.The error is at start point of domain: ...
0
votes
0answers
67 views

Empty Graph for Absolute Function

I wanted to plot the following equation: Plot[((x/7)^2 Sqrt[(Abs[Abs[x] - 3]/(Abs[x] - 3))] + (y/ 3)^2 Sqrt[(Abs[y + 3 Sqrt[33]/7])/(y + 3 Sqrt[33]/7)] - 1) (Abs[x/2] - ((3 ...
10
votes
4answers
285 views

Rotated Rectangles

I would like to produce an image similar to the upper half of this graphics by Victor Vasarely. All I could produce so far is this dilettante image: ...
1
vote
0answers
52 views
0
votes
3answers
71 views

Showing the coordinates on a plot in TraditionalForm

I just want to show the coordinates (Log[y/x],Log[x/y]) of a point on a Graphics object, but TraditionalForm fails to convert ...
0
votes
1answer
88 views

Use separate options for different elements in Show

I have a few plots of different type. plot1 has gridlines and the rest do not. I use the option Method -> {"GridLinesInFront" -> True}] when plotting plot1. When I use Show to combine the plots the ...
9
votes
3answers
441 views

How to visualize the interior of a complicated 3d plot

I have an external data file (can be downloaded here: link 1 or link 2) which contains a dense grid of initial condition in the (x,y,z) space. I read it with Mathematica and plot these initial ...
13
votes
2answers
487 views

Phase portrait on a cylinder

It is very nice and very easy to make a sketch of a phase portrait with StreamPlot. For example, for the classical pendulum, defined by $$ \dot x=y,\\ \dot y=-\sin x, $$ The code ...
9
votes
1answer
913 views

Drawing a graph with specified edge lengths

I was wondering if it was possible to ask Mathematica to draw a graph provided some set of vertices: $(v_1, ..., v_N) \in V$ connected by $M$ edges $(e_1, ..., e_M) \in E$, where the length of each ...
2
votes
2answers
66 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
11
votes
2answers
173 views
10
votes
3answers
301 views

Generating hatched filling using Region functionality

Before v.10 came out there were several Q&A on generating hatched filling for Plot, ListPlot etc. In v.10 we have new ...
3
votes
1answer
202 views

Intersection of many planes

I'm working with a family of planes, given by $2a_1 x_1 +2 a_2 x_2 - x_3 +a_1^2+a_2^2=0$. I would like to use mathematica to plot these planes for many values of a and b, say a range of $-10\leq ...
5
votes
1answer
223 views

How can we get this infinite prism lattice to look more like `PolyhedronData[{“Prism”, 3}]`?

This is D$_3$h prism with order 12 (8 currently, needs 4 more edges) and rotational symmetry D$_3$ with order 6. A d=11 version is shown here. Using this code: ...
8
votes
1answer
165 views

Vertex merging in graph?

Given a Graph such as the one produced with the following code ...
2
votes
3answers
103 views
5
votes
2answers
201 views

Draw a partial line in Animate

I have a list of points that my line must go through, all at varying distances from one another. I'd like to draw just a piece of this line in an Animate, where the various segments are traversed at ...
9
votes
2answers
340 views

Artefacts in 3d plots

I am trying to plot a simple function ...
0
votes
0answers
43 views

Change in direction when a line hits an ellipse?

I'm trying to simulate reflecting light off an elliptical mirror. I currently store the ellipse in the form {center,{radii},rotationAngle} and the ray of light is ...
4
votes
1answer
315 views

Automatically wrap abritrary-length text in graphics

Question: How to insert Styled text of unknown style and length into a graphics and have it wrap at a Scaled width? Attempt: I ...
21
votes
2answers
669 views

Movable text on a curve

Having an arbitrary curve defined as InterpolatingFunction, what is the best way to place a text on this curve? The text generally has two rows, for example: ...
5
votes
2answers
128 views

ListPlot inserts extra PlotMarkers and Mesh at crossing points

In the example below, ListPlot with PlotMarkers -> Automatic and a variant using ...
19
votes
2answers
1k views

Drawing pairs (planar graph, circle packing)

Circle packing theorem states: For every connected simple planar graph G there is a circle packing in the plane whose intersection graph is (isomorphic to) G. How to use Mathematica to draw examples ...
2
votes
1answer
96 views

Mean curvature of Sphere

I am trying to calculate mean curvature of a parametric surface(like sphere), and I wrote this code based on this discussion. Here is my code: ...
1
vote
1answer
181 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
30
votes
4answers
699 views

How to make a stereogram in Mathematica?

Given a background and a pattern jpg files, is there a quick and easy way to produce a stereogram by using Mathematica? The following picture was produced from Photoshop, spent about half an hour. ...
48
votes
3answers
21k views

How to create a new “person curve”?

Wolfram|Alpha has a whole collection¹ of parametric curves that create images of famous people. To see them, enter WolframAlpha["person curve"] into a Mathematica ...
67
votes
6answers
6k views

Generating visually pleasing circle packs

EDIT: (my conclusion and thank you note) I want to thank you all guys for this unexpected intellectual and artistic journey. Hope you had fun and enjoyed it the same as I did. I would like to ...
0
votes
1answer
72 views
0
votes
0answers
43 views

Plot is not accurate [duplicate]

I defined a matrix and use it to transform a square defined by four points. (In[85]) It seems the transformation keeps the length of the square. (In[91]) Now I plot the original square, the axis of ...
6
votes
1answer
293 views

Connect neighbouring points as list of segments in 2 D

Context I am interested in connecting neighboring points in 2/3D as list of segments. I am guessing this is something within the reach of graph theory, which is well implemented in mathematica. ...
1
vote
0answers
28 views

Visualise sets giving some relations on those sets

I'm not very experienced with wolfram, but I'm searching for a function that can basicly do the following. Giving some sets $A,B,C$ and some relations for example $B \subset A$,$C\subset B$. I would ...
1
vote
0answers
35 views

How i can extract a single layer from a SHP file? [closed]

I just import a SHP file that have a series of layers, how can i get just one if i know the name of it?
0
votes
0answers
35 views

How to plot morphological stripe near the mouse-clicked position in an image? [duplicate]

I tried to use EdgeDetect and MorphologicalComponents to get the image edge elements. When I clicked on an image, I want the edge element nearby to be highlighted or plotted. Here is my code. Two ...
1
vote
1answer
57 views

How to plot graphs with vertices positioned as spread as possible? [closed]

The following code, outputs the graph below: graphList = {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {3, 6}, {4, 7}} Graph[UndirectedEdge @@@ graphList] Is there some way ...
10
votes
6answers
487 views

a table of rectangles

I have code to generate this image: But my code is awkward and clunky: ...
1
vote
2answers
68 views

Using expressions in Text

I want to use Text to add some labels to a graph and was wondering if it is possible to use expressions inside Text? Here is a MWE of what I am trying. ...
2
votes
1answer
150 views

How to highlight image edge with spline/bezier when mouse moved over?

It is known that EdgeDetect can find image edges in an image. Suppose the image edges consists of sets of lines. Can the detected edge line near the mouse pointer be highlighted as spline/bezier when ...
13
votes
5answers
3k views

How to draw a great circle on a sphere?

I apologize for the text description, but new users are not allowed to post images. I want to draw a circle that cuts through the center of a sphere and has an inclination of 15 degrees with the ...
8
votes
2answers
185 views

Graphics3D not rendering Ball as a filled object

Bug introduced in 10.0.0 Mathematica V10 introduced the built-in function Ball. The documentation page, Ball, says ...
2
votes
1answer
126 views

2D Fourier transform of a few (4) disjoint discs on a plane

I'd really appreciate some advice. Short Version I'm trying to calculate the following $$ ...
0
votes
2answers
70 views

Getting FerrersDiagram to work

I am trying to generate FerrersDiagram (see http://reference.wolfram.com/language/Combinatorica/ref/FerrersDiagram.html), any clues to getting it to work? I get error message for the following: ...
14
votes
4answers
346 views

Prevent graphics render inside held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
4
votes
2answers
252 views

How can I create a plot like this in mathematica?

I think this is called a caterpillar plot. The dot is the mean and the lines represent a 95% confidence interval. On the x axis there are several different test cycles, the red line is the true ...
3
votes
2answers
163 views

Exporting an overlay of two plots

I have a ListLinePlot and I'm trying to place a close-up of a specific range in the ListLinePlot. Using overlay I solved this problem with: ...
5
votes
1answer
153 views

Measuring the area of different regions from a picture

Consider the following picture of a phase plane which help us distinguish between regular and chaotic motion. The entire phase plane is divided into two types of regions: (i) the regular domain ...
9
votes
4answers
273 views

How can I generate and randomly assign color to annular sectors?

How can I generate such an image and fill every annular sector with a random colour?
0
votes
1answer
54 views
1
vote
0answers
66 views

Have I found a bug in the built-in function BezierCurve? [closed]

A week ago, I asked a question about bezier curve ubpdqn's solution: ...
33
votes
7answers
6k views

How can I draw the Olympic rings with Mathematica?

How can I draw the 5 interlocking Olympic rings with Mathematica? (SVG version) Edit Hard choice, but some pretty cool answers here. I didn't have 3D answers in mind when I posted the question ...