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

4
votes
1answer
80 views

Is it possible to user-define the percentages for lower/upper whisper/fence in BoxWhiskerChart of MMA? [duplicate]

BoxWhiskerChart draws a box-and-whisker summary of the distribution of the input data. I would like to show the 2nd, 25th, 50th (the median), 75th, and 98th percentages of the input data. Is ...
0
votes
2answers
164 views

How can I make a 3D Plot with NDSolve?

I have a system of coupled ODEs which I am solving using Mathematica. I am solving these using NDSolve: ...
2
votes
1answer
69 views

How to check a clockwise direction for a list of point [closed]

Suppose that we have a list of points and we need to order them in clockwise direction by starting from a special point. I implemented this code to order them but I need to detect if it is ordered in ...
5
votes
2answers
245 views

Drawing circular patches around arbitrary points on a sphere

I am trying to draw circular patches of given angular radii around arbitrary points on a sphere. I am able to use, for example, ...
8
votes
1answer
143 views

Petrie polygon projection of a hypercube graph

I am trying to generate the Petrie polygon projection of the 8-cube in Mathematica, like this one: I tried using, for example, the HypercubeGraph function: ...
4
votes
1answer
197 views

geodesics' on torus

Is it possible to draw geodesics between the points in a path on a torus - toroidal surface? geodesics: generalization of the notion of a "straight line" to "curved spaces" ...
3
votes
1answer
118 views

Is there a way to control the placement of individual tick mark labels?

Let me start by saying there are a lot of other questions here on SE and elsewhere about tick marks in MMA but I think I am correct in saying that none of them cover exactly what I want (apologies if ...
3
votes
1answer
146 views

How to do individual axis labeling with use SciDraw multipanel figures?

I am trying to make a 6 panel figure for publication where each X and Y axis has its own label. Here is simplified code and its output: ...
3
votes
1answer
134 views

Positioning of tick labels in a 3D plot

I am looking for an easy way to force this plot to label the $y$ axis with numbers below the axis automatically in the given view point. Now the label switches to the bottom when the view point ...
2
votes
2answers
106 views

Adding a quarter circle to an array plot

I want to add a quarter circle to delimit the evolution of the 2D CA with code 746 (which is almost circular) like it's shown here I tried what's shown below, but I can't get the Epilog to show, why? ...
5
votes
1answer
256 views

How to plot graphics objects such as lines or polygons logarithmically

I am making ListLogLog plots with polygons in the Prolog and lines in the Epilog, and I want ...
0
votes
0answers
77 views

Problem with BSplineCurve 3D

I have a problem using the function BSplineCurve [ ] . I have to represent a line passing through about 3000 points in 3D. I managed to plot the points separately, but when I use the 3D BSplineCurve ...
3
votes
1answer
119 views

Adding text on an .xyz file of an atom

I know it is possible to view .xyz files of coordinates in Mathematica. I tried to write some text on a specific atom using Text, but I was not successful. How can i do that? Thanks for the help in ...
2
votes
1answer
95 views

Interacting with the vertices of a polygon and points on a circle

I want to create an interactive module, where I can plot the vertices of polygon and some points on a circle(for example, suppose a triangle and 3 points on the circle) and move the vertices of the ...
2
votes
1answer
44 views

How to reorganize the graphs in the GraphicGrid in a reopened notebook without re-generating them

How to reorganize (add some and remove some within the same notebook) the graphs in the GraphicGrid in a previously saved notebook that was closed and reopened, without re-evaluation to re-generate ...
1
vote
1answer
101 views

Show the number of rectangles under a curve

I am trying to manipulate the number of rectangles under a given curve, so far I can show the size of each rectangle, but I am not sure how to tell the number of rectangles. ...
4
votes
2answers
142 views

Scatter plot with bar markers

I'm trying to essentially make a scatter plot where instead of points, the markers are bars that connect the point to the bottom of the graph (like a histogram). My problem is that my graph has ...
3
votes
0answers
43 views

Highlighting individual 'cells' in Matrix/ArrayPlot [duplicate]

I am plotting some matrices / arrays via MatrixPlot and ArrayPlot, and I would like to highlight several of the cells via ...
0
votes
1answer
55 views

Graphics is not a primitive or directive- please help! [closed]

I cannot seem to draw a windmill that fits in the photo background. Any help is appreciated! Thank you :)
1
vote
1answer
164 views

Move a point along a curve

I am trying to implement the de Casteljau algorithm to trace a point along a Bézier curve. I already have the Bézier curve in place given by the control points ...
3
votes
1answer
45 views

How to get DateListPlot Epilog to display shapes

The following should produced a plot with an orange outlined disc labelled "A" on the dotted line. Epilog produces the dotted line and the text label but is unable ...
5
votes
2answers
220 views

Filling between two B-spline curves

I am trying to fill the space between two curves (curve1 and curve2) I generated since long but unable to do so. Can some one help on this please. The following is the code snippet. ...
0
votes
0answers
87 views

Intersection of two cones

I want to plot a region difference between two cone, but the results seems to be very deformed.. ...
2
votes
2answers
58 views

How to mix symbols and text for labels in manipulate? [closed]

I'm creating a big manipulate box with several sliders, and each slider must have a small explication text (units, for example) after a mathematical symbol. As a simple example, here's the code I'm ...
3
votes
2answers
113 views

Rounded rectangle with color gradient [duplicate]

Basically I'd like to produce a graphic like this: That is a rectangle with rounded corners, filled with a color gradient. While Rectangle offers the ...
1
vote
0answers
44 views

Graphics row/case number showing [closed]

I want to draw scatter plot of two variables and showing the case number of on points of graph. and also multiple scatter graphs. Further these graphs are not disturbed on formatting their size. Dear ...
2
votes
1answer
84 views

Combine three 2D graphics with animation

I am trying to simulate three kind of points (different color) entering a 2D rectangular region from different sides with animation. Below is my code: ...
7
votes
2answers
182 views

How to draw a family of planes and its envelope?

Motivated by a question in MSE, I have the following question: How can I visualize the envelope of the family of planes $$ 2ax+2by-z+a^2+b^2=0, a,b\in\Bbb{R} $$ which is given by the ...
2
votes
1answer
50 views

How to trace back to the reasons of this GUIScreenShot's behaviour?

The question I'm going to pose is surely, in some extent, version dependent, however I conjecture that it's rooted in general aspects of video manager architecture in Windows. This, I believe, makes ...
4
votes
2answers
90 views

Ex-post monochome plots [duplicate]

I need to "monochromize" a large amount of plots (mostly coming from ListPlot) and export them to PDF. The problem is that I no longer have the data used to ...
1
vote
0answers
65 views

How to properly set ColorFunction and Specularity in ReliefPlot [closed]

I have two questions about ReliefPlot: How can I set the Specularity without changing ...
2
votes
0answers
113 views

How to make a flowchart? [closed]

I'd like to make a flow chart in similar to this: I think it's more of a layout and stylistic question for a graph - how to style a graph with labeled edges and vertices so that it looks like a ...
5
votes
1answer
233 views

Unexpected result when using PlotRange in Mathematica 10

Show[ Plot[x, {x, 0, 1}, PlotRange -> All], Frame -> True, PlotRange -> {{0, 1}, {0, 1}}, AspectRatio -> 1] gives the expected result in ...
5
votes
1answer
171 views

Graphics3D/Plot3D rendering issue

I have an issue in Mathematica with the rendering of 3D graphics. Two sides (right and bottom) of some sort of bounding box are present, and, in the instance of ...
4
votes
2answers
211 views

How to draw a moving point with time?

I am new to Mathematica. Try to draw a point moving with time. Like at t=0, a point is at p1(coordinates are random numbers); at t=1, this point is at p2. And there is always ONE point on the graph. ...
23
votes
2answers
2k views

Generating convex polyhedron from face planes?

Suppose I have lists of normals and points for planes. There's a convex polyhedron whose faces lie on these planes and are bounded by plane intersections. What would be the easiest way to produce an ...
12
votes
1answer
620 views

Can a LatticeData image be displayed in a space filled fashion

I'd like a FaceCenteredCubic image as in the in LatticeData docs, but space packed, and cropped on all the boundaries, so that it illustrates the geometry of the calculation that leads to the ...
0
votes
1answer
107 views

how to generate a 3d graph of HCP crystal structure [duplicate]

I am confused with lattice parameter and the basis. The structure I generated is not HCP. To verify this, one could use this plotting function from the answer to Can a LatticeData image be displayed ...
1
vote
2answers
71 views

Manipulate slider freeze, and empty value in box

Here's a MWE code to show two problems I'm experiencing with the sliders and their value box, under Manipulate : ...
1
vote
1answer
116 views

Out of range red glow on inter-dependant sliders in manipulate

In manipulate, I need to define two sliders : one basic slider, and a second one for which the end value depends on the current value selected on the first slider. How can I achieve this in ...
11
votes
4answers
393 views

Show only the outlines of graphic primitives

I want to go from Graphics[{Red, Rectangle[{0, 0}, {1, 3}], Blue, Polygon[{{1, 1}, {3, 1}, {2, 2}}]}, Frame -> True] to I have rather clumsily written: ...
4
votes
2answers
152 views

Insufficient size of Graphics

The following code returns a framed text box that is longer than the standard width of `Graphics'. ...
2
votes
1answer
59 views

Plotting certain time points in a parametric equation? [closed]

I'm using Mathematica 5.0 and I have the following problem. I have the following parametric equation that I plotted successfully. ...
0
votes
1answer
120 views

How can we draw a stencil for discretization of PDEs?

How can we draw some multi-node (e.g. 5-node, 9-node, etc.) stencils that occur in the process of discretization of PDEs, such as the following ones? or As a matter of fact, I would like to ...
1
vote
1answer
359 views

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
2
votes
0answers
55 views

No Way to paste a Picture from Clipboard under Linux?

As far as I remember, on a Windows PC in the old days of Mathematica 4 I could paste an image from the clipboard by just pressing Ctl-V. This seems to be no longer available on my Linux PC. If I try ...
1
vote
1answer
83 views

Rasterize and Graphics, size difference

I am writing my own TreeForm function and for this I want to make sure that framed text boxes in Graphics do not overlap. First, ...
15
votes
0answers
163 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
2
votes
0answers
65 views

How to plot points in 2D without restricting their apparent positions to pixel grid?

Compare the two renderings of the same point in the following code (this is just a reduced example, I know I could just zoom in the scene, it's not an option in original code): ...
0
votes
1answer
83 views

How to extract the vertices value of a polygon? [closed]

I developed a code where I can extract the vertices of the polygon with highest adjacent. These are the index values of each polygon: ...