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

22
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
617 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
96 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
69 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
115 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
391 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
151 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
58 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
113 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
356 views

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
2
votes
0answers
54 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
76 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
150 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
62 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
80 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: ...
12
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
59 views
4
votes
2answers
816 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 ...
1
vote
0answers
52 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 ...
8
votes
2answers
182 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
340 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
70 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
102 views

Inset in ArrayPlot

It seems the options in the Inset object will be ignored when passing to ArrayPlot: ...
2
votes
0answers
159 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 ...
21
votes
0answers
331 views

Graphics`Mesh`FindIntersections[ ] fails to detect intersections

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

How to demonstrate a limit without having to pre-calculate certain points

You have a circle of radius r centered at the origin. You have a circle of radius 1 centered at (1,0). You draw a ray through the point (0,r) and the point where the circles intersect. Let R be the ...
2
votes
1answer
107 views

How to get a full closed contour image [closed]

In this program, I need to select the point on the contour image that has the same abscissa as the center of the contour and has the highest ordinate. However, since the contour is not full closed, ...
8
votes
1answer
272 views

How to add a fading trail effect in Animate?

I would like to add a smooth fading effect to the end of a curve, while it is animated. Here's a minimal working example which shows a particle moving on a circle (the circle is drawn while the ...
1
vote
1answer
94 views

How do I plot this (x^3 - 2*x)^Ln[x]? [closed]

y=(x^3 - 2*x)^Ln[x] I'm totally clueless. I tried with y=e^(Ln[x] Ln[-2 x + x^3]) by Ln-ing on both sides but there is ...
1
vote
0answers
82 views

Manipulate a random walk [closed]

For a college project I am manipulating a random walk. I managed to make a walk but in the manipulation every time a step is added the manipulation shows an entirely different walk. I understand why ...
3
votes
1answer
134 views

Hasse Diagrams from Adjacency Matrix

Let's say I have a rather large adjacency matrix for a partial order relation. Say an 80x80 matrix. What is the best way to display Hasse diagram? I have tried AdjacencyGraph and it does a not so bad ...
16
votes
2answers
2k views

How do I map a Mollweide projection onto a sphere?

I have this Mollweide projection of the Earth circa 600 million years ago (http://jan.ucc.nau.edu/~rcb7/370moll.jpg).(1) I want to map this onto a sphere. My results have big black splotches in ...
0
votes
0answers
61 views

Approaching infinity [on hold]

I'm using Mathematica to visualize the autocorrelations of all kinds of wave-types. Obviously, my waves aren't infinite and don't have infinite periods though, so the autocorrelation I get is a ...
0
votes
0answers
71 views

Make smooth plot from data

After some awesome tips from @qwerty I still have some doubts As I said, I´d Like to make a smooth function with some other colors, I plot the graph, there is a lot of data. The situation is this: I ...
0
votes
1answer
137 views

How to make smooth function from data [closed]

After some awesome tips from @qwerty I still have some doubts As I said, I´d Like to make a smooth function with some other colors, I plot the graph, there is a lot of data. The situation is this: I ...
24
votes
7answers
3k views

Visualize Pascal's triangle and other triangle shaped lists

How can Pascal's triangle be visualised like this in Mathematica? Or more generally, how can a 'triangular' list like {{1},{1, 1}, {1, 2, 1}} be visualized in ...
1
vote
3answers
189 views

How to combine Tabview with Dynamic Graphic to change the colour of a polygon

How does one get TabView to specify the colour of the Polygon? How does one put a label on ...
4
votes
1answer
83 views

Graphics3D opacity of lines

I would like to make the lines opaque for a plot of form similar to: ...
4
votes
1answer
126 views

“Interface” for exam

Is it possible to create a (graphical) interface with Mathematica so that instead of having a Mathematica document where I change definitions and so on, I can just input values and it will use my code ...
4
votes
1answer
491 views

Mathematica exported movie quality

I am generating an animation using: anim = ListPlot[X]; Export["anim.mov", anim, ImageResolution -> 800, Antialiasing -> True]; The ...
0
votes
1answer
95 views

Animation, gif, ppt [duplicate]

How can I save these animations as gif? I need reeeally quick answer if possible: :D
1
vote
1answer
77 views

change color of the face in a 2D ConvexHullMesh [duplicate]

If I say tri = ConvexHullMesh[{{0, 1}, {1, 1}, {1, 0}}] a triangle is rendered in blue. How can I change that color? An answer to an earlier question suggested ...
5
votes
4answers
115 views

PlotRange truncates data in the y direction but not in the x. Why?

Here's a very bizarre inconsistency I've just struggled with and I'm wondering why it exists or if I'm missing something. I have some noisy data and I wish to make a framed plot of the data but allow ...
1
vote
1answer
52 views

Temporary/popup Output Progress Boxes

In recent versions of Mathematica, a number of functions have the feature that, while they are thinking (or, for example, loading data from Mathematica servers), they pop-up a little light-blue box ...
0
votes
0answers
100 views

Plot of 4-dimensional vector field

I want to study a certain type of 4-dimensional ordinary differential equation. How could I visualize it? One thing that could be helpful is to plot the vector field in one pair of variables, for a ...
21
votes
2answers
2k views

How to translate interactive graphics from Mathematica to standard HTML+SVG?

I have a simple interactive plot in Mathematica, with controls for various parameters. The point of the plot is simply that users can explore how the plot changes as the parameters change by ...
3
votes
1answer
93 views

clip a plot to sub-parts then merge

I have a start photo (StartShot) with 0-400, 0-400 coordinates: And this path: ...
0
votes
1answer
81 views

How do I shade in the region between two plots? [duplicate]

I would like to plot two functions and shade in the area between them to illustrate an integration example. I have this into mathematica: ...