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

9
votes
2answers
358 views

Transition between graphs

I want to visually demonstrate the manipulations made to a graph. For instance, I have a graph g where using the command ...
20
votes
2answers
591 views

Scaling edge thicknesses

UPDATE There may be some confusion as to the specification of the problem. kguler's answer doesn't really answer the question. I'll try to elaborate a bit at the bottom of the post. One problem ...
37
votes
5answers
2k views

Factorisation diagrams

Here is a way to visualize the factorisation of natural numbers. How do we get this or a similar kind of output using Mathematica? See the list of images generated for number from 1 to 36:
16
votes
3answers
1k views

Get x and z coordinate from an image and make a parametric surface

In this blog entry, this step is mentioned: I grabbed an image of a Peugeot wine glass from the web and used the Get Coordinates function to digitize its outline, which I fed to Interpolation to ...
4
votes
1answer
235 views

What BarChart Option controls Joined line thickness?

Is there a named option that controls the thickness of the line segments that appear in BarChart with options ...
3
votes
1answer
286 views

How to partition MatrixPlot graphics?

Is there an easy approach - hopefully built-in - to partitioning MatrixPlot graphics into rows or columns (or both) of graphics sharing the same underlying options? ...
0
votes
0answers
75 views

Make PlotMarker explanation [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I have a ListPlot of data points. To distinguish between datapoints coming from different sources, I give them different ...
11
votes
2answers
1k 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 ...
15
votes
1answer
449 views

Why do Arrowheads interfere with ImagePadding?

Bug still present in version 10 under Windows. In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ...
11
votes
6answers
636 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 green....
14
votes
3answers
1k views

How to get 2D graphics into 3D without background?

Consider the following code: ...
4
votes
2answers
342 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 ...
33
votes
5answers
10k 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 ...
21
votes
1answer
3k 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 ...
13
votes
2answers
679 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 ...
2
votes
1answer
706 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
370 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 ...
18
votes
0answers
380 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 ...
7
votes
2answers
317 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
136 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
571 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 ...
10
votes
2answers
946 views

Detecting edge/region in contour plot

I am interested in improving this plot: which I produced with the following command: ...
6
votes
1answer
419 views

Efficient dynamic drawing

So for example I have this code: ...
0
votes
0answers
197 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 term ...
14
votes
3answers
919 views

PDF exports of ArrayPlot's are fuzzy (OS X)

This is now fixed in version 10.3. The problem is present up to version 10.2 only. [The following problem occurs on OS X; I don't know if it also occurs with other OS's.] If I produce a ...
8
votes
4answers
1k 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
233 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 ...
20
votes
2answers
1k 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
436 views

Rules governing Plot line generation

I was looking at the Documentation Center for Round, Ceiling and Floor when I noticed that ...
5
votes
1answer
181 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 ...
11
votes
4answers
767 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
277 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. ...
23
votes
4answers
1k 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
648 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? ...
47
votes
2answers
3k 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 (even in v10.0-v10.4, where ...
23
votes
6answers
2k 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 ...
9
votes
0answers
356 views

How to style and position VerticalCallouts and RadialCallouts

Here is a pie chart with a labels placed with a "VerticalCallout" ...
17
votes
2answers
1k 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
214 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 ...
11
votes
5answers
774 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
596 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 ...
16
votes
2answers
2k 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
92 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}]]]
12
votes
2answers
4k 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 ...
12
votes
3answers
2k 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, ...
31
votes
1answer
1k 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
215 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). ...
18
votes
4answers
361 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 ...
3
votes
1answer
228 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 ...
8
votes
1answer
770 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 ...