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

5
votes
3answers
910 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: ...
19
votes
4answers
2k views

Drawing a square root spiral

Here is a start, i'm looking for a nice way. ...
1
vote
0answers
73 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 ...
23
votes
3answers
509 views

How can we make publication-quality PlotMarkers without version 10?

Suppose that for certain reasons we are not yet using Mathematica version 10, or we have a version with buggy PlotMarkers. It is well known that the default markers ...
-1
votes
3answers
105 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.
15
votes
4answers
620 views

How: 2D scatterplots with quantitative density-dependent coloring

Consider the following scatterplot of a 50K-point dataset: ...
2
votes
1answer
79 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
43 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
99 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
67 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
321 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
41 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
127 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
676 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
51 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
325 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
51 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
209 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
616 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
97 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
297 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
539 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
676 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
71 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 : ...
1
vote
0answers
36 views

How can I stop PlotRangePadding from cutting off points in a ListPlot?

When I perform a 2D plot and want to highlight specific spots in the plane, ListPlot seems like a good idea. However once I want to get rid of the padding, my points are getting cut off. This is ...
1
vote
0answers
131 views

How do I fit the parameters describing a 3D object so that it best resembles its projection seen by an observer at a particular position?

I have data which are the longitudes (l) and latitudes (b) for the vertices of the edges of a shape as it appears to an observer at a given location (i.e., as it appears on the observer's sky plane). ...
14
votes
2answers
172 views

Color Blend in BezierCurve

How can I color a BezierCurve from Red into Green just as ...
0
votes
0answers
40 views

Error in FullGraphics V10.1 [duplicate]

Error in FullGraphics. FullGraphics[Plot[Sin[x], {x, 0, 2 Pi}]] Any idea why? Thanks
3
votes
1answer
232 views

Filling using colors rendered corresponding to the difference between two curves

Suppose there are two curves f1[x] and f2[x], and we want to fill the area between them using colors corresponding to the vaule ...
8
votes
3answers
560 views

What is wrong with my expression for compiling?

Following code was translated from a snippet matlab code. Without compiling it worked slowly. I want to compile it, but am getting a numerical error. How do I compile this in a correct way? ...
0
votes
2answers
180 views

Performance Issue When Using Manipulate

Any help would be appreciated! I've been attempting to manipulate the graphics for time t. We need to have Di set to 11.2, however when it is set to any value greater than .1, we see a great deal of ...
17
votes
3answers
2k views

Mathematica color schemes for the colorblind

Does Mathematica have a graphics option that makes plots intelligible for people with colorblindness?
4
votes
1answer
107 views

Are there more pre-existing ColorFunction options?

Such as "DarkRainbow", "Rainbow", "BlueGreenYellow", and ...
14
votes
3answers
1k views

On coloring the faces of a surface differently with parameter-dependent colors

Old versions of Mathematica ($VersionNumber < 6) supported a particular syntax of ParametricPlot3D[] that allowed for ...
3
votes
4answers
94 views

Center Graphics elements relative to one another, rather than to the full figure

Suppose I wish to generate the following figure in Mathematica: My thought was to build it in parts. First, I make the plot: p = Plot[Sin[2 Pi x], {x, 0, 3}] ...
2
votes
1answer
65 views

How to hide and show graphics within Show[] function (in Manipulate wrapper)

There is a well documented way to "Dynamically Hide and Show Plots" (link). In the example 'Opacity' option is effectively used. Is there an efficient way to make the same functionality with "Show"? I ...
10
votes
1answer
221 views

How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...