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 ...
10
votes
2answers
333 views
How to vary color of fill between listplots based on y-distance between them
I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
10
votes
1answer
171 views
Why do Arrowheads interfere with ImagePadding?
In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ImagePadding->None.
My question is: why do the ...
11
votes
6answers
372 views
Overlapping Red and Green ArrayPlots to show yellow intersections
Let's say I have two ArrayPlot[]s. One is in redscale and the other is in greenscale, such that the lowest value is white and the highest value is pure red or ...
12
votes
3answers
353 views
4
votes
2answers
160 views
Transform x-scale of data for e.g. MatrixPlot
I have to transform in a nonlinear way the x-scale of some data for a MatrixPlot (or ReliefImage or ...
25
votes
5answers
2k views
Custom arrow shaft
Inspired by Sjoerd C. de Vries' nice answer to this question, and the desire to pimp a Graph I did with Mathematica recently I would like to know if there are ways to customize the arrow's shaft ...
15
votes
1answer
881 views
Vectorizing an image like “Trace Bitmap” in Inkscape
Lately, we had a nice question about artistic image vectorization which got very nice answers.
As Szabolcs pointed out himself
Since "true" vectorization performed by various specialized software ...
11
votes
2answers
221 views
Proper Filling of Self-Intersecting Polygon
I have a spiral pattern that I would like to fill, which self-intersects. My desired behavior is to have filling between neighboring lines only, and to represent this figure as a single polygon. The ...
1
vote
1answer
221 views
How draw dynamic empty rectangle over a bitmap?
I am trying to make a cookie cutter that will extract a small square from a much larger bitmap with a click of the mouse. The LocatorPane appears to be a useful way ...
1
vote
2answers
136 views
Saving graphics object in order to manipulate it later?
I've generated a bunch of graphics using ContourPlot wich, given the nature of my problem, take a long time to create, and I was wondering if there is a way to save ...
3
votes
0answers
76 views
Getting EPS imports to respect the original fill rule
One major problem in my attempt to answer to the CountryData flags question is that the way Mathematica handles filled curves differs from the way SVG and EPS style editors do. The latter two have the ...
4
votes
2answers
133 views
How to make each node of a graph a button?
A newbie question this one - MMA help seems to suggest it would be possible to place a button on ( or have a button be ) each node of graph, labelled with the name of said node. I have no idea where ...
1
vote
1answer
96 views
Why doesn't Normal[] work?
I have a polygon on which I'm applying a GeometricTransform and I want to get the coordinates of the transformed polygon. ...
2
votes
1answer
152 views
How specify PlotRange and display bitmap over plot in DateListPlot?
The problem came up in a plot of RGB data obtained by imaging the variable star d-Cephei with a DSLR camera on several successive nights. I tried to plot the R, G, B intensity points for each day in a ...
9
votes
2answers
339 views
Detecting edge/region in contour plot
I am interested in improving this plot:
which I produced with the following command:
...
6
votes
1answer
216 views
0
votes
0answers
161 views
How to make “molbio-style heat maps” in Mathematica [duplicate]
Possible Duplicate:
How to combine ArrayPlot's?
[NB: This question is specifically addressed to those who have used (or attempted to use) Mathematica to generate "heat maps" (as the ...
2
votes
1answer
175 views
PDF exports of ArrayPlot's are fuzzy (OS X)
[The following problem occurs on OS X; I don't know if it also occurs with other OS's.]
If I produce a Graphics object with ...
7
votes
4answers
365 views
How to combine ArrayPlots?
Define:
fat = ArrayPlot[RandomReal[1, {20, 10}], ColorFunction->"Rainbow"];
skinny = ArrayPlot[RandomReal[1, {20, 1}], ColorFunction->"Rainbow"];
What ...
8
votes
3answers
175 views
Identify which cell uses most memory in front-end
Even though the mathematica front-end is much more robust than it used to be,
everyone must have noticed that when a few 3D graphics are involved, the front-end produces very large notebooks which ...
19
votes
2answers
557 views
How to quickly calculate intersections of filled curves?
I am trying to quickly calculate the intersection of polygons with more than 6,000 points. A compiled solution would be preferable.
Here is one example of the problem:
...
3
votes
2answers
180 views
Rules governing Plot line generation
I was looking at the Documentation Center for Round, Ceiling and Floor when I noticed that ...
4
votes
1answer
143 views
How to recover a graph without instructions to produce it?
I have an output graph on a saved notebook that I cannot reproduce with my data (I messed up the instructions).
Can I take that graph, insert it in a new notebook and modify it? (I'm thinking about ...
9
votes
4answers
337 views
Why do some CountryData flags render at low resolution?
This question is related to data analysis introduced here
Why do some flag images from the CountryData dataset render at very low resolution both in Front End and ...
11
votes
2answers
212 views
can a ColorFunction have side effects?
Can anyone explain this (to me) odd behavior. If I run this code once (fresh kernel) it works as intended.
...
13
votes
4answers
404 views
How to plot Error Bars in a 3D scatter plot
This is a simple problem which is proving difficult to solve. I want to plot error bars on points in a 3D scatter graph. I plot error bars on points within a 2D scatter by:
...
6
votes
3answers
256 views
Getting all the countries' flags and then using them as chart labels?
What's the code to list all the world's flags?
CountryData["G8", "Flag"]
works to get those particular flags, but what about all the world's flags?
...
20
votes
2answers
487 views
An efficient circular arc primitive for Graphics3D
As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment. Several solutions to this ...
16
votes
6answers
505 views
Understanding Pie Chart Annulus generation and alternate style using Disk[]
Background
I have been working with a set of data for some time now and I recently decided to change the format. The data is a tree-styled listing of hierarchical names and positions.
(* Names ...
6
votes
0answers
129 views
How to style and position VerticalCallouts and RadialCallouts
Here is a pie chart with a labels placed with a "VerticalCallout"
...
13
votes
2answers
313 views
How to measure segment length and branch angle
I am trying to measure segment length and branch angle or bifurcation angle between each pair of segments.
My image after thinning looks like this:
...
5
votes
2answers
123 views
How can I set the tick marks of the x axis in RectangleChart?
By default, the x-axis in RectangleChart is not labeled. Using Axis -> {True, True} does not help. Can I set the ticks ...
10
votes
5answers
475 views
How to plot rectangles aligned by their center?
Supose I have a rectangle which area is $x^2$. In some cases I may not know what is the size of each side, for $x=12,$ we have several possibilites:
...
3
votes
1answer
162 views
Problem in RegionPlot3D
I tried to plot the region bounded by the three planes. This is supposed to give me a pyramid type of shape (actually two, but I am just taking one of them). The code is given by
...
14
votes
2answers
636 views
What is the best way to create a correlation matrix heatmap with values?
This may have been asked somewhere else, but I couldn't find an answer by searching. I'm trying to create a correlation table that colors the background behind the numbers as a heatmap. I've been ...
3
votes
1answer
82 views
Graphics[] not working from within For[]
Why is the following code not plotting the set of points from {1,1}
to {10,10} ?
For[i = 1, i <= 10, i++, Graphics[Point[{i, i}]]]
5
votes
2answers
357 views
How to plot empty rectangle?
I know there is a Rectangle[] function, but it is always filled with some color. What I need is a rectangle, which is empty inside (only it's boundaries visible). I ...
6
votes
3answers
404 views
How to make a tight crop of a 3d plot?
I like Mathematica, but it's syntax baffles me.
I am trying to figure out how to minimize the whitespace around a graphic.
For example,
...
22
votes
1answer
542 views
Make a map of squares
I'm trying to use Mathematica to make a map similar to the one here
i.e. a US map where each state is represented by a square of a given size, located as close as possible to its true geographical ...
3
votes
1answer
138 views
Labeled and Graph don't mix?
In an attempt to create a legend for a graph drawing, I find that Labeled only works without the position options (except for Center).
...
16
votes
4answers
286 views
How to create Locator[] hierarchies?
I'd like to 'parent' Locators to one another, ideally organized in any arbitrary tree.
The simplest case: If I have two Locators, A and B, then moving A will move both together, but moving B will ...
2
votes
1answer
133 views
How do you define an affine transformation that is translated by itself?
This one should be simple, but I can't figure it out. I would like to define a transformation (function) such that $r$ maps to $m.r + r$
The help file on AffineTransformation says that
...
5
votes
0answers
282 views
How to map rotate, pan, zoom to manipulate controls
I am wondering if there is a way to restrict the motion of the rotate mouse cursor in when moving around a 3d plot.
For example, I want the y direction of the cursor to correspond to pulling the z ...
4
votes
1answer
157 views
How to Rasterize in “Printout” style
I am trying to ascertain how large a justified text block will be when printed by rasterizing it in the "Printout" style environment. However, ...
14
votes
2answers
298 views
How can I generate a legend for a BubbleChart?
Is there a way to make a nice disk radius legend (with linear or log scale) for a BubbleChart[]? Something like the following example should be built in!
13
votes
6answers
956 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 ...
7
votes
3answers
298 views
Shading regions in ParametricPlot
I am using ParametricPlot to get an X vs Y plot. I want to shade the area enclosed by the curve falling in the region where Y<0.
For example, how to shade the area enclosed by the Sin curve where ...
6
votes
0answers
577 views
Limiting the use of discrete graphics card on Mac
Apple's laptop running Mac OS have a pretty nice feature to make the battery last longer: the dynamically switch between the low-power integrated graphics card and the higher-performance dedicated ...
4
votes
3answers
409 views
How do I make a log plot where the plot is logarithmic in the distance from the X-Axis (including negative values)?
For example, if I were to do a plot of Sin[x], I would get what looks like a Log plot of Sin[x], with another log plot of ...
23
votes
4answers
1k views
How to create this four-dimensional cube animation?
This is a tesseract, a four-dimensional cube, which contains two cubes. Here, each side length of the smaller one is 1, while the side length of the bigger one is 2. How do make I it?
I am still ...


