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

1
vote
0answers
29 views

Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
3
votes
3answers
84 views

Colorize an image using two parameters

I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ...
0
votes
0answers
79 views

GraphicsGrid output is incorrect - image seems compressed [on hold]

I want to plot a large number of large data files but the output images are incorrect when I'm iterating over a GraphicsGrid with the Export command. ...
4
votes
2answers
147 views

Animate skips frames and hard to control speed.

I browsed similar questions related to Animate jerkiness like here, but haven't found the right options to control animation rate while also displaying all frames: ...
4
votes
2answers
142 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 ...
4
votes
0answers
71 views

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

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
104 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
33 views

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

I have this: ...
4
votes
2answers
222 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
68 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 ...
5
votes
0answers
72 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 10.0.0 While the specific bug affecting Plot described in AbsoluteOptions prints error messages in V10 has been fixed in 10.0.2 there remain ...
0
votes
0answers
33 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
56 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
94 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: ...
0
votes
0answers
62 views

How to insert a time indicator on a timetable?

I am trying to insert a time indicator into my timetable. First, to import the timetable: t = Show[Import["http://timetablesource"][[3]]][[{1,2}]; I then ...
1
vote
2answers
97 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
250 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
41 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
220 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
39 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
24 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
123 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
104 views

How to change plotting options while using Map

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

Drawing a square root spiral

Here is a start, i'm looking for a nice way. ...
3
votes
2answers
133 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 ...
2
votes
2answers
311 views

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

I know how to construction koch snowflake ...
2
votes
1answer
152 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. ...
2
votes
1answer
80 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
78 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
2answers
108 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 ...
5
votes
1answer
83 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
56 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
44 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
44 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
47 views

Align a plot with other rotated plot

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 ...
1
vote
1answer
65 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
114 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
36 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 ...
8
votes
0answers
243 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
46 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: ...
5
votes
0answers
57 views

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

The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added to them in ...
7
votes
0answers
75 views

Weird behaviour when using Scale, Rotate in Graphics

(Edited to simplify drawing) I have a drawing of two tangent circles: ...
1
vote
2answers
81 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
83 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
116 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
60 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 ...
0
votes
1answer
72 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
76 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 ...
4
votes
3answers
191 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. ...