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

17
votes
1answer
687 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
77 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
40 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
138 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
176 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
237 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
572 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
182 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
118 views

Are there more pre-existing ColorFunction options?

Such as "DarkRainbow", "Rainbow", "BlueGreenYellow", and ...
3
votes
4answers
97 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}] ...
1
vote
1answer
34 views

How can I decouple the updating of a `LocatorPane`'s background from changes in its point variables?

I am building a Dynamic application and I'm having some trouble understanding exactly how Refresh should be implemented. The ...
2
votes
1answer
71 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
227 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 ...
1
vote
1answer
74 views
2
votes
2answers
179 views

Gradient in a plotstyle

I'm trying to replicate the figure below. Now a nice first approach to do this is by using Mathematica, by making some kind of contourplot with circles and just add a gradient to the contourstyle. Now ...
7
votes
2answers
1k views

Controlling the 2D $x–y$ aspect ratio of a 3D plot

I have some data representing a nested list, each element being composed of 3 real numbers like ...
7
votes
2answers
329 views

How to create an adjustable Bézier curve?

I tried to create an adjustable Bézier curve with the following simple code. However the curve didn't show up. What is the problem? Please help. ...
1
vote
1answer
56 views

Delete Edges in Kpartite Graph

I need to make a K7,2 partite graph , with deleting 2 vertices and plus 2 more random edges , and after that my vertices should be green color. I made the graph K7,2 and deleted 2 vertices with this ...
4
votes
0answers
134 views

Delete duplicates by a criterion

The description This question came from my recent work. I achieved four groups points by data processing and then visualized them with Mathematica (shown as below) And I know that ...
3
votes
1answer
123 views

Export collection of plots to A4 pdf

Sometimes I want to Export a collection of plots or other Graphics to a pdf in A4 format. Right now I'm using a GraphicsGrid inside a panel which is an inset in a Graphics object. Here is an example: ...
7
votes
1answer
60 views

Setting an image as the background of a GeoGraphics image

It's easy to set the background of a GeoGraphics image to black, e.g., ...
6
votes
0answers
288 views

How to restrict the mouse cursor to stay within a box?

I'm trying to use Mathematica to write small games, and I find that it would help to restrict the player's mouse into the game window (just like other games do). Is there any way to achieve this? ...
6
votes
0answers
77 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

Fixed in 10.1 The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added ...
1
vote
1answer
43 views

InfiniteLine Woes [closed]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
4
votes
2answers
94 views

How to conditionally combine a RegionPlot3D with a ContourPlot3D inside a Manipulate?

I know how to combine a RegionPlot3D and a ContourPlot3D, which I did (see below for details on the code I'm referring to) with ...
6
votes
2answers
148 views

What does the AspectRatio option actually do?

The Documentation for AspectRatio on its first line under the "Details" section states: "AspectRatio determines the scaling for ...
4
votes
1answer
105 views

AspectRatio option works unpredictably?

Let us examine the agreement between specified value for the AspectRatio option and the actual aspect ratio of generated plot. For this purpose I define a function ...
5
votes
3answers
204 views
2
votes
1answer
115 views

Coloring points via “TemperatureMap” [duplicate]

I have a collection of 3D points, and each is associated with a real number in [0,1]. A typical element looks like {{x,y,z},c} where ...
0
votes
2answers
164 views

Projection of triangles onto a sphere

I am trying to find the solid angle taken up by a large set of triangles around a central point. I have normalized the vertices of the triangles to a unit sphere around the central point, But the ...
2
votes
1answer
55 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
11
votes
2answers
173 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
10
votes
0answers
185 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.1 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...
45
votes
1answer
2k views

How to construct a treemap using non-rectangles?

I've written the standard version of a tree map (a graphic that shows nested data) and I'm looking to improve on this layout by switching to different types of polygons or perhaps circles. Can anyone ...
19
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 ...
13
votes
4answers
3k views

How do I draw a DensityPlot in polar coordinates?

I am trying to plot $J_m(\chi_{mn} r) \cos(m\phi),$ where $J_m(\chi_{mn}) =0,$ as a DensityPlot in polar coordinates (solution to 2D wave equation in polar ...
8
votes
4answers
879 views

data visualization on a lattice grid

Is it possible to visualize an array whose elements are angles as actual angles on a lattice grid? E.g., say, if the input is: ...
9
votes
2answers
178 views

The envelope of a set of translated and rotated ellipses

I achieve a dynamic graphics by using Manipulate as follows: ...
9
votes
1answer
262 views

Anti-aliasing not working in Mathematica 10 and Linux

This issue appears to be fixed in version 10.1 While this works fine in version 9, in version 10.0 the Antialiasing setting has no visible effect any more I'm here on Ubuntu 12.04 64-bit ...
12
votes
2answers
1k views

Failure to export graphics by right-click when Notebook magnification is changed

Bug introduced in 9.0.1 or earlier and persisting through 10.1.0 or later When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing ...
4
votes
2answers
614 views

Triangle mapped on a sphere in $\mathbb R^3$?

How can I map a triangle on a sphere? I want to visualize (plot or animate) it for my student in Non-Euclidean geometry. I have no restrictions on the triangle's kind or on the sphere in $\mathbb ...
1
vote
0answers
69 views

Do not like quality of graphics when exported by Mathematica 9

I have been using Mathematica 9 to generate images of fractals for some time, and I noticed an uncomfortable phenomenon when I export the fractal image into a PDF. The lines get thick so that the ...
8
votes
3answers
233 views

Graphics in Notebook Different from Graphics Expression?

Consider the expression TreeForm[a+b^2+c^3+d] which displays as This is a nice Graphics object, as I can prove by typing ...
2
votes
2answers
125 views

Bug: Export sometimes adds unwanted background to PDF files

Update: WRI confirmed that this is a known issue with Export on 2015-05-14. I am trying to export the outputs of some Plot expressions as PDF files for inclusion ...
0
votes
1answer
26 views

Dimension of plotting window vs PlotRange [duplicate]

For example, let's say I'm plotting this function, Plot[x, {x,-3,2}]. From the answer to this question the plot range is ...
3
votes
2answers
109 views

Adding dynamic graphics to an animation

I'm making this demonstration that draws a parametric plot of the unit circle, while at the same time has two plots off to the side that draw the sine and cosine curves. I have this made up as an ...