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 ...
23
votes
5answers
749 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 ...
31
votes
4answers
1k views
Speeding up this fractal-generating code
I used the code below (which is a sample from this gist containing more similar code) in my answer to my own question about Mandelbrot-like sets for functions other than the simple quadratic on ...
22
votes
3answers
708 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
229 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
2answers
409 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: ...
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 ...
19
votes
2answers
303 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 ...
12
votes
3answers
536 views
Removing unwanted appearance of underlying mesh
Let us first define two positive definite matrices:
M1 = {{2, -6}, {4, 8}};
M2 = {{2, 3}, {4, 8}};
then set two points ...
16
votes
4answers
309 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
357 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
423 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
633 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
292 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
283 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
...
3
votes
2answers
173 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
314 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 ...
5
votes
2answers
337 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 ...
10
votes
4answers
394 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 ...
3
votes
2answers
183 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
825 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
709 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
857 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
625 views
8
votes
4answers
436 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 ...
20
votes
3answers
761 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 ...
19
votes
1answer
960 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
443 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
718 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 ...
9
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 ...
18
votes
2answers
559 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 ...
14
votes
3answers
577 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
361 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
506 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
1k 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
304 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
...
20
votes
1answer
340 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 ...
18
votes
4answers
727 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
2answers
340 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
211 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 ...
11
votes
9answers
526 views
How to join each of the spheres? Or, how to make a 3D grid?
Graphics3D[{
{RGBColor[#], Sphere[#, 1/50]} & /@ Tuples[Range[0, 1, 1/5], 3]
}
]
It gives this:
Now I want to get this one:
How? As simple as ...
11
votes
5answers
433 views
How to texturize a Disk/Circle/Rectangle?
The documentation for Texture states that "other filled objects" can be texturized:
Texture[obj] is a graphics directive ...
11
votes
4answers
1k views
How to draw an ellipse arc in 3D?
There is no Circle or Disk object in 3D. I quickly found a way to use Cylinder (thin lines, no faces, very flat):
...
6
votes
2answers
403 views
Fit an image within a Rectangle [] in Graphics
Based on the following Code (yet the white text in the image is added with PPT), I would like to have an image fit within one of the rectangle.
For Example the image from there :
...
4
votes
1answer
298 views
ListPlot3D - How to make the Color depending on a second list
From a simulation (solid state physcis) i obtained a list1={{300,0,0},...} with x values=300,400,...,1500
and y-values=0,0.08,...,20 and z values. I plotted them ...
13
votes
1answer
480 views
Drawing Rotated views while ignoring the Bounding box
I am trying to make an animation of a rotating cube using the following code:
...
10
votes
2answers
535 views
Background image in a polygon / CountryData
Is it possible to use a background image in a polygon without rasterizing the polygon?
I tried with textures, but they seem to be viable only for simple polygons.
I want to put a flag as the ...


