# Tagged Questions

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 ...

79 views

### How to merge two plots in Mathematica 8.0 in a column and then save the figure as a single pdf file?

I have defined two plots and then want to merge them into one so that I can save the figure as a pdf file into my computer. Here is MWE where I would like to merge two plots into one: ...
47 views

### check content of a Matrix

I have a matrix which contain rotated ellipses and points, how can I check if the element in the position {i,j} is either a point or an ellipse? the code is a bit longer but the structure is like: ...
932 views

### Determine whether points lie within a cow

I would like to determine whether randomly-generated points ...
52 views

### Fastest way for data input into StreamPlot function

I'm interested in looking at graphing the phase portraits of 2x2 autonomous ODEs, and I'm using the StreamPlot function. Here is one simple example: ...
33 views

### Graphics, Import and Inset combined

I need to write a word on a figure, which I have saved as fig.pdf. 1) I import the pdf file to mathematica: a = Import["fig.pdf"][[1]]; 2) Following the ...
43 views

### Calculating the top left corner in a 2d field [closed]

Given I have a field with several rectangles like shown in the picture. A point with its x and y coordinates are given. The height(h) and the width(w) are also given. How can I calculate the top left ...
67 views

### Antialiasing points on a line?

I'm probably being stupid here, but I can't get my points to go in a smooth line: At this scale they should all equally cover the red line. I must be doing something wrong, anyhow I tried to use <...
173 views

### GridLines for a coordinate system with a particular basis

Suppose that I use the vectors $(2,1)$ and $(-1,1)$ as a basis for $R^2$. ...
130 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}$ ...
188 views

### Visualisation of the field of algebraic numbers in the complex plane

Hot to plot the field of algebraic numbers in the complex plane? In this picture, the color of a point indicates the degree of the polynomial of which it’s a root: red = rational numbers ...
161 views

### Transcritical Bifurcation phase portraits

An example equation for a Transcritical Bifurcations is given by: $$\dfrac{dx}{dt} = f(x, r) = r x - x^2$$ In Mathematica, we can define the function as: ...
67 views

### How do I label points when using Graphics? [closed]

Let say I want to draw a point and label it. The command I use to draw points is Graphics[{Point[{0,0}], Point[{1,1}]}] This draws the points $(0,0)$ and $(1,1)$....
86 views

### Visualize Pascal's triangle with the product of the terms in the $n$th row

How to make the following graphics by using Mathematica? What I tried: I used J.M's answer for the Pascal triangle ...
162 views

### Fractal plotting for the Collatz fractal

I have the following equation: f[z_] := 1/4 (2 + 7 z - (2 + 5 z) Cos[Pi*z]) I want to map this on the imaginary plane such that if it converges under iterations ...
133 views

### Fixing text position in an animation

Following I have a simple animation with a variable displayed inside the plot. The significant digits of the variable changes as you run the animation which results in a smaller jitter on the text's ...
33 views

### Interpolating or “absolutising” symbolic sizes? [duplicate]

I often face the problem that none of the usual symbolic constants Tiny, Small, Medium, or <...
264 views

### Mathematica Interpolation or approximation

I have lists of points X and Y. {1212,1216,1217,1219...}, {1,2,3,4,5,6...} I combine ...
2k views

### Beautiful dance of the Earth and Venus around the sun

I have seen very nice dynamic graphics created by users of Ma. I would like to get help whether the following graphics can be created using Ma. I was not able to create the dynamic picture here. ...
25 views

...
72 views

### Plotting 3-vectors over a 3D lattice [closed]

I am trying to plot a magnetic structure, which is basically using Mathematica to read and plot a .dat file. In the file, each row which has six numbers, the first 3 represents the atomic postion, and ...
358 views

### Draw a circle through 4 points on parabola [closed]

I have two dynamic perpendicular parabolas: $y=ax^2+c, x=by^2+d$, which intersect in four points (the coefficients are chosen that way). There is a fact that we can construct a circle through these ...
93 views

### Affine Transform Question

I set up these: ...
128 views

### Animating two rotating circles

I have two circles: ...
44 views

...
41 views

### Plotting Elipsoids with large weight matrix

I'm running into some problems plotting 2D Ellipsoids with non-diagonal weight matrices -- they are not centered where they are supposed to be. I'm not sure exactly ...
34 views

### Fast Creation of Label Matrix for Use With ComponentMeasurements?

I am taking a lot of measurements from regions of interest in microscopy images and am finding that generating binary masks to use with ComponentMeasurements is rather slow (at least it's slow the way ...
92 views

### Point on the circle

How can I make a moving point on the circle with control? ...
135 views

### Speed Up Sampling of Perimeter of Polygon

I have a polygon whose vertices (points) are defined by some image coordinates that I have manually selected. The polygon is used to create a mask for a region of interest in a microscopy image. ...
79 views

### How Can I plot two concentric circles with a polygon inscribed in one and circumscribed about the other however I want the polygon to manipulated

So this code is to plot two concentric circles with a polygon inscribed in one and circumscribed about the other: ...
65 views

...
144 views

### ListPlot with colors

Let's create some sample data n = 100; d00 = Table[{RandomReal[{-1, 1}], RandomReal[{-4, 4}], RandomReal[{-1, 1}]}, {i, 1, n}]; Now I want the following: create ...
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, ...
122 views

### How to copy Coordinates of “Get Coordinates” in Figure?

I am trying to reproduce the answer here about Recovering data points from an image. I click the figure and press "Get Coordinates". I would like to copy the four coordinates by CTRL-C and then paste ...
337 views

### Is there a way to make a bihistogram plot?

Is there a way of making a bihistogram plot in mathematica? There is a reference to it at http://mathworld.wolfram.com/Bihistogram.html but no suggestions as to how to do it.
36 views

### How to implement reusable graphic components having stable line thicknesses?

IMPORTANT: This post is a follow-up to Scaling edge thicknesses, and in particular to the accepted answer in that thread. Basically, I'm trying to use the idea given in that answer to implement 2-...
209 views

### Is it possible to get the (x, y) position of nodes in a Graph?

Given a graph... RandomGraph[{20,40}] ...is it possible to retrieve the (x, y) coordinates at which the nodes are drawn? ...
74 views

### Recreating a ContourPlot3D using points

Let's define a three-dimensional surface ...
194 views

### Mathematica gravatar engine?

This question asks about making gravatars in Mathematica, but the accepted answer is just a wrapper around the gravatar.com service. Is there an open source Mathematica engine that performs the ...
50 views

### Cartesian coordinates inside Spherical function

I would like to write a function that draws a graphic object and its projections along the x,y and z axes. I specify the $r,\theta, \phi$ of the object and an arrow and it's dashed projections are ...
63 views

### List of Inequalities in RegionPlot with different colors [duplicate]

Starting from the example of the Documentation: RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Which gives a nice plot with two ...
93 views

### Plotting a convex hull with a coordinate mesh

I am plotting the convex hull of some curves by extracting the curves from a contour plot and constructing the convex hull around their discretized version . It's not terribly accurate for ...
76 views

### Creating a custom ListPlot of consecutive points

Here comes some sample data ...
466 views

### Partition a disk into regions based on points on a circle

I am plotting the roots of a polynomial on the unite circle this way ...
50 views

### Change of parameters on ouput graph

I have generated the graph, but i lost the settings, i would like to make the Plotmarkers slightly bigger. Is there anything to do this without redoing the computation? Like Show[%1,PlotMarker->{dot,...
331 views

### Make a fractal-like dot animation

How to make an animation of following fractal-like gif by using Mathematica?
45 views

### Periodic boundary condition trick

I'm plotting a curve on a compact space which is having periodic boundaries on the left and right parts. Currently, the code I'm using is working great, but I'm wondering if there's a simpler and ...
144 views

### How to guarantee the point's position is fixed in the Graphics and Image

SeedRandom[8] plot = ParametricPlot[ Evaluate@BezierFunction[temPoint = RandomReal[{-50, 50}, {5, 2}]][ t], {t, 0, 1}, AxesOrigin -> {0, 0}] We can ...
53 views

### Small glitch with EdgeForm and PlotRange

I'm experiencing a small problem with the edges of a square, if the PlotRange has the same size as the square : ...