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 ...
3
votes
2answers
313 views
How to add fill color to a 2D Graphics object?
Problem / background: consider the following code snippet.
...
6
votes
2answers
217 views
3
votes
4answers
212 views
What is the most efficient way to save a big graphic?
I want to generate a graphic using
DiscretePlot[primePercent[x], {x, 10^10},
ImageSize -> Full,
Filling -> None,
Joined -> True]
where
...
9
votes
1answer
191 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 ...
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
553 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 ...
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:
...
7
votes
1answer
520 views
Mathematica: Label specific vertices in GraphPlot
How can I label particular vertices in GraphPlot? And have the arrows space out accordingly, for the width of the label?
I have Mathematica 7, but I think this question applies to all versions.
...
44
votes
5answers
4k views
Exporting graphics to PDF - huge file
I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with
...
40
votes
3answers
2k views
Recovering data points from an image
Unfortunately, some data can only be obtained in picture form (Japanese publications anyone?). Since this cannot be worked with, it has to be converted to a dataset that can; I was wondering whether ...
7
votes
2answers
196 views
5
votes
4answers
211 views
4
votes
2answers
143 views
Export a Row or Column as an image
How could I export the following as a single image and set its dimensions ?
...
6
votes
1answer
202 views
How to fix the orientation and scaling of Graphics3D?
To visualize an eigenvector and value calculation I tried to display the eigenvectors (scaled by the eigenvalues) as arrows in a Graphics3D plot using Manipulate. The (symmetric) matrix is a function ...
15
votes
4answers
1k views
How do I draw a triangle given the lengths of the sides?
I know, of course, how to draw a triangle in the plane given the vertices:
Graphics[Polygon[{{1, 0}, {0, Sqrt[3]}, {-1, 0}}]]
But I'm not sure how to simply draw ...
16
votes
7answers
1k views
How do you draw the plane on which two vectors lie?
Given two arbitrary vectors $\textbf{v}_1$ and $\textbf{v}_2$, how can I draw the plane which they span?
14
votes
4answers
845 views
Plotting several functions
I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both 'axes', more like ...
12
votes
3answers
535 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 ...
10
votes
2answers
530 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 ...
21
votes
3answers
2k views
ListPlot with each point a different color and a legend bar
I would like to generate a ListPlot with the color for each point in the plot corresponding to a particular value (not associated with the position in the plot). I'd then like to add a legend ...
3
votes
1answer
191 views
6
votes
2answers
399 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 :
...
6
votes
3answers
299 views
How to get rid of Panel margins?
I have a feeling that there is something wrong in general with Mathematica's way of dealing with margins and spaces among/around objects in Graphics, ...
6
votes
2answers
268 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 ...
6
votes
4answers
412 views
Export Graphics[] without white edges
I am trying to generate & Export[] Image with the below code, but as shown in the images I get some white border around my rectangle.
How could I export an images that stopes right at the edge of ...
5
votes
4answers
255 views
Multiple colors in Graphics[] environment
There are other questions on the site that are similar to this one, but the answers provided didn't help me.
I want to draw disks of different radii. Each radius is the absolute value of a variable, ...
6
votes
2answers
364 views
How to draw multiple coordinates on mathematica?
For example:
How can I draw such kinds of coordinates?
Thank you~
10
votes
6answers
856 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 ...
20
votes
1answer
359 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 ...
15
votes
4answers
544 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 ...
18
votes
3answers
695 views
How to make a drop-shadow for Graphics3D objects
What's the best way to make a drop shadow for a 3D object?
image = Graphics3D[Sphere[], Boxed -> False]
I can get a blurry black outline of this:
...
7
votes
4answers
626 views
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, ...
5
votes
3answers
261 views
Tile image on specific location without space between them [duplicate]
Possible Duplicate:
How to combine images with the same dimensions in a grid?
I would like to arrange images without any space between their edges as each piece is made to connect with ...
44
votes
5answers
4k views
$\LaTeX$ and Mathematica
I quite often would like to draw graphics in my $\LaTeX$ documents using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems
I would ...
7
votes
2answers
275 views
Ideas on how to improve the rendering of the letter B in this 3D region plot?
I have been playing with the RegionPlot3D idea from this question and have been trying
to approximate the Gödel, Escher, Bach logo, but I am a little bit stuck on how to improve the
rendering of the ...
7
votes
1answer
222 views
Using NETLink.MathKernel.Compute() for graphics results fails with GraphPlot[]
I'm using MMA 8.0 to provide backend on a .NET application I'm writing. I am trying to use the high-level Wolfram.NETLink.MathKernel interface to export an image ...
29
votes
1answer
644 views
How can all those tiny polygons generated by RegionPlot be joined into a single FilledCurve?
RegionPlot will usually generate a large number of tiny polygons for filling the region:
...
29
votes
7answers
958 views
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
...
28
votes
6answers
2k views
Intersecting graphics
Does the Mathematica graphics system have any concept of intersecting graphics? I've not found much in the documents so far. For example, if I want to show the intersection of two shapes:
...
16
votes
1answer
364 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, ...
19
votes
1answer
413 views
Visualizing Rubik's Graph
After the August 2010 discovery that the diameter of the Rubik graph is 20, I wanted to make a way to visualize Rubik's graph. Since there are about $4.3 \times 10^{19}$ vertices in this graph, it is ...
5
votes
1answer
117 views
Inconsistent GraphicsRow behaviour
During the debugging of my previous question (somewhat related), I encountered this strange behaviour: when the global option Antialiasing is set to ...
8
votes
1answer
351 views
Antialiasing option behaves weird (polygon edges visible in ContourPlot)
When I set the Antialiasing option in Style, I get the followings:
...
14
votes
3answers
576 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 ...
3
votes
3answers
361 views
Drawing graphics part by part
What I want to do is to draw graphics part by part, because I made a function that generates coordinates according to which I will draw graphics. The problem is that MMA does not operate as I ...
8
votes
3answers
1k views
How to export large graphics?
I'm using Raster to create large graphics (1000 by 1666), which I want to Export as a JPEG or TIFF in a resolution that can be printed in a large size, 3' by 5'. ...
12
votes
4answers
602 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:
...
7
votes
1answer
201 views
Why is the Locator snapping back to the original coordinates? How can I prevent this?
Take the following code:
p = {3, 3};
Graphics[Circle[{5, 5}, 5], Epilog -> Dynamic@Locator[Dynamic[p]],
Axes -> True, GridLines -> {{3}, {3}}]
...