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 ...
9
votes
2answers
166 views
Encoding format used by GraphicsData?
I am trying to extract some graphics stored in PICT format from a Mathematica notebook, using a platform that doesn't support PICT. If I look at the .nb file in a ...
9
votes
1answer
259 views
Graph stories, 3-d volumes
I saw a lesson plan that had students filling different shaped bottles at a constant rate. The idea was to graph height vs. time to show the students how different shapes would produce different ...
8
votes
4answers
314 views
Showing a rectangular plot on an almost-closed sphere
I am currently teaching some students about the "point at infinity", and how it allows us to treat circles and lines as "the same", etc. I would like to kind of show this happening with a series of ...
8
votes
2answers
210 views
Transition between graphs
I want to visually demonstrate the manipulations made to a graph. For instance, I have a graph g where using the command ...
7
votes
2answers
277 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:
...
5
votes
1answer
145 views
Crash when displaying / rasterizing graphics with textures at high resolutions
CAUTION/Disclaimer: execution of some of the code below can result in a complete crash of Mathematica or even your system. Save all your work and do not try in a productive situation.
For a graphical ...
5
votes
1answer
104 views
How to make MousePosition more reliable
This takes a little patience to reproduce, but I got a screenshot of it in version 9 on Mac OS X 10.7.5:
With a small Graphics object, it occasionally happens that ...
3
votes
1answer
166 views
Exporting a Video of a Simulation of Pendulum Motion
In a series of previous questions, I asked how to solve a series of differential equations describing a series of coupled pendulums, and then how to plot this data by coloring the different pendulums. ...
2
votes
2answers
178 views
How can Magnify be forced to ignore the notebook's window width?
In a new notebook, I can illustrate how the action of Magnify is cut off by the window width:
...
13
votes
6answers
957 views
Visualize Pascal's triangle and other triangle shaped lists
How can Pascal's triangle be visualised like this in Mathematica?
Or more generally, how can a 'triangular' list like
{{1},{1, 1}, {1, 2, 1}}
be visualized in ...
12
votes
2answers
371 views
How to translate interactive graphics from Mathematica to standard HTML+SVG?
I have a simple interactive plot in Mathematica, with controls for various parameters. The point the plot is simply that, by manipulating these controls users can explore how the plot changes as the ...
12
votes
4answers
594 views
How can I extract the maximum value from a Histogram?
In Mathematica 8.04 I've created a histogram of returns on a stock using:
...
11
votes
2answers
321 views
How can I highlight a moving bar in an animation of a bar chart?
I wrote the following code, but I don't know how to highlight the moving bar.
...
10
votes
1answer
158 views
Can a LatticeData image be displayed in a space filled fashion
I'd like a FaceCenteredCubic image as in the in LatticeData
docs, but space packed, and cropped on all the boundaries, so that it illustrates the geometry of the calculation that leads to the ...
10
votes
2answers
552 views
Labels and tickmarks inside Frame
Is there a way to force Plot and related functions to place the tick labels inside, rather than outside a frame? For example, consider,
...
10
votes
6answers
853 views
2D Gaussian distribution of squares coordinates
I would like to imitate the structure of this great painting from Ellsworth Kelly in Mathematica. Yet with all the colored squares in Black and the beige one in white.
Below is what I have wrote to ...
9
votes
3answers
576 views
Adapt ticks in plot and font in legend
Some of my 2-dimensional data are displayed with a code similar to this:
...
8
votes
2answers
208 views
Is there a “GrabHand” and “OpenHand” MouseAppearance in Mathematica?
MouseAppearance[Plot[Sin[x], {x, 0, 5}], "LinkHand"]
Unfortunately I cannot get a screen grab to show the link hand but it is a cartoon hand with a finger ...
8
votes
2answers
5k views
Generate a Unit Circle Trigonometry
Struggling often with Trigonometry I would like to have some code to generate this Unit Circle Trigonometry. Would be of great help when I need to transform some data :
7
votes
1answer
147 views
Changing default ImageSize in the frontend?
I would like graphs to appear somewhat larger in my notebooks (running v8.0.4 on OSX 10.8.2).
Naturally I can specify ImageSize in each individual plot, or drag ...
6
votes
2answers
335 views
Preventing label crowding in PieChart RadialCallout and RadialCenter
Is it possible to avoid this unreadable situation with label crowding when using PieChart's RadialCallout and ...
6
votes
2answers
141 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 ...
6
votes
1answer
253 views
Way to find color at a point in a Graphics?
I need to figure out a way to find out the RGB color value at a certain coordinate in a Graphics object. The Graphics object I am dealing with is continually Dynamically updated, so it is made of ...
5
votes
1answer
206 views
How to get full-screen graphics canvas?
Is it possible to create a full-screen graphics without any front end elements like cell brackets and scrollbars? The zero approximation can be
...
5
votes
1answer
172 views
5
votes
1answer
128 views
How can I restore context menu functionality to a Manipulate that contains Locators?
Before adding a Locator to a Manipulate, I can easily print or export the result using a context menu:
But after adding a ...
5
votes
2answers
239 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.
...
4
votes
1answer
195 views
Drawing a graph with specified edge lengths
I was wondering if it was possible to ask Mathematica to draw a graph provided some set of vertices: $(v_1, ..., v_N) \in V$ connected by $M$ edges $(e_1, ..., e_M) \in E$, where the length of each ...
3
votes
2answers
194 views
Triangle mapped on a sphere in $\mathbb R^3$?
How can I map a triangle on an sphere? I want to visualize (plot or animate) it for my student in my Non Euclidean geometry. I have no restrictions on the triangle's kind or on the sphere in $\mathbb ...
3
votes
2answers
250 views
X label in GraphicsColumn is cut off
I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example,
...
2
votes
1answer
101 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. ...
2
votes
1answer
1k views
Mathematica code for Bifurcation Diagram
At the moment I am trying to construct a bifurcation diagram of the iterative function $f(x)=$ $ax-1.1975x^3$. I've scoured the internet for pre-made bifurcation diagrams and found many (mostly of the ...
2
votes
1answer
175 views
PDF exports of ArrayPlot's are fuzzy (OS X)
[The following problem occurs on OS X; I don't know if it also occurs with other OS's.]
If I produce a Graphics object with ...
15
votes
5answers
657 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 ...
14
votes
4answers
369 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 ...
12
votes
4answers
1k views
How do I draw a DensityPlot in polar coordinates?
I am trying to plot $J_m(\chi_{mn} r) \cos(m\phi),$ where $J_m(\chi_{mn}) =0,$ as a DensityPlot in polar coordinates (solution to 2D wave equation in polar ...
12
votes
1answer
216 views
Effects of single-point and multi-point calls of Point on plot range
Several Graphics primitives are listable. For instance, Point accepts lists of coordinates so that multiple calls to Point are ...
11
votes
2answers
212 views
can a ColorFunction have side effects?
Can anyone explain this (to me) odd behavior. If I run this code once (fresh kernel) it works as intended.
...
10
votes
5answers
475 views
How to plot rectangles aligned by their center?
Supose I have a rectangle which area is $x^2$. In some cases I may not know what is the size of each side, for $x=12,$ we have several possibilites:
...
8
votes
1answer
298 views
How to position legends exactly where I want them?
I just noticed another plot legend question today and while user solutions to this, in particular code by @Jens, are IMO better than the built in solutions, exact positioning often still requires some ...
7
votes
1answer
129 views
Antialiasing of horizontal lines
Consider the following graphic:
g = Graphics[{Circle[], Table[Line[{{-1, i}, {1, i}}], {i, -1, 1, 0.2}]}, ImageSize -> 150]
(You may need to look directly ...
7
votes
1answer
1k views
Adding a point to an already existing graphic
This is just a follow-up of this post:
Beginner 2D animation with maths equations
Part of the code is:
...
6
votes
2answers
121 views
Why aren't the locators independently enabled/disabled?
I am wondering why the Enabled setting for the first locator (point1) overrides the Enabled setting for the second locator ...
6
votes
3answers
256 views
Getting all the countries' flags and then using them as chart labels?
What's the code to list all the world's flags?
CountryData["G8", "Flag"]
works to get those particular flags, but what about all the world's flags?
...
6
votes
2answers
245 views
How do I transform a rasterized graphic's coordinates back to its original ListPlot data coordinates?
From this question I successfully made an elliptical fit for my data.
However, when I try and collect the datapoints within the ellipse via this question the coordinates of my ellipse correspond to an ...
6
votes
3answers
318 views
How to rotate TickMarks in DateListPlot?
Is there a way to rotate TickMarks in DateListPlot to avoid overlap, eg:
Part of the code used to generate this is:
...
6
votes
1answer
131 views
6
votes
2answers
546 views
Animating a rotating disk
I have a system with 3 degrees of freedom that I want to know if it is possible to visualise with Mathematica in the two-dimensional $X-Y$ plane. I have a plane ...
6
votes
2answers
267 views
Generate Random Text within a Rectangle
I would like to generate images such as the four below.
That is: some text of different length fit within a Rectangle[] using ...
5
votes
4answers
238 views
data visualization on a lattice grid
Is it possible to visualize an array whose elements are angles as actual angles on a lattice grid? E.g., say, if the input is:
...



