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 ...
28
votes
6answers
2k views
Intersecting graphics
Does the Mathematica graphics system have any concept of intersecting graphics? I've not found much in the documents so far. For example, if I want to show the intersection of two shapes:
...
40
votes
6answers
4k views
29
votes
7answers
965 views
44
votes
5answers
4k views
Exporting graphics to PDF - huge file
I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with
...
19
votes
7answers
1k views
Sizing cells in a GraphicsGrid/GraphicsRow
I would like to add a colour bar to a plot. I tried to use GraphicsRow for this. In a GraphicsRow, each item is given the same ...
32
votes
2answers
805 views
Extract values for ViewMatrix from a Graphics3D
Under More Information in the help page of ViewMatrix the following entry can be found
With the setting ...
16
votes
3answers
888 views
Antialiasing in 3D
Is it possible? Is it platform specific? Does it rely on the graphics hardware? Why does the antialiasing slider under Preferences > Appearance > Graphics do nothing? I remember seeing some ...
40
votes
3answers
2k views
Recovering data points from an image
Unfortunately, some data can only be obtained in picture form (Japanese publications anyone?). Since this cannot be worked with, it has to be converted to a dataset that can; I was wondering whether ...
24
votes
5answers
1k views
Filling a polygon with a pattern of insets
I am trying to fill a shape with diagonal lines. I am aware of Texture, but it rasterizes the fill pattern, which is not desirable. Here was my crack at it:
...
21
votes
3answers
2k views
ListPlot with each point a different color and a legend bar
I would like to generate a ListPlot with the color for each point in the plot corresponding to a particular value (not associated with the position in the plot). I'd then like to add a legend ...
49
votes
8answers
11k views
How to make an inkblot?
How to effectively create a polygon that looks like a realistic inkblot? So far, I could come up with this (borrowing from Ed Pegg Jr.'s Rorschach demonstration):
...
29
votes
1answer
646 views
How can all those tiny polygons generated by RegionPlot be joined into a single FilledCurve?
RegionPlot will usually generate a large number of tiny polygons for filling the region:
...
6
votes
2answers
437 views
Create complicated text formulas in graphics
I want to put somewhat complicated, or at least non-standardly formatted, text on some of my graphics. For example, I'd like to be able to use f^[4](x) (where the ...
5
votes
3answers
278 views
Retrieving the ImagePadding in absolute units
Consider the following graphic:
g = Graphics[Circle[], Frame -> True, FrameLabel -> {"one", "two"}]
Retrieving the ...
44
votes
5answers
4k views
$\LaTeX$ and Mathematica
I quite often would like to draw graphics in my $\LaTeX$ documents using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems
I would ...
38
votes
1answer
1k views
Implementing a first person view of 3D objects in a scene
I've created the following scene with a Chinese-style building surrounded by trees, and a horse and a rabbit grazing on the grass in Mathematica (don't ask me why there's a bust of Beethoven in ...
18
votes
3answers
2k views
Computing and plotting a spectrogram in Mathematica
How can I compute and plot the spectrogram of a signal/time series/data in Mathematica? I have a WAV file, sampled at 44100 samples/second and I want to generate a spectrogram of that data. Something ...
19
votes
3answers
585 views
16
votes
3answers
505 views
Scale Insetted Characters to Plot
I am trying to place a curly brace within a plot such that the top/bottom of the curly brace line up with two horizontal lines in the plot:
I have not been able to find a way to make the curly ...
18
votes
4answers
944 views
Can 2D and 3D plots be combined so that the 2D plot is the bottom surface of the 3D plot boundary?
I have a ListlinePlot function, that I would like to combine with both a Graphics3D plot and a ...
27
votes
4answers
704 views
48
votes
2answers
2k views
How to manipulate 2D plots?
When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
73
votes
3answers
8k views
How to create word clouds?
Word clouds are rather useless fancy and visually appealing plots, where words are plotted with different sizes according to their frequency in a corpus. Many applications exist out there (Wordle, ...
21
votes
2answers
445 views
Aligning plot axes in a graphics object
I need to align the y-axes in the plots below. I think I'm going to have to do some rasterizing and searching for vertical lines, then vary x and ...
21
votes
3answers
408 views
Consistent Plot Styles across multiple MMA files and data sets
I am starting to write a thesis for which I want to use MMA for all my plotting needs, mostly because a lot of the basic analysis has been done there. To ensure that I am applying styles consistently ...
18
votes
3answers
903 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 ...
18
votes
3answers
697 views
How to make a drop-shadow for Graphics3D objects
What's the best way to make a drop shadow for a 3D object?
image = Graphics3D[Sphere[], Boxed -> False]
I can get a blurry black outline of this:
...
14
votes
2answers
637 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 ...
7
votes
4answers
978 views
Coloring Points in a List Plot [duplicate]
Possible Duplicate:
ListPlot with each point a different color and a legend bar
I want to color the points in a list plot using a function of the (x,y) values.
I tried this (example with ...
16
votes
1answer
445 views
Transparent textures don't show
EDIT For now, I'm going to accept Brett's answer. It's a way to get transparency back by having 3D calculations done in software
instead of hardware. It addresses the symptoms but not the ...
6
votes
2answers
302 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
...
25
votes
5answers
2k views
How can I extract data points from a black and white image?
Consider the following graph (source):
Is there any way to extract the data points from this image in a semi-automatic way? I have seen, and tried the methods suggested in this question, but they ...
8
votes
3answers
1k views
How to export large graphics?
I'm using Raster to create large graphics (1000 by 1666), which I want to Export as a JPEG or TIFF in a resolution that can be printed in a large size, 3' by 5'. ...
20
votes
2answers
493 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
3answers
723 views
Generating graphs interactively (GUI)
I want to create graphs interactively using a GUI. I thought of using a ClickPane[] environment. The code I have (in part borrowed from the Documentation) works ...
11
votes
3answers
1k views
15
votes
5answers
1k views
How do I plot a plane EM wave?
I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not "shade" the area between the graph and the axes. Both the ...
14
votes
4answers
851 views
Plotting several functions
I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both 'axes', more like ...
13
votes
4answers
926 views
How to draw Fractal images of iteration functions on the Riemann sphere?
Prof. McClure, in the work "M. McClure, Newton's method for complex polynomials. A preprint version of a “Mathematical graphics” column from Mathematica in Education and Research, pp. 1–15 (2006)", ...
15
votes
5answers
2k views
Flipping axis on a plot
I want to make a 2D plot where the x-axis is flipped so the higher numbers are on the right and lower numbers are on the left.
I've managed to do it by flipping the data and making new ...
14
votes
3answers
799 views
How can I ensure graphics exported in WMF format don't have text-spacing problems?
A lot of my work involves manipulating data, drawing a pretty plot of it and then inserting that graphic into a report written in Microsoft Word, under Windows.1 The fun comes with the exporting part. ...
13
votes
2answers
469 views
Computing the bounding boxes for Text objects
Regardless of AspectRatio, the Text boxes overlap.
...
8
votes
1answer
352 views
What is the best way to clip a graphic to a region?
What is the best way to clip a graphic to a certain region?
Here's a very simple implementation to show what I mean:
...
6
votes
4answers
416 views
Export Graphics[] without white edges
I am trying to generate & Export[] Image with the below code, but as shown in the images I get some white border around my rectangle.
How could I export an images that stopes right at the edge of ...
8
votes
1answer
352 views
Antialiasing option behaves weird (polygon edges visible in ContourPlot)
When I set the Antialiasing option in Style, I get the followings:
...
6
votes
2answers
273 views
How to insert guide-lines in graphics without specifying range?
Is it possible to insert guide lines in Graphics - for example a horizontal line through y=0 coordinate without specifying the range of the line?
Originally I assumed Infinity might do the trick:
...
34
votes
5answers
1k views
Creating ghost trail effects
Does anyone know how to create a ghost trail effect? For a simple example look at this screenshot:
You can find the actual animation here. What I would ultimately like to see it happen is to make ...
30
votes
5answers
914 views
Rotating an image along a Möbius strip?
I am trying to make a GIF which will be a rotating Möbius strip, with some text printed along its (one!) side. I am trying to (obviously) do this in Mathematica.
After some diligent searching and a ...
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 ...
22
votes
1answer
547 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 ...

