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 ...
11
votes
3answers
1k views
3
votes
0answers
130 views
+50
Caching of Graph Graphics
In this answer, Simon Woods concludes that when you display an expression with head graph more than once, something is getting stored somewhere. I looked into it too and found out this only happens if ...
5
votes
1answer
39 views
Combine absolute and relative (scaled) coordinates
I am using Inset to add an Epilog to a plot. The position of the images (in my case: framed numbers) can be specified as an ...
3
votes
4answers
90 views
7
votes
2answers
129 views
How to draw a contour diagram in Mathematica?
This answer at Math.SE contains a neat contour diagram created using Mathematica:
What Mathematica functions I can use to draw diagrams like this?
2
votes
1answer
62 views
Manipulating plot of random iterated function system fractal
I'm generating the Sierpinski Gasket by implementing a chaos game in mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...
1
vote
0answers
34 views
Unexpected error message from GraphPlot evaluation [closed]
(Running MMA 9 on Mac OSX 10.8.3, MacBook Pro, 16GB RAM)
I am trying to display a graph with GraphPlot. I want a few of the edges to be purple, and the rest red. I figured out a way to do this that I ...
6
votes
1answer
124 views
Does it make sense to ask for the color of a Graphics3D “voxel”?
Say I generate some Graphics3D object, e.g.:
Graphics3D[{Red, Sphere[{0, 0, 0}, 1], Blue, Sphere[{1, 0, 0}, 1]}]
Does it make sense to ask for the color of a ...
-1
votes
1answer
57 views
How to set image DPI? [duplicate]
For publications usually images in TIFF format are required in high resolutions. Where can I change settings for images that are being saved (using RMB click "Save Graphic As..."), so I don't need to ...
35
votes
3answers
11k views
How to create new “person curve”?
Wolfram|Alpha has a whole collection¹ of parametric curves that create images of famous people. To see them, enter WolframAlpha["person curve"] into a Mathematica ...
1
vote
0answers
44 views
Anti-aliasing won't work when there is PlotStyle command
I've found that if there is PlotStyle command in the input, anti-aliasing will not work.
However if the Style code is ...
7
votes
2answers
81 views
How to show wireframes on imported Object / Mesh (.obj file)
I've managed to import a Wavefront (.obj) file and store it in a variable like so:
...
4
votes
2answers
75 views
Graphics3D: the box vertices do not coincide with triangle
I have drawn a triangle using Line graphics primitive and Graphics3D function:
...
4
votes
1answer
51 views
Preventing cell height adjustment when rotating 3D graphics
I have a large dataset of scattered x,y,z coordinates. I am trying to use ListPointPlot3D to identify outliers in 3D. This involves generating a plot and then ...
0
votes
1answer
82 views
TextRecognize with crosses, circles and spaces results into oddities, why?
I am investigating this answer here about detecting crosses and circles with TextRecognize. I tried to solve this problem here by directly using the builtin command TextRecognize but it does not work ...
1
vote
1answer
66 views
How to crop graphics outside PlotRange with Show? [duplicate]
Is there an option or method to prevent Graphics from being displayed outside the PlotRange region?
The problem is illustrated ...
17
votes
3answers
705 views
How to detect crosses and circles in 60x60 raster images?
I have hand-written 60 pixel times 60 pixel squares. I need to detect whether they are empty, x or circle. TextRecognize function fails. Is there some other function to process this kind of raster ...
1
vote
0answers
174 views
Mathematica 9 fails to export graphics by right-click when notebook magnification is changed [closed]
When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing Save Graphic As..., if the notebook magnification is ...
5
votes
1answer
94 views
Exporting twice crashes Mathematica on Ubuntu 12.04 with Unity
I'm trying to work out if it's a Mathematica, Ubuntu or setup specific bug. I've asked some colleagues to try it on other Linuxes.
This also crashes on OS X with Mathematica 8.0 and fails with 9.0, ...
13
votes
4answers
319 views
How to separate paths from the output of EdgeDetect?
I have been trying to find a way to separate the various closed paths that can be output by EdgeDetect. For example, taking the output of:
...
5
votes
1answer
153 views
How to draw some 2D curves in a 3D plot?
I want to plot several 2D curves (Sin[x] at y=0, Cos[x] at ...
9
votes
3answers
250 views
How can I create a 3D FilledCurve object?
FilledCurve can create a 2D graphics object; for example:
...
4
votes
2answers
99 views
Convert Graph to Graphics
In Mathematica 9, a graph is returned as an object with head Graph:
In[8]:= CompleteGraph[8] // Head
Out[8]= Graph
...
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 ...
1
vote
2answers
123 views
How can I get even steps on x and y axes in a plot?
I'm plotting the shortest distance from a point to a line using the following code
...
1
vote
0answers
47 views
Comparing data sets with fade transitions (Code speed-up)
I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
0
votes
1answer
139 views
How do I implement Dynamic Graphics? [closed]
I'm interested in learning to implement graphics like to those shown here
My pendulum c++ code (source & csv's located here) outputs the positions of each mass into separate csv files.
-== My ...
3
votes
2answers
113 views
Why do I get empty graph when adding 'Abs' function?
Can someone be so nice to provide some help for this particular situation? I try to plot a graph of a derivative which contains modulus. Without it the graph is drawn correctly:
But when I wrap the ...
9
votes
2answers
163 views
Drawing Cylindrical Segment with Graphics3D
For a visualization I need a combination of 3 Cylindrical segments to visualize the incident, reflected and refracted beam of light at a surface. I got as far as the following code.
...
5
votes
1answer
173 views
1
vote
1answer
57 views
How can I assign specific colors and sizes to 2D coordinate arrays being plotted with ListLogPlot?
I'd like to plot two sets of coordinates in two different arrays using ListLogPlot, and be able to individually specify the sizes and colors of the datapoints for each array.
Things seem to work ...
5
votes
1answer
98 views
How can I change the size of the plot markers
I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code
...
7
votes
2answers
190 views
Diagonal Tick Marks
I would like to draw diagonal tick marks around a plot, and simultaneously rotate the tick labels as well. I've mocked up what this would look like:
Is there an easy way to do this in Mathematica? ...
2
votes
1answer
111 views
rasterListContourPlot With PlotLegends in Mathematica 9
Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica:
http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html
It works well. ...
8
votes
1answer
161 views
In what situation is the use of Directive required?
Sometimes I see code samples in the document or in this site using Directive, but I haven't yet find a case that Directive is ...
30
votes
5answers
2k views
How can this image (optical illusion) be created with Mathematica?
I came across this image the other day:
and liked the sensation of it pulsing. I was wondering if anyone would know how to create something similar with Mathematica (without the Pink Floyd Dark ...
3
votes
1answer
114 views
Exporting PDF file - incorrect graphic
I export graphics to PDF using:
Export["/path/figure.pdf", plotname]
It gives me more than enough quality for PDFLatex. But somehow, some exported plots have ...
7
votes
3answers
238 views
Generating a “flare” effect in Graphics3D?
I'm attempting to indicate that there is a point-source of light at some position in a Graphics3D-generated image. Is there any built-in tool to do this? My patch-work solution thus far has been to ...
2
votes
1answer
140 views
Isomorphisms for graphs with loops and multiple edges
I am working with graphs with multiple edges and loops, and I want to eliminate all isomorphic graphs from a long list I've generated. The FindGraphIsomorphism ...
1
vote
1answer
75 views
How to insert a zoom inside the main plot
As the title indicates, I want to add inside the main plot (preferably at the lower left part) a zoom. Here is the corresponding Mathematica code:
...
5
votes
1answer
100 views
Is there a way to prevent audio from becoming out of sync with graphics?
The code below could be used to say help Pre-Kindergarten and Kindergarten children learn about the numerals and numbers from one to 9. The problem is that this age group would be prone to just ...
0
votes
3answers
119 views
Finding the common areas of two contourplots
I used ListContourPlot to specify an area for which the function value is less than a number.
For example consider the following areas:
...
0
votes
2answers
162 views
Difference of old Graphics`Graphics3D`ListSurfacePlot3D and the current ListSurfacePlot3D
Consider the following example data which creates the lines of a cylinder
...
1
vote
1answer
99 views
Statistical analysis of data-list with recurring x-values
I have a list of data as follows with repeated x-values:
...
24
votes
2answers
820 views
Mollweide maps in Mathematica
Context
In my field of research, many people use the following package: healpix (for Hierarchical Equal Area isoLatitude Pixelization)
which has been ported to a few different languages (F90, C,C++, ...
0
votes
0answers
94 views
How to compare graphical objects? [closed]
I would like to compare graphical objects composed of basic Euclidean shapes, namely right-triangles. In it's simplest form, I would like all rotations and flips of a single triangle to be considered ...
4
votes
4answers
129 views
Arcs of rotation for angles
How can I draw trigonometric angles of any radian measure associated with the unit circle, complete with the x-axis and y-axis?
How can I draw arcs of rotation inside positive or negative angles?
Is ...
3
votes
2answers
95 views
how to Export raster data as a tiff unmolested
I feel certain there is a simple answere here.. how do I export image data to a tiff without any scaling?
I want to read back in the exact data.
...
1
vote
2answers
199 views
distance between two curves
I try to compute the distance between two curves. I use the EuclideanDistance to do that.
Here my code:
...
3
votes
1answer
60 views
Use NotebookWrite with Graphics?
I am trying to use NotebookWrite to paste a plot into another notebook. The code looks something like:
...







