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
2answers
180 views

Extracting ragged array from an image

I have a list of points, which represent positions of peaks in an image. The nature of the image itself shouldn't matter, as I already have the peak positions. As a simple example, consider the ...
3
votes
0answers
93 views

My code does not give the same results on mathematica 9 and 10 [closed]

I have developed last year an algorithm using mathematica 9. In this algorithm, I remember that coordinate system of Image and Graphics are not the same. However, in mathematica 10 the coordinate ...
2
votes
0answers
236 views

How can I create a minimal surface with trefoil knot as inner edge and circle as outer edge?

This minimal surface is the subject of Michael Foster's beautiful wood-turned sculpture "Inversion" (see http://breezyhillturning.com/styled-2/photos-2/index.html). In addition, how can one create 2D ...
0
votes
0answers
40 views

Add a contour plot on the xy plane of a 3D plot [duplicate]

I have this: ...
4
votes
2answers
251 views

Plot with Mathematica

How Can I plot the following figures for the following equations? $x\in\mathbb{R}, f(x) = \frac{\left|\sin(x)\right|}{x^2+x+1}$ $t\in\mathbb{R}, A(t)=\displaystyle\int_t^{t+2\pi}\!\dfrac{|\sin ...
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 ...
9
votes
0answers
158 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 ...
0
votes
0answers
63 views

Break axes on listcontourplot

I would like to insert a break on both of the axes of a ListContourPlot near the origin, to include a datapoint which has axis values quite far away from the others. The question is similar in nature ...
1
vote
1answer
84 views

Coloring vertices according to a function using GraphPlot3D

This question is similar but not identical to a related question called: coloring-vertices-using-graphplot . I need to color the vertices of a graph according to a function, f that is defined on the ...
2
votes
2answers
118 views

How would I rotate a table of Cuboids around the y axis?

Currently I can print out this using Graphics3d: Here's the code: ...
1
vote
2answers
162 views

3D Sphere Plot + Points [closed]

I'm currently trying to create a 3D plot of a sphere along with four points of different colour, using the following code: ...
6
votes
1answer
304 views

How to add texture to a parametric plot?

I need to put some simple textures to some parametric plots. My textures are not complicated, They are like the first example in here. Is there any simple way of doing this? For example, How can I ...
0
votes
0answers
49 views

How to set suitable View* for Graphics3D [duplicate]

My codes and result as following. There is an people object in 2D view. You can move the people object in 2D view, the direction of the arrow is the direction that the people see. You can use the ...
4
votes
3answers
250 views

Drawing two graphics with an arrow in between

I'm trying to draw two graphics object well defined and an arrow in between pointing left to right (symbolizing the mapping between the two). I've tried drawing the arrow first in a graphics object ...
0
votes
1answer
86 views

Remove white space from GraphicsRow

I am trying to remove as much of the white space above and below the following image produced by: ...
0
votes
0answers
30 views

Plotting center of mass point in a solid hemisphere? [duplicate]

I have been trying everything I can find online but I seem to be stuck trying to plot a center of mass point within a solid unit sphere with z >= 0. I have the center of mass point already but I ...
2
votes
1answer
160 views

How can I move a dot along a line? [duplicate]

I have a list of ordered pairs, named bob. They represent locations on a graph. bob = {{8, 5}, {8, 3}, {10, 10}, {9, 8}, {1, 3}, {9, 3}, {5, 3}, {3, 7}} I then ...
3
votes
2answers
128 views

How to change plotting options while using Map

I have multiple series, which I want to plot using ListLinePlot and Map. For example ...
16
votes
3answers
1k views

Drawing a square root spiral

Here is a start, i'm looking for a nice way. ...
3
votes
2answers
167 views

Plot graphs together Using ListPlot

How can I plot two graphs together generated from ListPlot or ListLinePlot command, both t and s have the same number of elements. I thought Show would solve the problem however it does not, it just ...
4
votes
3answers
440 views

How to draw a polygon with hue color like this one (Koch snowflake)?

I know how to construction Koch snowflake ...
2
votes
1answer
234 views

How to control the length of vectors in VectorPlot

I want a slope field for a scalar differential equation. For simplicity I have chosen $dx/dt=rx$, where $r$ is a parameter. I used VectorPlot for the slope field as you can see from the code below. ...
5
votes
3answers
184 views

Drawing a graph with vertex avoiding edges? (Handling vertices that must be colinear?)

I'd like to draw something like the following graph: ...
5
votes
1answer
93 views

In Graphics, a button without action will not work?

A minimal example: Graphics@Button[Disk[]] will yield error message Button is not a Graphics primitive or directive. But if you drop ...
2
votes
3answers
257 views

Calculate pixel intensity in two regions

I am just beginning to learn about image processing. I would like to know 1) How to show an original image with a visible mask of an arbitrary shape? 2) how to calculate the pixel intensities in the ...
6
votes
1answer
143 views

How to share LineLegend among sub-figures in GraphicsGrid?

Using GraphicsGrid, I have put two figures that share the same x-axis in a row. However, I failed to let them share a common ...
2
votes
1answer
78 views

Displaying a list in form of an upside down pyramid graphic

I was wondering how to display a list like this: list={{0,1,1,0},{1,0,1},{1,1},{0}} in form of an upside down pyramid, that is the first element of the list is ...
0
votes
0answers
50 views

Question about treillis structures

I have difficulties finding a command to plot multiple segments connected in nodes in Mathematica. Ultimately, my goal is to modelise something like this by entering nodes coordinates. Also, the ...
0
votes
1answer
67 views

Draw an n-gon with Polytopes package?

Given $n$, I'm interested in generating the vertices of a regular $n$-gon. I noticed that this was possible for certain values of $n$ using the Polytopes package; e.g., via ...
1
vote
0answers
56 views

Align a plot with other rotated plot [duplicate]

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
2
votes
3answers
157 views

How to embed a filled Region in a Graphics?

Let for example: regn = RegionDifference[Rectangle[{-2, -2}, {2, 2}], Disk[{0, 0}, 1]]; The only documented way I found to draw a gereric region ...
2
votes
1answer
145 views

How to make hollow octahedron 3-compound?

I would like to remove facets from a graphic - like on the picture below. Link I tried to combine these two graphics: ...
20
votes
3answers
1k views

Is it possible to draw really thin lines in Mathematica?

I want to have in Mathematica the same result I have in Python: I have this nice effect simply by using very thin lines. But it seems in Mathematica thickness property has some limit and i just got ...
0
votes
0answers
49 views

Trying to rotate a graphic over a field of parallel lines

I have a 10x10 grid of unit squares (picture a partial coordinate grid bounded by (0,0) and (10,10)) given by ...
10
votes
0answers
281 views

Minesweeper beta:How to Dynamic a lot of graphics with high-speed

Recently I want to write a game,Minesweeper.Here is my completed code. ...
0
votes
1answer
65 views

Strange wiggles on the surface of a ParametricPlot3D

I'm trying to plot two cones but when I try to display them, Mathematica (10) makes the edges wiggly. My code is: ...
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 ...
11
votes
2answers
191 views

Weird behaviour when using Scale, Rotate in Graphics

bug persisting through 10.1 (windows) (Edited to simplify drawing) I have a drawing of two tangent circles: ...
1
vote
2answers
103 views

Draw Multiple Polygons Given Their Vertices

Hi I have a very simple question but I haven't been able to find a set answer. How would I draw a bunch of polygons on one graph. The following does not work: ...
2
votes
1answer
115 views

ListPlot with background image?

I need repetitive plots like this below. I invented that I refuse to use pen and I will plot the points in Mathematica, then change opacity, then change contrast and voula get the points to the graph ...
5
votes
1answer
175 views

ListLinePlot of multiple series with data value and legend appearing as the cursor moves over ploted lines

I have multiple series and I am plotting using Mma's ListLinePlot function. But I am trying to implement a feature to my plot so that I can view legend and corresponding values of the series at a ...
0
votes
1answer
68 views

Preventing Colors of Graphics from Blending

I am displaying multiple Disks that overlap and many of the Disks are different colors. Currently, the regions in which the Disks overlap are a color that is a mixture of the two Disks. I would like ...
1
vote
1answer
103 views

Graphic timeline from array

I found this question where someone put some code to graphic a timeline based on a certain number of events. In that code in particular, the events are hard coded one by one, I want to modify it, so ...
2
votes
1answer
94 views

How can I adjust ContourPlot in Mathematica?

I have problem because of the max point and min point, when I have too high or low data point, it just make it white. Here is example of data ...
5
votes
3answers
272 views

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...
1
vote
0answers
49 views

Displaying a matrix as an array of solid rectangular blocks [duplicate]

I would like to plot an array of numbers as a surface, with each number the height of a square, and with the squares connected to adjacent squares with vertical rectangles, up or down as appropriate. ...
5
votes
2answers
313 views

Mapping StreamPlot onto spherical surfaces

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlot can be created easily in 2D, but I would like to visualize the stream ...
1
vote
0answers
60 views

Sizing elements correctly in a DistributionChart with custom ChartElementFunction

This is a follow-up question to Histogram scale error when using DistributionChart; Weird output of DistributionChart is also related. I'd like to make a DistributionChart where the elements are ...
2
votes
1answer
139 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
2
votes
2answers
104 views

Opacity function applied to Graphics Objects

I think this is a stupid/banal question, but I have searched the forum and I haven't find a solution (yet). I need to apply a variable opacity function to a graphics object (say a rectangle). For ...