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

8
votes
2answers
105 views

Control of individual Framed edges?

Is there an option or method for Framed analogous to Frame in Graphics to control display of ...
1
vote
1answer
47 views
1
vote
1answer
164 views

Positioning Labeled points in ListPlot gives unexpected results and errors

Original question can be seen in the edit history.... Update A simpler example - same problem. ...
5
votes
1answer
161 views

Background colour of text in graphics [duplicate]

I see this strange behaviour when both the containing cells and the graphics have a non-white background. I set the style of a notebook to "Standard Report" (Format -> Stylesheet) and did this: <...
1
vote
0answers
47 views

Magnify Part of a 3D Graphic [duplicate]

I have a 3D Graphic built, and I want to magnify part of it. I would prefer a circle or ring-shape that can be placed anywhere in front of a 3D graphic that would magnify it. Ultimately, I want to ...
1
vote
1answer
41 views

How to suppress mouse over error messages on graphics

How do I suppress these they are preventing me from getting coordinates. Here is the code to create the graphic if it helps. ...
47
votes
2answers
3k views

An efficient circular arc primitive for Graphics3D

As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment (even in v10.0-v10.4, where ...
0
votes
0answers
22 views
44
votes
5answers
6k views

How can I extract data points from a black and white image?

Consider the following graph (source): Is there any way to extract the data points from this image in a semi-automatic way? I have seen, and tried the methods suggested in this question, but they ...
1
vote
1answer
48 views

How to make an empty plane, and add points on the way

Apologies for the noob question, I'm not very experienced with Mathematica, but I need it for a presentation. What I would like is to make the x-y plane with both coordinates running from say, -5 to ...
1
vote
1answer
77 views

How can I reflect a graphic across a line? [closed]

I would like to make an animation that shows where a graphic (square, circle etc) would be after it is reflected over a line. Thanks
0
votes
1answer
78 views

How can I make a graph that compares two sequences

I have two data sets. I produce the first one from the following code: ...
2
votes
2answers
127 views

How to plot an Eddington-Finkelstein diagram

I need to plot the same thing as what is shown on the third picture of the site below (sorry, I'm unable to poste that picture here) : http://ion.uwinnipeg.ca/~vincent/4500.6-001/Cosmology/...
31
votes
4answers
4k views

How to create this four-dimensional cube animation?

This is a tesseract, a four-dimensional cube, which contains two cubes. Here, each side length of the smaller one is 1, while the side length of the bigger one is 2. How do make I it? I am still ...
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 ...
3
votes
2answers
165 views

Moving a locator based on the movement of another

My problem is: I want two Locators to simulate a vector in the following sense: The first Locator is the base and the second ...
3
votes
2answers
102 views

Hovering over specific coordinates on a picture

I'm working on a small function which can be used so that when the user hovers over certain coordinates in a LocatorPane, these coordinates can be checked against a separate list of coordinates, and ...
1
vote
0answers
58 views

Real, scaled sizes of bubbles in bubblechart [closed]

I'm trying to create a BubbleChart3D with sets of 4 numbers, to see which spheres overlap. ...
17
votes
3answers
518 views

How to compute the boundary of a group of ellipse efficiently?

Update1 I discovered that the bountary of a series of ellipses consists of the following three parts Part (I): the first ellipse's effective black-segment; Part (II): the effective ...
-1
votes
2answers
63 views

How can I get the coordinates of a graphics primitive from a Graphics expression?

For example I have square = Graphics[Polygon[{{0, 0} ,{0, 1}, {1, 1}, {1, 0}}]] What functions can I apply to sqaure to ...
2
votes
4answers
259 views

How to draw a triangle like this one

I have a rectangle of size $x \times n$ and need to draw the line that bisects the corners as percentages of the rectangle. The example plot shows a range from 0% to 100% in 5% increments. Can this ...
7
votes
1answer
145 views

Plot3D producing wrong axis labels

This is some rather perplexing behaviour. If I try to specify labels for the axes of a 3D plot, sometimes they will go completely belly up: ...
51
votes
6answers
6k views

How can this image (optical illusion) be created with Mathematica?

I came across this image the other day: and liked the sensation of it pulsing. I was wondering if anyone would know how to create something similar with Mathematica (without the Pink Floyd Dark ...
26
votes
4answers
4k views
6
votes
2answers
505 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
13
votes
4answers
568 views

Quirk in VertexColors interpolation when displaying Polygon

When using VertexColors, the docs state: The interior of the polygon is colored by interpolating between the colors specified by ...
2
votes
1answer
148 views

Complete and utter nonsense with Overlay and Graphics

I'm trying to simply overlay some text and a scalebar onto an image. I'm getting (what I perceive to be) completely ridiculous results while trying to do this. Here's the code: ...
1
vote
1answer
30 views

Correct range for X-axis in ListLogPlot

There must be a quick solution to this problem: How do you get the correct range for the X-axis. Attached below is the code: ...
-4
votes
1answer
103 views

Small sphere circling at intersection of sphere and sinusoid [closed]

I have an equation for a sphere which is x^2 +y^2 + (z - 1)^2 == 1 and for a sinusoid which is y == Sin[x] with ...
1
vote
0answers
60 views

Using RegionPlot to create letters

I unified several regions in order to create a simple word : ...
1
vote
2answers
204 views

How can I re-create the original Graph object from Graphics object into which that Graph was converted previously?

We can convert a Graph into Graphics very easily like it is shown in this answer. My question is: how to convert a ...
-3
votes
1answer
90 views

Uniformly varied circular motion

How do I get a plot with the results of the angles, speeds and accelerations theta3 e theta4 for each input angle value theta2? Where: R1 = 450, R2 = 125, R3 = 348 and R4 = 215. Initial speed = 25 rad/...
2
votes
2answers
107 views

Change or force plot legend marker symbols

I am wondering if there is a way to force the plot legend symbol for each respective plot. I am currently using a package created by AlexeyPopkov, which corrects the off-centre plot marker issue very ...
3
votes
1answer
106 views

Plotting huge amount of data with non-default colour function

I want to plot a huge amount of binary data (a 2700x2001 matrix, 5402700 points), and for that I am using the Graphics[Raster[]] function. With just that command, ...
0
votes
1answer
52 views

Graphics with grid lines [closed]

With the following example code Graphics[ { Line[{{0, 0}, {6, 6}}] }, ImageSize -> {500, 500}, Frame -> True ] I get: How can I produce grid ...
103
votes
7answers
9k views

Generating visually pleasing circle packs

EDIT: (my conclusion and thank you note) I want to thank you all guys for this unexpected intellectual and artistic journey. Hope you had fun and enjoyed it the same as I did. I would like to ...
1
vote
0answers
27 views

Remove surface from graphic [duplicate]

How to remove surface from the following graphic? I need only Mesh, (black lines). ...
53
votes
7answers
5k views

How to plot Venn diagrams with Mathematica?

How does one plot Venn diagrams with Mathematica? I've searched quite a bit and I've found one source at MathWorld which provides the source code for doing them. But I don't understand this code, can ...
2
votes
1answer
170 views

Vector graphics in Export for Video rendering [duplicate]

I am trying to generate a vector graphics video in Mathematica. I stumbled upon SWF format (PNG are raster images which I'm not interested in). SWF format works fine for me but the axes and the ...
0
votes
1answer
55 views

“Graphics is not a Graphics primitive or directive.” when returning an `Import`ed image for `VertexShapeFunction`

I am trying to use Graph (not GraphPlot) and replace some of the vertices with an image, like so: ...
0
votes
0answers
38 views

Plot markers appear off-centre [duplicate]

Before I start I should mention that this question has been posted in another form here, Point Renderings Slightly Off in Mathematica. However my case is slightly different in that I do not use ...
5
votes
1answer
64 views

Gray boxes around labels in exported image (PDF, JPEG,…)

From time to time, when I export plots with Mathematica, the labels have gray boxes as a rectangular background. I am using Mathematica 10.0.1 for Linux (gentoo) 64bit. Consider this thing I again ...
11
votes
2answers
658 views

Applying non-Affine transforms to 2D polygons with textures

I am trying to create a vanishing point perspective transformation of 2D polygons, for example transforming the red polygon into the blue polygon: ...
2
votes
0answers
50 views

How to export the high resolution animation movie? [closed]

I would like to export high resolution animation Here is the code: ...
2
votes
0answers
44 views

What are the differences among Graphics, Raster, Image, List(ImageData) in Mathematica in terms of Head? [closed]

I do not know the exact conceptions of Graphics,Raster,Image,List(ImageData). I have only dealt with and used them in ...
2
votes
1answer
64 views

How to overlay ListPlot on a ContourPlot with correct range? [closed]

I am trying to superimpose a scatter (Listplot) on a contour plot. If p1 is a contour plot and p2 is a scatter plot imported from some data, how do I plot them on top of each other? I tried Show and ...
1
vote
2answers
131 views

How to plot a lattice (2D or 3D) given a basis

I want a graphical picture of a lattice with basis such as $\{(1,1), (\sqrt{2}, -\sqrt{2})\}$. Does Mathematica already have a pre-made function that finds all linear combinations over $\mathbb{Z}$ ...
0
votes
0answers
47 views

Export animation from mathematica [duplicate]

I am trying to export an animation, but got an error.. The code is very simple, the combine function is a little complex: Export["combin.gif", combine] Here is ...
0
votes
1answer
79 views

Lagrangian for Spring-Pendulum [closed]

I solved a Spring-Pendulum System with NDSolve. I tried to plot a graph with the interpolated data but always returns a message "An improperly formatted directive with head Symbol was encountered." <...