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 ...
30
votes
5answers
939 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
564 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 ...
23
votes
5answers
762 views
How can I wrap text around a circle?
How can I wrap text around a circle?
For example: the text in the sectors of this chord plot.
Perhaps one could use FilledCurve[] and then apply a ...
22
votes
3answers
756 views
Extract current viewing parameters from a 3D view?
Is there a way to find out the current viewing parameters of a 3D view? What often happens is that I create a view, for example:
...
23
votes
1answer
236 views
Is there a way to access the (lexically) current colour inside Graphics?
Note that this is not a duplicate of the question over there. That one asks for a given point, while I'm asking about the lexical structure (which, of course, is not directly related to any point in ...
17
votes
3answers
737 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 ...
17
votes
2answers
424 views
Movable text on a curve
Having an arbitrary curve defined as InterpolatingFunction, what is the best way to place a text on this curve? The text generally has two rows, for example: ...
19
votes
2answers
312 views
Undocumented form for FilledCurve[]
New in Mathematica 8 is FilledCurve (and its cousin JoinedCurve). The docs state that this function can take a list of segments ...
16
votes
4answers
321 views
How can I specify the arrowhead size in printers points?
Is there any way to specify the size of an arrowhead in printer's points? I'm looking for something that would have similar functionality to AbsolutePointSize, ...
14
votes
2answers
1k views
How to save plots in grayscale
As sophomoric as this question seems, how should I save plots in grayscale in Mathematica?
I generally like eps images for their scalability and I use ghostscript or other third party perl scripts ...
14
votes
3answers
360 views
Memory Leak in Frontend - anyone know a workaround?
When using Rasterize on a Graphics expression composed of many differently coloured Graphics objects memory is allocated in the frontend which is then not released or reused when a similar graphic ...
13
votes
2answers
444 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 ...
12
votes
4answers
1k views
ListPlot with plotmarkers determined by point
I am trying to build on a simple example here:
td = Prime[Range[25]]
dsk = Graphics[{Blue, Disk[]}]
ListPlot[td, PlotMarkers -> {dsk, 0.7}]
How can I make ...
11
votes
4answers
675 views
Real Size Image Printing
I am generating a complicated graphics with Mathematica, but with objects of given sizes (e.g. a line of length 1 inch, between two points). I want to make sure that when I export the graphics, e.g. ...
9
votes
1answer
194 views
Dimensions of the results of Text[] within Graphics[]
Is there a way to get the dimensions that the results of a Text[] will occupy within a Graphics[]? Specifically, if I run ...
12
votes
2answers
297 views
Anti-aliasing with the multiple-object form of Polygon?
Observe:
rand = RandomReal[1, {4, 3, 2}];
Graphics @ Polygon @ rand
Graphics[Polygon /@ rand]
I am losing ...
11
votes
3answers
286 views
Undocumented syntax of FilledCurve [duplicate]
Possible Duplicate:
Undocumented form for FilledCurve[]
A nice trick to get the outline paths of letters is to use the PDF exporter/importer
...
6
votes
2answers
346 views
How To interactively create a Polygon in a Graphic?
Background: suppose I start with the following (working) snippet.
Manipulate[Graphics[Line[{{0, 0}, p}], PlotRange -> 2], {{p, {1, 1}}, Locator}]
Ideally, I ...
3
votes
2answers
180 views
ListContourPlot interpolation screws up on concave set of data
I want to create ListContourPlots for sets of Data (from a physics simulation) given as Triplets {x, y, f(x, y)}. Certain parameter regions in the x-y-plane are ...
10
votes
3answers
324 views
Non-geometric transformation of Graphics3D primitives
I want to apply non-geometric transformations to polygons etc, the goal is to have a Manipulate objects that behaves like that famous möbius transform video.
Since ...
10
votes
4answers
418 views
Coloring Points in a Plot, based on their position in the list
Before I describe the question, I'd like to say that I've seen the excellent answers posted here but have not managed to get them to work for my own data.
I have a list of values that I would like to ...
7
votes
4answers
410 views
How to combine ArrayPlots?
Define:
fat = ArrayPlot[RandomReal[1, {20, 10}], ColorFunction->"Rainbow"];
skinny = ArrayPlot[RandomReal[1, {20, 1}], ColorFunction->"Rainbow"];
What ...
6
votes
2answers
281 views
Rectangle with rounded edges
Inspired from :
Fit an image within a Rectangle [] in Graphics
I would like now to fit an image within a Rectangle[] with rounded edges as shown in the example below :
Is it possible ?
5
votes
1answer
101 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 ...
3
votes
2answers
186 views
Rules governing Plot line generation
I was looking at the Documentation Center for Round, Ceiling and Floor when I noticed that ...
24
votes
2answers
878 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++, ...
24
votes
5answers
724 views
Create magnified call-out loupe effect on image
I'm trying to create a Mathematica Manipulate that generates a graphical call-out using a 'loupe'-style or magnifying glass enlarger - a possible solution is shown ...
21
votes
5answers
889 views
Extruding along a path
I'm trying to render a 3D image of a path by extruding a circular cross-section along the path, creating a "snake-like" path.
Here is an image I found to illustrate:
I can't seem to figure out if ...
9
votes
4answers
648 views
20
votes
3answers
792 views
How to extrude a 3D image from a binary 2D image
I'm trying to extrude a nice 3D form from the 2D binary image below using the code posted, but I haven't had any luck in figuring out the error that's keeping ...
10
votes
3answers
2k views
How to convert a 2D image into a 3D graphics?
I have an image I would like to make into a .dxf and to do this I need a Graphics3D object. Is there anyway I can do this?
Can ...
8
votes
4answers
501 views
Plot a 2D vector path onto a surface
In my calculus 3 course, we're studying gradients and have a project that takes a combination of 3D Gaussian radial surfaces and a basic parametric path $r(t) = \{x(t),y(t)\}$ to see how the gradient ...
28
votes
8answers
1k views
Animating mathematica.se logo
As we all know our site's logo was completely generated by Mathematica. I suppose it is quite natural to make the next step -- to generate the animated version of this logo. There's a lot of space for ...
19
votes
1answer
1k views
Autorotating 3D plots
These days, I have to produce quite a few 3D surface plots (mostly functions of the type $\rho(\theta,\phi)$ plotted with SphericalPlot3D). To exchange these ...
15
votes
2answers
456 views
How can I pack circles of different sizes into a spiral?
Given a list of circles of different areas, I need to arrange them tangentially in order of increasing area and spiraling outward. An example of the type of packing I'm attempting is shown by the ...
15
votes
4answers
728 views
Subplots with connector lines
I am looking for advice from people who have more experience in this area on what is the best (simplest, least effort) way to create a graphic like the following:
This is a rough mockup made in a ...
14
votes
3answers
479 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 ...
18
votes
2answers
579 views
How can I customize arrowhead shape to match common LaTeX styles?
How do I control the shape of my arrow heads? LaTeX's TikZ package has a wide variety of predefined arrowhead styles, some of which I'd like to try to match for Mathematica figures I'm importing into ...
17
votes
3answers
2k views
14
votes
3answers
593 views
On coloring the faces of a surface differently with parameter-dependent colors
Old versions of Mathematica ($VersionNumber < 6) supported a particular syntax of ParametricPlot3D[] that allowed for ...
20
votes
1answer
352 views
Convert Graphics3D containing BSpline to polygon primitives for export to 3DS?
Graphics3D[] objects created with BSpline functions will not export to 3DS format, which only supports the more basic primitives. Is there any straightforward way ...
20
votes
1answer
367 views
Is there an equivalent of FullGraphics for Graphics3D?
For 2D graphics, there exists the function FullGraphics to turn the stuff Mathematica generates automatically on Graphics (like ...
17
votes
4answers
518 views
How can I replace bi-directional DirectedEdge pairs in a Graph with a single UndirectedEdge?
The Cayley graphs produced by Mathematica 8.0's CayleyGraph function represent actions that are their own inverses in an unconventional way: rather than using a ...
16
votes
6answers
2k views
Using ListPointPlot3D to simulate 2D plots moving in time
I wrote a 1D solver for the heat equation $u_t=u_{xx}$, and I can animate the solution using normal ListPlot command, where the x-axis is the rod length, and the ...
8
votes
5answers
318 views
can the color in MeshStyle be specified by a ColorFunction, such as “SunsetColors” for example. If so, what is the correct syntax?
This is an example given in Help:
Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, MeshStyle -> Gray]
Could this be changed to something like
...
18
votes
4answers
733 views
Morphing Graphics, color and location
I would like to make a small animation :
1-We start with a random distribution of gray points :
...
16
votes
3answers
683 views
Finding the centroid of a disk in an image
I got about 100 images of the sun and have to find the centre of the star in the images. I have binarized the images and used ComponentMeasurementsto find the ...
16
votes
2answers
345 views
Ad hoc graphics primitives-like objects
Sphere is one of the three-dimensional graphics primitives available in Mathematica and can be easily used to created very useful images. For instance, in the ...
9
votes
2answers
218 views
How can I prevent ColorFunction from disabling antialiasing in graphics?
When I use ColorFunction, the appearance of my plots is ruined, changing from this
which has the normal smooth lines and antialiased fonts, to this
in which ...




