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

6
votes
1answer
183 views

Can you fill in a closed curve?

Imagine I have a have a set of points that form a closed curve (or simply a circle), I normally just list plot these points and join the dots. However, I now have the need to fill in this closed ...
8
votes
2answers
148 views

How can automatic ticks be made “outie”?

By default, FrameTicks stick into the data area in a way that is sometimes uncomfortable. ...
10
votes
2answers
130 views

How does one adjust ColorFunction quality independently of surface quality?

I have a function $f:\mathbb{C}\rightarrow\mathbb{C}$ which I would like to visualize by by plotting $|f|$ with Plot3D using $\operatorname{Arg}f$ as the ...
2
votes
1answer
150 views

Using graphics primitives to draw a cross as inset in graphics

I would like to draw a cross as an inset in a Graphics environment. I tried the following: ...
8
votes
4answers
192 views

How do I place vertical GridLines in front of horizontal ones?

By default horizontal GridLines are placed in front of vertical GridLines: ...
7
votes
0answers
110 views

PlotMarkers doesn't inherit PlotStyle when Graphics[a] isn't a List[]

Could somebody explain, why Circle does not inherit the PlotStyle of the plot when used as ...
6
votes
4answers
454 views

Obtaining better quality in ListPlot

I have a data file which can be downloaded from here. In order to plot this, I use the following Mathematica code ...
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 ...
2
votes
1answer
339 views

intersection between two curves in Mathematica

I have two curves (drawn from points) in a plane, one is drawn with ListLinePlot and the other drawn with ParametricPlot. How ...
0
votes
0answers
97 views

ListPlot and Union related question

This is the question that I got for my assignment: In a square room with 7 m-long sides, five people (black circles) have shot at random people. They all had two bullets and killed two people ...
4
votes
1answer
90 views

How do I avoid the gaps introduced by a frame on a plot?

You can see that there are gaps on all sides of the plot between the frame and the extent of the line that I've plotted. How do I get rid of these? I'd like the frame to cover $[0,1]\times[0,1]$ and ...
10
votes
1answer
159 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 ...
3
votes
1answer
103 views

Loading graphics consumes execution time

I have created a grid, and also made a list of control objects(ex:inputfields, buttons, etc..). Then, I lay the list in my grid. There is no problem. However, the final layout takes a lot of time. I ...
2
votes
1answer
146 views
10
votes
3answers
271 views

Sinusoid modelling

There are lots of great demonstrations that show how to get periodic functions in the unit circle. I'm wondering how hard it would be to simulate a "moving grid" similar to this video on youtube ...
5
votes
3answers
331 views

How can I transpose x and y axis on a Plot?

This question has appeared in various forms online, but I have not yet seen a complete answer, so I am posting it here. More specifically, suppose I have a function ...
5
votes
5answers
230 views
0
votes
1answer
114 views

how to work with list as function parameter

I want to output an arrow based on input from user and I tried writing this small function to achieve this: ...
9
votes
2answers
446 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: ...
0
votes
1answer
51 views

What options control PairedHistogram axes style?

What options control axes style in PairedHistogram? Here's the online doc. I'm trying to control axes color, thickness, and probably font size on the tick marks. but the options are confusing me: ...
4
votes
3answers
170 views

How to align dynamic graphics and an image within an Overlay?

I have dynamic graphics over an image but they won't line up, what am I doing wrong? ...
13
votes
4answers
442 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 ...
12
votes
2answers
376 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 ...
9
votes
0answers
117 views

What is PointForm?

I stumbled across a function called PointForm but the only documentation I can find is the pop-up line offered by autocomplete, which contains the same information ...
4
votes
1answer
197 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 ...
2
votes
1answer
150 views

define the range of Longitude from 0-360 in the World plot from CountryData

How can I change the Longitude range to 0-360 in the such plots? ...
5
votes
1answer
105 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
69 views

In a DynamicModule, is it possible to use multiple EventHandler declarations? [duplicate]

Possible Duplicate: Wrapping EventHandler by Table I am running Mathematica 7. However, I am new to using Dynamic, ...
10
votes
2answers
202 views

How to get the real PlotRange of Graphics with GeometricTransformations in it?

For demonstrating the problem, have a look at the following example, and try adjusting the rotation angle a and/or the Locator ...
0
votes
0answers
96 views

Saving graph as a .ps file without legend

I need to save a graph as an .ps file in Mathematica 9 STUDENT EDITION but at the bottom of the page appears the legend "Printed by Wolfram Mathematica Student Edition" This issue was not present in ...
3
votes
1answer
147 views

Label area on plot

I created the following plot using Mathematica: ...
5
votes
1answer
119 views

FunctionTreeForm

I'd like to implement a function FunctionTreeForm which takes an arbitrary complex function and renders all the captionable subfunctions in a TreeForm. Explanation If we take e.g. a function: ...
-6
votes
2answers
247 views

How can I draw a picture like this? [closed]

How can I draw a picture like the following using Mathematica's graphics primitives?
1
vote
1answer
105 views

Spacer and Text in Graphics going Awry (in Mathematica 7)

Use of a vertical Spacer in justified text inside a graphic isn't working as required. The result in the green box looks right, but when this is placed in a ...
2
votes
1answer
119 views

Why are the elements of plots separated in exported PDFs?

When I export a plot to a PDF with something like Export["test.pdf", Plot[Sin[x], {x, 0, 2 Pi}], "PDF"] I get a file in which the axes have been separated from ...
4
votes
2answers
107 views

How to automate generation of image files?

I need to generate a large number of figures as PNG files, and I'm trying to decide whether Mathematica would be the quickest way to do this. All the figures have the same basic structure, and I'm ...
1
vote
0answers
46 views

Fit text to a path [duplicate]

Possible Duplicate: Movable text on a curve This is a common feature among vector-based graphics suites (e.g. Illustrator), so I was wondering how it could be done in Mathematica. Here's an ...
0
votes
0answers
72 views

How do I plot a plane EM wave in perspective? [duplicate]

Possible Duplicate: How do I plot a plane EM wave? I would like to display an electromagnetic (EM) wave and to display an perspective effect.
35
votes
3answers
11k views

How to create new “person curve”?

Wolfram|Alpha has a whole collection¹ of parametric curves that create images of famous people. To see them, enter WolframAlpha["person curve"] into a Mathematica ...
6
votes
2answers
183 views

Is it possible to induce Mathematica to chop off parts of Graphics objects that exist outside of a Frame?

I am running Mathematica 7. In a Graphics environment I am setting Frame -> True (and using ...
7
votes
1answer
169 views

How can I display a multigraph with different colored edges?

I'm new to Mathematica(version 9) and I'm trying to display a multigraph with different colored edges. Here's my code so far: ...
5
votes
1answer
127 views

Is it possible to render Graphics with more than “Byte” bitdepth?

I wonder is it possible to render Graphics in Mathematica with bitdepth higher than "Byte" which is the maximum bitdepth ...
2
votes
2answers
135 views

Making a movie with specific frame-rate out of ListPlot outputs? [duplicate]

Possible Duplicate: Is it possible to prerender animation in Wolfram Mathematica? Does Mathematica support variable frame rate for any video format, in analogue of GIF-style “DisplayDurations”? ...
6
votes
3answers
415 views

Spreading colors in ListDensityPlot

I want to create a two-dimensional plot using data from an external file. This file contains several triplets of numbers. The first two columns indicate the x and y position, while the third one works ...
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. ...
1
vote
1answer
200 views

Problem with transparency when I export an eps file

I have the following simple Mathematica code: ...
8
votes
4answers
178 views

Order items by closest to the previous

I have a list of 2D points (a table, imagine the data of a parametric plot shuffled) I would like to join the points with a line that starts from one of them and always goes to the closest one. I ...
2
votes
2answers
99 views

Adding a coordinate label to individual squares in ArrayPlot[…]

Can I write text, or add a specific text label to individual squares of an ArrayPlot[...] graphic? Specifically, I would like to assign an two-dimensional integer coordinate label to each square.
1
vote
1answer
106 views

Is there an easy way to specify an arbitrary two-dimensional Polyomino tiling in Mathematica 8.0?

Is there an easy way to generate an arbitrary two-dimensional Polyomino tiling: http://en.wikipedia.org/wiki/Polyomino? Specifically, I would like to generate an array of integer coordinates, for ...
3
votes
1answer
135 views

How can I have an axis label automatically positioned below the X-axis?

I'm attempting to generate some histograms, and I'd like to automatically label the X-axis. However, Histogram[. . ., AxesLabel -> {"X", "Y"}] places the "X" ...

1 2 3 4 5 13