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
0answers
41 views

Vertex manipulation/simplification in graph?

Given a Graph such as the one produced with the following code ...
21
votes
2answers
650 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
88 views

ListPlot inserts extra PlotMarkers and Mesh at crossing points

In the example below, ListPlot with PlotMarkers -> Automatic and a variant using ...
17
votes
2answers
989 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
77 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
150 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
29
votes
4answers
651 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. ...
47
votes
3answers
20k 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 ...
64
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
55 views

ParametricPlot3D/2D won't work and leaves a blank space

I've been trying to evaluate this line ...
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
265 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
26 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
32 views

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

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
34 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
40 views

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

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 ...
9
votes
6answers
470 views

a table of rectangles

I have code to generate this image: But my code is awkward and clunky: ...
16
votes
7answers
769 views

Around the Clock

I want to produce with Mathematica something like this Or this 12 hours should be arranged in a pleasing ("rotated") style around / within a rectangle. I don't ask for the hands - depending on ...
1
vote
2answers
64 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
121 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
2k 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
167 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
107 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
68 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
341 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
225 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
115 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
145 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
263 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
38 views

Why does my exported .GIF cut off the bottom of my animation?

I have the following (admittedly artificial) code: ...
1
vote
0answers
65 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: ...
32
votes
7answers
5k 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 ...
13
votes
1answer
352 views

Morphological Filtering in 3D to produce skeletons

Context As a follow up of this question and that answer, I would like to identify the special lines separating 3D watersheds. These are useful in the context of astronomy to identify the ...
6
votes
2answers
454 views

Generate Random Text within a Rectangle

I would like to generate images such as the four below. That is: some text of different length fit within a Rectangle[] using ...
12
votes
3answers
1k views

Create triangular mesh from random list of points

I have a list of points. I would like to take these points and create a mesh of triangles from them, making sure triangles don't overlap. So here's a list of points: ...
4
votes
1answer
73 views

Drawing disk with coordinates from NDSolve

I have simple Manipulation expression, but continuously getting error Coordinate {x[0.], y[0.]} should be a pair of numbers, or a Scaled or Offset form. I assume that something is wrong with ...
4
votes
2answers
83 views

Epilog with text not shown

I use the Epilog option in order to print in the vertical axes a label between 0 and 20 as follows ...
4
votes
2answers
109 views

Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
0
votes
0answers
68 views

Is it possible to have more than two vertical axis in Mathematica 2D plots? [duplicate]

Is it possible to have more than two vertical axis in Mathematica 2D plots? This is possible for example in matplotlib: http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html EDIT: the ...
4
votes
1answer
85 views

Getting the coordinates of GeoDisk[] and similar Mathematica 10 GeoObjects

I'm a big fan of the new Mathematica 10 geographic capabilities and functions such as GeoDisk[], GeoCircle[] and others. One limitation of these functions, however, is the transformation of the actual ...
6
votes
5answers
349 views

Calendar view outline

How to compute the outline of a calendar month like this D3 example. (D3 is a functional language built on JavaScript developed at Stanford and used by New York Times to deploy interactive ...
1
vote
1answer
81 views

Finding the Tangent to the Curve [duplicate]

I could use some help with this. This is my first time using mathematica and im trying to get use to the coding. Find an equation of the tangent to the curve and graph the curve and tangents. ...
92
votes
7answers
15k views

How to generate a random snowflake

'Tis the season... And it's about time I posed my first question on Mathematica Stack Exchange. So, here's an holiday quest for you Graphics (and P-Chem?) gurus. What is your best code for generating ...
16
votes
3answers
1k views

Creating diagrams for category theory

Lately I've been doing algebra and I have found myself drawing a bunch of diagrams when I attempt to solve a problem. Most of the diagrams are very simple so I thought, I bet I can do this in ...
11
votes
4answers
381 views

Using an Image as the Fill/Texture (not background) of a Plot (not polygon)

Is it possible to use an image, rather than a color, or ColorFunction, as the filling for a plot? For instance, I want to make a plot using ...
3
votes
2answers
260 views

Transfer graphics from Mathematica to Word without loss of quality

I want some high-quality 2D graphics produced by Mathematica in my paper. My step-by-step operation as follows: First I make the plot, for example, ...
2
votes
1answer
75 views

Mathematica exported movie quality

I am generating an animation using: anim = ListPlot[X] Export["anim.mov", anim, ImageResolution -> 800, Antialiasing -> True] The .mov file obtained this ...
29
votes
2answers
2k views

Mollweide maps in Mathematica

Context In my field of research, many people use the following package: healpix (for Hierarchical Equal Area isoLatitude Pixelization) which has been ported to a few different languages (F90, C,C++, ...
2
votes
1answer
105 views

How to correctly map values onto an arrayplot

I want to understand why the order of the text is reversed from what it should be? If I compare the first and second results, I see that the {1,1}, {2,2},... diagonal is going down the wrong diagonal. ...
8
votes
1answer
319 views

Caching of Graph Graphics

In this answer, Simon Woods concludes that when you display an expression with head graph more than once, something is getting stored somewhere. I looked into it too and found out this only happens if ...