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

4
votes
0answers
113 views

Delete duplicates by a criterion

The description This question came from my recent work. I achieved four groups points by data processing and then visualized them with Mathematica (shown as below) And I know that ...
2
votes
1answer
102 views

Export collection of plots to A4 pdf

Sometimes I want to Export a collection of plots or other Graphics to a pdf in A4 format. Right now I'm using a GraphicsGrid inside a panel which is an inset in a Graphics object. Here is an example: ...
6
votes
1answer
38 views

Setting an image as the background of a GeoGraphics image

It's easy to set the background of a GeoGraphics image to black, e.g., ...
6
votes
0answers
261 views

How to restrict the mouse cursor to stay within a box?

I'm trying to use Mathematica to write small games, and I find that it would help to restrict the player's mouse into the game window (just like other games do). Is there any way to achieve this? ...
6
votes
0answers
72 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

Fixed in 10.1 The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added ...
1
vote
1answer
39 views

InfiniteLine Woes [on hold]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
0
votes
0answers
30 views

How to draw a revolute joint and Prismatic joint? [on hold]

and I want to add a bar on the surface of the blue cubiod so that I can move the joint with the bar. Also it's best to add a function code(a code to describe how it moves)
2
votes
0answers
48 views

How can I fit the parameters describing a given 3D object such that its projected shape best matches the silhouette observed from a given location?

[I'm reposing my previous question to make it clearer]. I have data which are the longitudes (l) and latitudes (b) for the vertices of the edges of a shape as it appears to an observer at a given ...
0
votes
0answers
16 views

How to calculate whether a ray intersects an arbitrarily oriented bounding box? [migrated]

The bounding box is not axis-aligned. It can be rotated. I now have the origin of the ray, and direction and each coordinate of the eight vertices of the bounding box. what can I do to find out this ...
1
vote
0answers
45 views

Fitting NURBS surface from point clouds

I'd like to build a large surface with many knots using BSplineSurface to play with Mathematica's parallel computing capabilities. The questions are where can I ...
5
votes
2answers
138 views

What does the AspectRatio option actually do?

The Documentation for AspectRatio on its first line under the "Details" section states: "AspectRatio determines the scaling for ...
4
votes
1answer
99 views

AspectRatio option works unpredictably?

Let us examine the agreement between specified value for the AspectRatio option and the actual aspect ratio of generated plot. For this purpose I define a function ...
5
votes
3answers
182 views
2
votes
1answer
100 views

Coloring points via “TemperatureMap” [duplicate]

I have a collection of 3D points, and each is associated with a real number in [0,1]. A typical element looks like {{x,y,z},c} where ...
0
votes
2answers
131 views

Projection of triangles onto a sphere

I am trying to find the solid angle taken up by a large set of triangles around a central point. I have normalized the vertices of the triangles to a unit sphere around the central point, But the ...
2
votes
1answer
44 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
2
votes
0answers
27 views

Simultaneous projections ViewPoint

I have static projections and have to switch between them to change the view. Is it possible to display projections obtained with ViewPoint on the corresponding ...
9
votes
2answers
128 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
9
votes
0answers
156 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.1 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...
45
votes
1answer
2k 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 ...
10
votes
0answers
127 views

Is FullGraphics an abandoned function? Is there an alternative?

FullGraphics hasn't worked entirely for a long time and the situation appears to be getting worse instead of better. In Mathematica 10.0 and 10.1 a simple usage ...
5
votes
3answers
153 views

Constructing a grid from a matrix

I would like to construct a grid from a matrix. For example, one possible matrix is $M1$. $$M1= \begin{pmatrix} c2 & a1 & a1 & a1 & a1 & a1\\ a2 & b1 & c2 & a1 & ...
19
votes
2answers
1k views

Generating convex polyhedron from face planes?

Suppose I have lists of normals and points for planes. There's a convex polyhedron whose faces lie on these planes and are bounded by plane intersections. What would be the easiest way to produce an ...
13
votes
4answers
3k 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 ...
8
votes
4answers
832 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: ...
9
votes
2answers
148 views

The envelope of a set of translated and rotated ellipses

I achieve a dynamic graphics by using Manipulate as follows: ...
7
votes
1answer
236 views

Anti-aliasing not working in Mathematica 10 and Linux

This issue appears to be fixed in version 10.1 While this works fine in version 9, in version 10.0 the Antialiasing setting has no visible effect any more I'm here on Ubuntu 12.04 64-bit ...
12
votes
2answers
942 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.1.0 or later When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing ...
4
votes
2answers
575 views

Triangle mapped on a sphere in $\mathbb R^3$?

How can I map a triangle on a sphere? I want to visualize (plot or animate) it for my student in Non-Euclidean geometry. I have no restrictions on the triangle's kind or on the sphere in $\mathbb ...
1
vote
0answers
58 views

Do not like quality of graphics when exported by Mathematica 9

I have been using Mathematica 9 to generate images of fractals for some time, and I noticed an uncomfortable phenomenon when I export the fractal image into a PDF. The lines get thick so that the ...
8
votes
3answers
226 views

Graphics in Notebook Different from Graphics Expression?

Consider the expression TreeForm[a+b^2+c^3+d] which displays as This is a nice Graphics object, as I can prove by typing ...
2
votes
2answers
98 views

Bug: Export sometimes adds unwanted background to PDF files

Update: WRI confirmed that this is a known issue with Export on 2015-05-14. I am trying to export the outputs of some Plot expressions as PDF files for inclusion ...
0
votes
1answer
25 views

Dimension of plotting window vs PlotRange [duplicate]

For example, let's say I'm plotting this function, Plot[x, {x,-3,2}]. From the answer to this question the plot range is ...
3
votes
2answers
87 views

Adding dynamic graphics to an animation

I'm making this demonstration that draws a parametric plot of the unit circle, while at the same time has two plots off to the side that draw the sine and cosine curves. I have this made up as an ...
1
vote
1answer
40 views

How to transform ListPlot ticks

I am sure that this is a standard question, but I have not been able to find it, either by a google search or by searching here on the Mathematica StackExchange. If I have a list plot defined by: ...
4
votes
1answer
62 views

Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
1
vote
0answers
92 views

How do I find the edge of a 3D surface as it appears to an observer at a given location?

I have data which are the longitudes and latitudes for the vertices of the edges of a shape as it appears to an observer at a given location. I have some general idea what the original 3D shape is (a ...
3
votes
0answers
91 views

Minimalistic code challenge on Apollonian gaskets

I've been recently fascinated by the beauty, symmetry and mathematical richness of the Apollonian gaskets. So I felt myself challenged to see if it was possible to generate one in Mathematica with ...
0
votes
1answer
165 views

Performance Issue When Using Manipulate

Any help would be appreciated! I've been attempting to manipulate the graphics for time t. We need to have Di set to 11.2, however when it is set to any value greater than .1, we see a great deal of ...
0
votes
0answers
43 views

Distorted plot when I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2 together [duplicate]

When I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2] together,the z axis doesn't have ...
4
votes
1answer
93 views

Arrowheads not quite working as expected

I apologize if this question already has an answer, but my search has yielded no results, and I can't seem to figure out what's wrong with my code, so I thought I'd ask here. I'm using Mathematica 10: ...
2
votes
2answers
67 views

Locator and manipulate

How can I achieve that the points on a Graphics element could be manipulated both by Locators (clicking and moving) and on the Manipulate panel as well. As you can see, only one of the methods work. ...
0
votes
3answers
323 views

Visualizing data on a world map - flexible record format

I have a list of members of a team, and I want to create a visualization on a world map. I want to plot them on a map, to see some clustering. The fields are: ...
2
votes
2answers
58 views

How do I execute a block of code multiple times? [closed]

Rudimentary pseudoconceptial question: I have a specific block of code that uses random variables and generates a plot at the end based on random code. I want my code to run 10 different times to get ...
1
vote
0answers
57 views

Graphics primitives - graphic design in _Mathematica_

I noticed this question in Graphic Design SE. I wondered whether it was possible / any easier in Mathematica? Image reporoduced below:
3
votes
1answer
55 views

Interactive graphics without creating a new cell

A simple graphics command creates a red circle and a blue square: Graphics[{Red, Disk[{0, 0}, 0.5], Blue, Rectangle[]}] I can "close this up" by double ...
13
votes
3answers
1k views

Font sizes in graphics

I'm trying to find an explanation for the different sizes I'm seeing for fonts added to graphics in different ways, and haven't yet located an easy to understand explanation. Here's a minimal ...
2
votes
1answer
47 views

Import EPS and use as symbol

Is it possible to import a vector file & use as a symbol / plotmarker? I tried importing an EPS from Illustrator & assigning a name to it, but it failed. I would really like to be able to use ...