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
1answer
62 views

NDSolve Surface Plot to Compare Initial Values

I am trying to solve a system of differential equations which model reaction kinetics using NDSolve. I would like to generate a surface-plot of the function value as a function of time and the initial ...
6
votes
1answer
160 views

Making a 2D hexagonal mesh

There are a lot of answers for how to make a hexagonal mesh on a 3D surface but nothing on how to make a hexagonal mesh on a 2D surface. Can any provide code on how to do so? I am new to mathematica, ...
1
vote
3answers
142 views

Drawing a Closed Curve from given points

I have the following points: ...
2
votes
0answers
88 views

ElementMesh (rendering?) issue

The appearance of the following ElementMesh is bad as you can see for example on the inside surface of the shell. The same problem happens converting to a ...
0
votes
1answer
116 views

rescaling ColorFunction for ListContourPlot

I have this question that I've been struggling with. I came across many similar questions, but those solutions do not work for me. What I looked at: Example 1 Example 2 Example 3 I apologize if I ...
2
votes
1answer
73 views

Change bond cutoff distance when plotting .xyz files

When plotting a molecule from a xyz data file, Mathematica automatically adds the bonds between the atoms. But in my case it adds too many bonds, not only between nearest neighbours but also between ...
-1
votes
1answer
48 views

Add polygon as text before the polygon values [closed]

I have the following values of two polygons: ...
0
votes
1answer
67 views

Keeping a plot label from automatically resizing

I have: ...
1
vote
0answers
44 views

PlotLabel with Graphics [closed]

Wondering why my PlotLabel does not show up? ...
1
vote
3answers
191 views

Rendering a shape rather than a point in Graphics

Here is some sample data ...
0
votes
0answers
34 views

How can I add an arbritrary label to a detail in a Plot or Plot3D?

I know about the graphics primitives Line and Point. I also know about Labeled, but there the placement of the label itself is confined to one out of {Bottom, Left, Top, Right}. I am looking for a ...
1
vote
1answer
105 views
6
votes
2answers
117 views

How to horizontally center a button in manipulate?

I just need to center a button in the MWE code below. Currently, all I try doesn't work. I would like to horizontally center the button relative to the sliders over it, for aesthetical reasons only. ...
1
vote
1answer
62 views

Increase resolution of ListContourPlot3D

I have this code that I want to compute to create at Gyroid, ...
6
votes
2answers
121 views

How to introduce two successive points inside the FixedPointList for each cycle?

If we want to draw the attraction basins of an iteration function of the following type $$x_{k+1}=x_k-\frac{f(x_k)}{\frac{f(x_k)-f(w_k)}{x_k-w_k}},$$ where $w_k=x_k+b f(x_k)$, $b\in R-\{0\}$, we can ...
3
votes
2answers
84 views

how to draw the intersection when a function intersected by a plane

I'm sorry, this maybe a very basic question. $z=x^2+y^2$ that intersects a plane passing through the point (1, −1, 2), which is perpendicular to the xy-plane and parallel to the vector ...
0
votes
2answers
85 views

Tracing an image to produce a vector graphic

I have a line-drawing that I would like to trace into a vector graphic, but cannot find documentation on how to perform some of the basic graphic functions necessary to do this. Here is an example ...
3
votes
2answers
93 views

Plotting with arrowheads and labels

I want to add arrowheads and labels to the following plot. ...
-1
votes
1answer
41 views
8
votes
1answer
89 views

WordCloud: can words' style and orientation be functions of words?

Function WordCloud can take such options as WordOrientation and ColorFunction. It is not ...
1
vote
1answer
151 views

Problem with convergence of limiting value in Manipulate

I created a nice Manipulate box of the magnetic field outside and inside a spherical shell placed in an homogeneous magnetic field. The code is working great, but it has a problem at a limiting ...
1
vote
3answers
148 views

How to draw a triangle like this one

I have a rectangle of x by n and need to draw the the that bisects the corners as percentages of the rectangle. The example plot shows from 0% to 100% by 5% increments. Can this be done in ...
4
votes
1answer
76 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 ...
5
votes
2answers
229 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
138 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: ...
3
votes
1answer
131 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
99 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? ...
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 ...
2
votes
2answers
145 views

ParametricPlot3D colorfunction for a specific region of an object

I have created a 3D parametric plot of an oblate spheroid, and I want to apply "TemperatureMap" as a colorfunction to its surface as a gradient in the Z direction. However, I only want to apply this ...
3
votes
3answers
199 views

Create graphic object using {x,y} points, and plot a contour over it

I am trying to create a graphics object (polygon built with {x,y} points)so I can plot a contour over it. I would like the coordinates of the contour plot and graphics object be matched (ie, {0,0} in ...
2
votes
1answer
94 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 ...
4
votes
2answers
141 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
42 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
46 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 :)
3
votes
1answer
118 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
43 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 ...
1
vote
1answer
157 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 ...
5
votes
2answers
217 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. ...
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 ...
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
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 ...
3
votes
2answers
112 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
63 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 ...
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 ...
2
votes
0answers
111 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 ...
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: ...
4
votes
2answers
202 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. ...
0
votes
1answer
97 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
70 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 : ...
4
votes
2answers
151 views

Insufficient size of Graphics

The following code returns a framed text box that is longer than the standard width of `Graphics'. ...