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

3
votes
2answers
111 views

Matrix Plot: How to Apply color function to only a region of the plot

I want to make a matrix plot where a color function is applied to a region of a matrix. Those matrix elements which were not in the region specified should not have any color associated with them, and ...
12
votes
1answer
231 views

Unwanted PlotMarkers appear at non-existent places

Bug introduced in 7.0 or earlier and persisting through 10.1.0 or later In this simple code ...
14
votes
5answers
424 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?
16
votes
3answers
753 views

2D Visualization of links and knots

I am trying to draw a picture using Mathematica of three loops linking together in 3D as follows. ...
1
vote
1answer
63 views

How do I display graphics in the Wolfram Language kernel? [duplicate]

I'm unable to view graphics output when working directly with the kernel from a terminal window. How do I display graphics when working that way?
12
votes
2answers
302 views

Interpolation on a regular square grid spanning a triangular domain

Context I am trying to identify contours of a function which is sampled on a cartesian grid within an irregular (triangular) region. Here is the data ...
0
votes
1answer
58 views

Draw a number of rectangles from list of coordinates [closed]

I'm new to Mathematica and this is also my first post here. Now for the question: I try to let Mathematica draw a number of rectangles from lists of coordinates. Unfortunately it only works when I ...
2
votes
1answer
51 views

Contours aren't aligned with frame ticks in ContourPlot

Because of the problem described in BarLegend can't make spaced contours when contours number>11, I decided to brew my homemade spaced-contours-barlegend. After some trials I get something like ...
0
votes
0answers
21 views

Export an Interactive diagram in CDF format

I am trying to create a CDF File I can play at school to present an optimization problem. In order to make it clearer for my students, I imported a few images as JPG, stored them as variables and used ...
13
votes
5answers
704 views

Animate point going around a triangle

How can I animate a point moving on a triangle's sides? I can generate a triangle and point, but I have no idea how to define point movement. I'm guessing that I have to use $\sin$ and $\cos$ in ...
32
votes
6answers
2k views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can accept the ...
13
votes
1answer
416 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...
13
votes
6answers
2k views

Find intersection of pairs of straight lines

I have a list of 24 points, in which two consecutive points (1st and 2nd, 3rd and 4th, …) are supposed to form a line: ...
4
votes
4answers
321 views

How can I draw a square root spiral? [duplicate]

I found this picture on the net. How can I reproduce it in Mathematica?
5
votes
3answers
915 views

Plotting a 2D shape along a 3D parametric function curve

Say I have a 3D curve that is parametrically defined. How would I be able to plot shapes like figure 8s whose centers are aligned along the 3D curve? Say the curve was: ...
20
votes
4answers
2k views

Drawing a square root spiral

Here is a start, i'm looking for a nice way. ...
1
vote
0answers
74 views

Demonstration of an arbitrarily oriented and translated ellipsoid

(Edited and modified) After the advice I received I modify the post. I have created the following code for depicting an arbitrarily rotated and translated ellipsoid, along its ellipsoidal axes and ...
-1
votes
3answers
110 views

Cartesian equation of star shape

I need Cartesian equation of the following star shape. As i want to use its Cartesian equation for Plot3D.
16
votes
4answers
626 views

How: 2D scatterplots with quantitative density-dependent coloring

Consider the following scatterplot of a 50K-point dataset: ...
2
votes
1answer
80 views

How to change the atom size of LatticeData

Using the "Image" property of LatticeData, I can generate representation of lattice structures (like the first basic example ...
4
votes
1answer
45 views

Why does TreePlot ignore the vertex labels in a TreeGraph argument?

Example (watch the vertex labels): aTree = TreeGraph[{"a" -> "b", "a" -> "c"}, VertexLabels -> "Name"] ...
1
vote
1answer
155 views

Export Graphics using Move in Optica

I am modeling an eye and am using TurboPlot and DrawSystem. I would like to export the graph, but using the ...
1
vote
0answers
61 views

How to make Poisson voronoi diagram [migrated]

I am facing a problem as follows : I want to make poisson voronoi diagram & for this I have to appropriately choose some generating points. Sources on internet(WIKI) refers that these points have ...
1
vote
1answer
100 views

Changing the width of BarLegend with Contour argument

Bug exists in 10.0.2 Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, ...
1
vote
1answer
68 views

Manipulate of Region Plot

I try to illustrate a generation of an amoeba to a tropical curve, namely. ...
0
votes
0answers
4 views

How to re-create this shadow/gas/volumetric particle flow effect [migrated]

Any ideas on where I can begin reading literature into this or do it practically with openGL or Unity 5? https://vine.co/v/MVnwEOh2J6a Thanks for the help
2
votes
1answer
40 views

Use Version 7 Print Environment Settings in Version 10

The following code produces very different PDF outputs in versions 7 and 10. Is there some way to make Mathematic 10 produce the same print output as Mathematica 7? ...
6
votes
1answer
329 views

Constructing primitive cell using information from ChemicalData

I would like to construct a primitive cell (figure shown) and possibly the two-dimensional layout (figure from here) using the following input. Any clues as to how this can be done? ...
1
vote
0answers
42 views

BarLegend can't make spaced contours when contours number>11

According to Document of BarLegend,BarLegend will select equally spaced contours: BarLegend[cf,contours] generates a legend that identifies color ranges from the color function cf based on the ...
2
votes
3answers
128 views

Defining a 2-variable function over voronoi diagram

I am new to Mathematica & I am facing a problem as follows: I have created a Voronoi diagram and now I want to assign to each region, a value, i.e., I want to extend this Voronoi diagram to form a ...
13
votes
2answers
680 views

How can I create a fountain effect?

Inspired by this (please use Chrome or Firefox), I tried to simulate it, but I couldn't do it. I'm not familiar with Dynamic. Here is my simple code: ...
4
votes
1answer
52 views

How to feed parameters obtained from direct 3D manipulation back into Manipulate's controls?

Here's a simple example of using Manipulate to interactively change the viewer's point-of-view for a 3D graphics object: ...
0
votes
0answers
80 views

Are there examples that arrange graphs or plots with Mathematica?

If we have 4 graphs or output plots, could we arrange them and merge in one graph elegently?
0
votes
0answers
24 views

How to change the texture of the graphical objects? [duplicate]

I would like to make a number of 2D figures with Graphics[] command, e.g. Disk[], Rectangle[] etc. It is easy to change the colour and opacity, but I would like to have the internal area shaded with ...
10
votes
1answer
327 views

How can I set id attribute of elements when I export an SVG file?

Suppose I have a Mathematica graphic such as g = Graphics[{Disk[{-1, 0}, 1/2], Rectangle[]}] I would like to be able to export this graphic from Mathematica ...
1
vote
1answer
53 views

Changing point size in Show

Suppose that a is a line plot produced with Plot, and b and ...
24
votes
5answers
660 views

How to examine the structure of Graphics objects

One difficulty I'm encountering in studying the structure of Graphics objects is that I have not yet found a way to print or display such structures that are ...
0
votes
0answers
19 views

Find intersection between 2 lines [duplicate]

I have 4 points in 2D, this points form 2 lines, I want to find out if this 2 lines intersect and if they do the x and y coordinates of the intersection. Which are the ideal equations/algorithms for ...
14
votes
0answers
213 views

Is FullGraphics an abandoned function? Is there an alternative?

FullGraphics hasn't worked entirely for a long time and the situation appears to be getting worse instead of better. In Mathematica 10.0 and 10.1 a simple usage ...
13
votes
1answer
621 views

Map of Specific US States? (Isolated)

My question here is fairly basic, and I'm sure I'm overlooking something basic. I know about CountryData for creating shapes of entire countries, and it works, to ...
1
vote
1answer
49 views

Error while rotating disk [closed]

Trying to rotate a disk, it gets trimmed: Graphics[Rotate[Disk[{0, 0}, {1, 1}, {0 Degree, 180 Degree}], 20 Degree]] I would be pleased if you could tell me ...
4
votes
1answer
60 views

Superimposing ListLineIntegralConvolutionPlot with transparent noise over ListContourPlot

I have an array of 128x256 data points in a rectilinear array. For each point there is a 2D vector quantity and a scalar quantity (normalised to -1 <= x <= 1). I very much like the ...
3
votes
1answer
82 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
3
votes
0answers
107 views

Graphics different between Mathematica 10.1 vs 9.0.1

When I create the following plot Graphics3D[{ Red, Arrowheads[0.05], Arrow[Tube[{{0, 0, 0}, {0, 0, 10}}, 0.2]] }] It looks like this in Mathematica 9 ...
6
votes
1answer
299 views

Why Plot3D does not accept Epilog option

I am trying to visualize 3D points with Plot3D using the option Epilog. If you check the options of Plot3D ( Options[Plot3D] ), it can be seen that Epilog is one of ...
9
votes
4answers
540 views

Mark an 2d-area on a 3dPlot (ListPlot3d)

I have a list {(IC,s,FK)}, which I use to generate a 3d-plot with the help of the command ListPlot3D. ...
17
votes
1answer
678 views

Dual complex integral over implicit path using contour plot

Context I am interested in doing double contour integral over paths which are defined implicitely. For the sake of debugging, let's assume its $$\oint_{\cal C}\oint_{\cal C} \frac{1}{u\, x} d u d x$$ ...
0
votes
1answer
72 views

Label points the right way in a ContourPlot

I need desperately your help. I have the following code. My problem is that there is an error (you see it in the picture) and I can't find. Then Mathematica gives me for the global Min two wrong ...
22
votes
5answers
1k views

Morphing Graphics, color and location

I would like to make a small animation : 1-We start with a random distribution of gray points : ...