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
2answers
36 views

How to mix symbols and text for labels in manipulate?

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
92 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 ...
29
votes
3answers
3k views

Avoiding white lines inside filled area in RegionPlot exported as PDF or PS

When doing a RegionPlotand then exporting (or saving from the front end) as PDF or EPS, there are small white lines in the filling of the region. Here's an example ...
1
vote
0answers
36 views

Graphics row/case number showing [on hold]

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
74 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: ...
6
votes
2answers
170 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
38 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
81 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
54 views

How to properly set ColorFunction and Specularity in ReliefPlot [on hold]

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

How to make a flowchart? [on hold]

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
214 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 ...
4
votes
1answer
148 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
162 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. ...
21
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
596 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
56 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
56 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 : ...
2
votes
1answer
36 views
1
vote
1answer
104 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 ...
1
vote
1answer
82 views

Vector graphics in Export for Video rendering

I am trying to generate a vector graphics video in Mathematica. I stumbled upon SWF format (PNG are raster images which I'm not interested in). SWF format works fine for me but the axes and the ...
11
votes
4answers
385 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
143 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
50 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. ...
8
votes
1answer
105 views

FilledCurve inside GraphicsComplex doesn't interpret the integers as points

Bug introduced in V9.0 or earlier and persisting through V10.3.1. Here's an example: ...
0
votes
1answer
99 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
329 views

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
2
votes
0answers
37 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
70 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
106 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
56 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
57 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: ...
11
votes
2answers
1k views

Labels and tickmarks inside Frame

Is there a way to force Plot and related functions to place the tick labels inside, rather than outside a frame? For example, consider, ...
5
votes
1answer
50 views
4
votes
2answers
789 views

Getting consistent tick lengths and positions of labels

Bug introduced in 7 or earlier and persists through 10.3.1 or later I'm trying to have identical tick mark lengths for both horizontal and vertical ticks and I wish them to look outside of the plot ...
2
votes
1answer
140 views

Ploting a parallel graph for an animation

I am sorry that my attempt to obtain a fully functional plot as I want failed badly because I am not able to integrate the features to the graph. Here is my simple code: ...
10
votes
1answer
70 views

Arrows from GraphicsComplex not converted to Normal form correctly

Bug introduced in 7.0 or earlier and persisting through 10.3.1 or later Show @ Graph[{1 -> 2, 2 -> 3}, Frame -> True] Normal @ % Is this a pure bug, ...
9
votes
3answers
630 views

Distorted graphics when using custom ticks and AspectRatio -> Full

Bug introduced in 7.0.1 or earlier and partially persists through 10.3.1 or later I am having a problem using custom tick specifications along with ...
1
vote
0answers
51 views

Convex and concave regions of a closed curve [duplicate]

A few days ago, in Mathematica's help, I saw a function for recognizing if a closed curve has a positive or negative radius (convex or concave) like in the picture I found on the web, but without the ...
7
votes
2answers
157 views

What are the default Frame / Axes styles and how can I find them?

I'm sure this must have been asked before but I am unable to find anything here on SE or on Google in general. I simply want to know what the default color and thickness are for a ...
3
votes
1answer
39 views

TimelinePlot - Handling dates prior to Year Zero

Interested in Using TimelinePlot to help me understand/remember important time periods in Earth prehistory and history. Following an a simple example in the Documentation I create a TimelinePlot for ...
3
votes
1answer
318 views

Change the height of a function being plotted

How do I alter the height of any function plot using the Plot function? Mathematica seems to limit the height of the plot up to the range of a function and distort ...
6
votes
0answers
61 views

Artefact at joints within BSplineCurve of low Opacity

I want to eliminate the dots of higher opacity that occur at the joints within a BSplineCurve of low opacity. Small rectangles of greater opacity, shown below, ...
0
votes
1answer
60 views

Printing graphics files on a 3D printer [closed]

What is the easiest way to have a 3D graphics of a surface created by Mathematica printed on a 3D printer?
6
votes
2answers
95 views

Inset in ArrayPlot

It seems the options in the Inset object will be ignored when passing to ArrayPlot: ...
14
votes
1answer
257 views

Creating a cloud of blocks that form I ♥ U in different viewpoints

This picture shown bellow has three shapes with different view angle (I ♥ U). How to do this type of model? A few tries: ...
2
votes
0answers
149 views

Copy/Paste of a plot leaves whitespace

I'm trying to copy Mathematica figures into word, but when I do, I get tons of extra white-space for some reason. Either standard ctrl-c - ctrl-p or "copy graphic" does this. I understand that I ...
20
votes
0answers
310 views

Graphics`Mesh`FindIntersections[ ] fails to detect intersections

Graphics`Mesh`FindIntersections[ ] is an undocumented function for, well, detecting intersections very efficiently. Take a look: ...
23
votes
4answers
597 views

Faces and NetFaces relation in polyhedron

I'm trying to generate some plots of polyhedra with coloured faces. To determine the colours, I require the adjacency information of the faces. For the 3D plot this works really well. Say I want to ...