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 ...

learn more… | top users | synonyms

16
votes
1answer
339 views

Unwanted PlotMarkers appear at non-existent places

Bug introduced in 7.0 or earlier and persisting through 10.2.0 In this simple code ...
16
votes
3answers
1k 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 ...
16
votes
1answer
979 views

How can I share objects with dynamic content with non-Mathematica users?

Often when I construct some cool Manipulate[] function, I would like to share it with others—non-Mathematica users. Some software, notably Cinderella, ...
16
votes
2answers
446 views

Is there a better way to add elements to a Graphics expression repeatedly?

Consider simple example where a set of points is generated and some are displayed. ...
15
votes
3answers
1k views

How can this type of optical illusion be created in Mathematica?

I see these around the web and would like to make them in Mathematica. Combining them in an array is actually quite mesmerizing!
15
votes
3answers
3k 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 ...
15
votes
3answers
3k views

Create triangular mesh from random list of points

I have a list of points. I would like to take these points and create a mesh of triangles from them, making sure triangles don't overlap. So here's a list of points: ...
15
votes
4answers
881 views

How can I create a ColorFunction using Blend?

As shown below, I am trying to find a cool way to show some variance weighted deviation from the mean. There are 10 attributes that I compute the distance for. How can I add a color function such ...
15
votes
4answers
884 views

Exclude data from a list

Let's create some random sample data data = Table[{RandomReal[{-10, 10}], RandomReal[{-10, 10}]}, {i, 1, 300}]; Then we plot them using ...
15
votes
2answers
794 views

Twirl Image Transformation

I am looking to reproduce the functionality of Photoshop's "Twirl" filter, which twists an image that originally looks like this (pulled from this page): Into this: Ideally, I'd like it to ...
15
votes
3answers
2k 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 ...
15
votes
3answers
2k 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 ...
15
votes
1answer
1k views

Solving and Animating Three Body Problem

I am attempting to solve a three-body problem using the Lagrange formalism, with a 1/r potential. I started off by defining T and U (kinetic and potential energy) as follows: ...
15
votes
2answers
2k views

Failure to export graphics by right-click when Notebook magnification is changed

Bug introduced in 9.0.1 or earlier and persisting through 10.4.1 or later When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing ...
15
votes
3answers
2k 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. ...
15
votes
2answers
742 views

Change base font for all graphics objects

How can I change the base font style for all graphics objects, including the ones generated using plotting functions? I would like to change this a single time and have it affect all graphics ...
15
votes
1answer
758 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...
15
votes
1answer
1k views

Drawing Rotated views while ignoring the Bounding box

I am trying to make an animation of a rotating cube using the following code: ...
15
votes
1answer
2k views

How do I flatten transparency on a graphics, for conversion to eps or similar?

I've got a graphic that I'd like to save as an eps file. Trouble is, the graphic has some transparency to it. Since the eps format doesn't handle transparency, I want to flatten the transparency out, ...
15
votes
2answers
1k views

How can I create facetted histograms?

I love Mathematica, and I would love to be able to use it for all of my data analysis tasks, but there is one type of analysis which I find almost trivial in R, and I have no idea how to approach in ...
15
votes
2answers
511 views

How to generate a closed B-spline curve?

I wrote a function called deBoor using the Cox-de Boor algorithm to generate a B-spline curve. ...
15
votes
2answers
311 views

Upon PDF export, edgeless rectangles do not tile perfectly, and corners may be cut. Is this a bug?

Note: this problem is no longer present in version 10. Exporting the following as a PDF file ...
15
votes
1answer
458 views

Why do Arrowheads interfere with ImagePadding?

Bug still present in version 10 under Windows. In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ...
15
votes
2answers
376 views

How to export textures?

Is there any object geometry format for which Mathematica supports the exporting of textures for external (non-Mathematica) use ? If not does anyone know of work arounds? All the texture primitives ...
15
votes
0answers
186 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
14
votes
5answers
565 views

How can I generate and randomly assign color to annular sectors?

How can I generate such an image and fill every annular sector with a random colour?
14
votes
4answers
1k views

What does DisplayFunction->Identity do to graphics functions?

Does DisplayFunction->Identity do anything at all in Mathematica 8? In the third edition of Programming in Mathematica, Roman Maeder gives the following ...
14
votes
4answers
956 views

Generate a certain colorful triangle

I want to get a colorful triangle like this: I hope to get a triangle with any number of layers. This is my current method. Actually, I'm not very content with these graph theory functions, since ...
14
votes
4answers
444 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: ...
14
votes
3answers
2k views

Finding a Concave Hull

I have a 3d clustered data: Is there any other way to get concavehull of 3D data points?
14
votes
4answers
2k views

World plot without borders between countries

I would like to plot the world map without the countries' borders and just the coastlines (in Mathematica 8). I need to overlap a temperature contour plot on the world map. When I plot country data ...
14
votes
4answers
732 views

Is it possible to select outliers on a graph and determine the index of the outliers?

I have a large data set of experimental data for which I have determined a theoretical fit. However, for some of the experimental data I took, there was systematic error, leading to the data deviating ...
14
votes
3answers
933 views

PDF exports of ArrayPlot's are fuzzy (OS X)

This is now fixed in version 10.3. The problem is present up to version 10.2 only. [The following problem occurs on OS X; I don't know if it also occurs with other OS's.] If I produce a ...
14
votes
5answers
2k 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 ...
14
votes
2answers
186 views

Color Blend in BezierCurve

How can I color a BezierCurve from Red into Green just as ...
14
votes
2answers
202 views

How to prevent Dynamic activity with color swatches in V10+

Since version 10, if I type e.g. an RGBColor or simply a named color, a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a ...
14
votes
2answers
339 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
14
votes
1answer
463 views

How can we show the boundary of a WordCloud shape?

WordCloud can arrange the words inside a shape. ...
14
votes
4answers
266 views

Unexpected dots from Line

I have noticed cases where Line produces dots in a graphics object when I think it shouldn't. The first of these is: ...
14
votes
3answers
1k views

How to get 2D graphics into 3D without background?

Consider the following code: ...
14
votes
2answers
693 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? ...
14
votes
2answers
256 views

Why is DiscretizeGraphics missing points on my curve?

I have a graphics expression which renders nicely as a closed curve when put in Graphics, I don't understand why I can't get the lines from DiscretizeGraphics or ...
14
votes
1answer
497 views

How to determine numeric equivalent of Tiny, Small, etc. image sizes for Graphics?

Is there a way to find the numeric equivalents of Tiny, Small, Medium, and ...
14
votes
1answer
531 views

Cropping a Voronoi diagram

Someone know how can I get the correct crop of this Voronoi image using RegionFunction? As you can see, there is a lot of undesired white regions inside the left ...
14
votes
2answers
559 views

Advanced graphics with Mathematica

Ten years ago I bought a book by Tom Wickham-Jones, Mathematica Graphics: Techniques and Applications. I read parts of it but then I forgot its existance. In recent years I read the nice book of ...
14
votes
1answer
373 views

Why does GridLines option fail with Function?

Bug introduced in 10.0.0 and fixed in 10.0.1 The Plot option GridLines can be specified either as a list of explicit values ...
14
votes
0answers
359 views

Minesweeper beta:How to Dynamic a lot of graphics with high-speed

Recently I want to write a game,Minesweeper.Here is my completed code. ...
14
votes
0answers
511 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 ...
13
votes
5answers
862 views

Animate point going around a triangle

How can I animate a point moving on a triangle's sides? I can generate a triangle and point, but I have no idea how to define point movement. I'm guessing that I have to use $\sin$ and $\cos$ in ...
13
votes
2answers
837 views

How can I create a fountain effect?

Inspired by this (please use Chrome or Firefox), I tried to simulate it, but I couldn't do it. I'm not familiar with Dynamic. Here is my simple code: ...