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 ...
46
votes
2answers
41k views
Cutting bagels into linked halves
I recently came across this video: Mathematically correct breakfast, which shows how a bagel can be neatly sliced into two identical linked halves.
I'd like to try this with Mathematica. Here's a ...
3
votes
1answer
297 views
Problem with Volume Rendering Using 3D Texture [closed]
I have been trying Yu-Sung Chang's Mathematica.SE answer on volumetric rendering.
This is what the result should look like.
However, I got a different result.
Could anyone help me find what the ...
8
votes
2answers
427 views
How to calculate mix of 4 colors defined in CIELAB L*a*b* model?
I have 4 colors that I converted from RGB to CIELAB L*a*b* model.
How can I calculate mix of these 4 colors when I have (L,a,b) for each such color?
How can I ...
3
votes
2answers
256 views
X label in GraphicsColumn is cut off
I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example,
...
0
votes
2answers
177 views
DateListPlot FillingStyle problem
In the following query, If the option PlotStyle->{Red,Blue} is inserted it works but FillingStyle->{Red,Blue} does not: ...
16
votes
3answers
640 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 ...
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 ...
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 ...
1
vote
1answer
152 views
How do I slice an image of size “width × height” in n² pieces of size “width / n × height / n”?
Background: What I want is to make a jigsaw from an image. (A simple one where the pieces are polygons.) I have the following strategy in mind. Create a set of polygons and assign images (or just the ...
10
votes
3answers
671 views
Creating a Sierpinski gasket with the missing triangles filled in
I'm creating some questions for my math classes. The one below refers to the Sierpinski gasket.
I found some great demonstrations to create the gasket. So that's good. Solving the problem is ...
5
votes
2answers
177 views
Applying different color to result of a geometric transformation
Background: consider the following two snippets.
...
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 ...
3
votes
1answer
374 views
How to create tournament bracket
I'd like to create a tournament bracket using Mathematica. I've looked around online, but haven't found any examples yet. Can someone show me how to do this? Specifically, I'd like to have a ...
4
votes
2answers
148 views
remove quotes in a combination of a text with graphics in the JournalArticle Style
I have a puzzling and very specific question. It may be of limited interest to community. I apologize in advance in this case. Let us see.
I am making an illustration to a text that I write in the ...
18
votes
2answers
558 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 ...
2
votes
2answers
148 views
Varying plot sizes for identical PlotRanges in ListLinePlot, where one has a legend
I am trying to make some figures using ListLinePlot in Mathematica 8. Although the PlotRanges are the same, the resulting frame sizes are different. The only difference (as I see it) between the two ...
6
votes
1answer
227 views
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 ...
4
votes
2answers
191 views
Color based on (discrete) derivative of function
I am making a very basic stock simulation. I want ListLinePlot to color my stock viewer based on whether the price went up or down from the previous price. Here is ...
8
votes
5answers
302 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
...
5
votes
1answer
667 views
Formatting Ticks and FrameTicks labels with a function
Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added.
As you ...
15
votes
2answers
442 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 ...
6
votes
1answer
2k views
how to make graphic timelines in mathematica
Hi does anyone know how to make timelines with mathematica?
http://images.nationmaster.com/images/motw/atlas_middle_east/turkey_timeline.jpg
something like that would be great! thanks
7
votes
1answer
421 views
How to render a 3D tubular graphics from a 2D image path
Question: Is it possible to create a tubular 3D image like Extruding along a path
using "Tube" function in mathematica for following images?
Image (1)
Image (2)
Thanks
I have been ...
9
votes
3answers
581 views
Adapt ticks in plot and font in legend
Some of my 2-dimensional data are displayed with a code similar to this:
...
4
votes
3answers
245 views
15
votes
5answers
669 views
How can I create a rectangular graphic with curved edges?
I want to make some button shaped graphics that would essentially be a rectangular shape with curved edges. In the example below I have used Polygon rather than ...
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):
...
0
votes
1answer
169 views
Graphics copy paste
Background. I have a function ( stored in a package ) that creates 2D graphic images, its prototype looks like this:
...
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 ...
3
votes
1answer
125 views
Bring Vertices to the foreground
I'm having some issues with being able to trigger the Tooltip in an AdjacencyGraph, as the edges are "covering" the vertex labels.
In the example provided, there are no issues to display the tooltip ...
16
votes
3answers
574 views
Using Inset[..] to overlay a Graphics3D with its raster version
Preamble
First let me explain the why. You can skip this and go directly to the question if want to answer it right away. We had more than one discussion about how to produce nice looking 3d plots ...
1
vote
1answer
114 views
32
votes
0answers
742 views
How to construct a treemap using non-rectangles?
I've written the standard version of a tree map (a graphic that shows nested data) and I'm looking to improve on this layout by switching to different types of polygons or perhaps circles. Can anyone ...
1
vote
1answer
113 views
10
votes
2answers
226 views
ShearingTransform and Dynamic
Background: I have a geometric transformation composed of a RotationTransform, ScalingTransform and ...
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 ...
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 ...
5
votes
2answers
241 views
How to add graphics options to an already produced plot having manipulator?
I am new to Mathematica and stuck with one problem i.e.
How can I add a graphics option to an already made plot which a manipulator to control itself.
...
6
votes
1answer
138 views
LocatorPane and multiple EventHandlers, PassEventsDown option
Consider the following piece of code from Heike as an ( accepted ) answer on LocatorPane, selecting multiple Locators - Basically the code implements dragging polygons on a LocatorPane.
...
2
votes
2answers
280 views
Animating a 3-D arrow given the vector's x, y, and z components as a function of time
I am trying to show how a vector M varies over time. I have the following code:
...
18
votes
3answers
405 views
6
votes
1answer
131 views
2
votes
1answer
125 views
6
votes
2answers
143 views
Control which variables get embedded inside Manipulate
While trying to analyse several different datasets I got what I thought was a good idea: define a "function" that returns a Manipulate object. But this has some ...
8
votes
1answer
232 views
Speed up DensityHistogram rendering (display)
When I tried to present some pre-calculated density histograms inside Manipulate I noticed that the display of DensityHistogram is extremely slow. Here is a simple ...
22
votes
1answer
367 views
On drilling holes with minimal redundancy (and with colors!)
The old Mathematica package Graphics`Shapes` featured the function PerforatePolygons[], which drilled a hole in any ...
30
votes
5answers
912 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 ...
12
votes
4answers
1k views
Graphics plot of point using unfilled circle
I'd like to be able to place points on a plot using Graphics[{Point[{a,b}],....}] but have the plot symbol be an unfilled circle. I've looked around but can't find ...
23
votes
5answers
747 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 ...


