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

2
votes
1answer
70 views

Loops and Graphics in Mathematica

I want to create a loop in Mathematica such that it creats multiple graphs for me. For example, I have a command of the form: ...
29
votes
4answers
10k views
9
votes
2answers
1k views

Pixel perfect world map with no border lines

I'm trying to build a real world map in Minecraft and want a pixel-perfect raster image I can copy pixel for block. How can I modify ...
2
votes
0answers
55 views

How to make circuit-like diagrams [duplicate]

I was reading through a blog post and found some really nice graphs, and I was wondering how to generate similar ones with Mathematica:
0
votes
0answers
36 views

Mathematical Optimization and 3D Plotting

I have the following expression: $$ h(\tau) = \Bigg [ \frac{|\eta|}{1 + |\eta|^2} \Bigg ]^{4J} \sum_{m, p = -1}^{1} |\eta|^{2(m + p)} \binom{2J}{J + m} \binom{2J}{J + p} e^{- i \triangle(\tau)(m^...
3
votes
0answers
508 views

Visualising Special Relativity

Mathematica newbie learning by doing (or not so far, in this case). Problem: Special Relativity - consider two inertial frames $A$ & $A'$ in relative motion. At a time $t0$ as measured in $S$, ...
7
votes
1answer
160 views

Transparent bitmaps or graphics in gui objects initially appear wrong

Bug introduced in V9.0 or earlier and persisting through 10.4.1 I have a problem with images with alpha channel which I want to use as labels on Button etc. ...
3
votes
0answers
24 views

Dynamic graphics appears first with wrong background [duplicate]

This is one of those annoying things that you put aside for years before making a post of it. Put a dynamic Graphics into a gui object (...
10
votes
7answers
403 views

How can I combine a list of Line[]'s into one continuous Line?

I have a huge list of Lines. Take this one as an example: ...
21
votes
2answers
323 views

How can I better mimic the graphics at earth.nullschool.net?

I'd like to be able to better mimic the graphics at earth.nullschool.net using Mathematica and I'm looking for suggestions for either improving my code or getting directed to some other approach. ...
11
votes
1answer
317 views

How to solve for the intersection points of two ellipses?

I have a parametric equation of two ellipses as follow $\begin{cases} x=a_1 \text{sin$\theta $}+b_1 \text{cos$\theta $}+c_1 \\ y=d_1 \text{sin$\theta $}+e_1 \text{cos$\theta $}+f_1 \\ \end{cases}...
-2
votes
0answers
37 views

Programing the Euler characteristic

The Euler characteristic theorem is a wonderfull theorem not only from the mathematical point of view but also from the scientific view point. Here is a version that I would prefer to program by ...
6
votes
3answers
188 views

Why do Disks become polygons in RegionPlot?

I want to RegionPlot a reinforced concrete section, by drawing a polygon as a rectangular shape, and on top of that, a number of circles as ...
7
votes
1answer
150 views

Weird behaviour of HighlightImage—bug or not?

For background, check my answer under this question. It is clearly stated in the documentation of HighlightImage that the 2nd argument,...
12
votes
2answers
262 views

Fractal basins of attraction in a Magnetic Pendulum

I am trying to write a Mathematica program that realizes a graphical approximation of the basins of attraction in a Magnetic pendulum subject to friction and gravity, in which the three magnets are ...
3
votes
2answers
208 views

Turning arrowheads off

My thinking was that Arrowheads[0] would turn off the arrowheads. ...
6
votes
2answers
137 views

How to fill outside instead of inside graphical shapes?

I want to omit parts of Graphics from scenes by defining a geometric shape where details are visible, a "keyhole" of sorts, and fill all the rest as one would do to ...
6
votes
2answers
278 views

Export rotate bug in Mathematica v10

I think I've stumbled upon a bug in Mathematica v10.0.0 on linux. Rotate does not seem to play well with export. If I run: ...
3
votes
3answers
226 views

Color coded bar to represent numeric values

I would like to present data color coded in a bar. My data look like the following: {-2.5,-1.0,0.1,0.5,-0.24,-0.58,-0.58,-0.25,-1.4,2.1,1.8,-2.5,1.97} I would ...
13
votes
1answer
135 views

ErrorListPlot ignores some exact data points

Bug introduced in 10.0 and persisting through 10.4.1 or later Possible bug? Or am I missing something / expecting too much? Forgive the seemingly obscure data points but they're where I've noticed ...
5
votes
3answers
228 views

How to get the coordinates of the intersection of two lines from a ListLinePlot?

Suppose I have two curves intersect at some point, how can I read the coordinates from the graph, not read by eye, but find it with more precision by computer. For example, here are two lists created ...
2
votes
2answers
76 views

Plot with a reference line and shaded / colored region

How can I add horizontal reference lines at 4 and 6 (y-axis) and shading below each reference line on the following plot? Plot[i, {i, 1, 10}] Thank you!
9
votes
2answers
934 views

Draw half empty rectangle

How can I draw an half or a third filled rectangle? I want to make one rectangle frame with a unity width and then filled it according to a value between 0 and 1.
0
votes
1answer
82 views

Mapping a simple 2 variable function

Quick Question: What is the best way to map this function so it performs seperately for 102 different values of x? ...
5
votes
1answer
102 views

Is there a better way to produce a shape with exclusions in RegionPlot3D? [duplicate]

I'm attempting to create a certain shape. It's essentially a rectangular prism with an array of cylinders cut out of it, and then some half shells of cylinders along the sides. My attempt is basically ...
3
votes
1answer
78 views

How to export an already rendered image sequence?

I have an image sequence of around 1000 images in a .nb-File which I would like to export to PNG format (1000 images into a folder). If I use "Save as..." -> "Web page" Mathematica saves the 1000 ...
1
vote
0answers
27 views

Why are there these jagged “shards” in my RegionPlot3D?

I'm creating a region out of two component regions. Before anyone suggests it (because a lot of similar questions are about it), I don't think the problem is increasing PlotPoints. I've increased it ...
1
vote
2answers
74 views

How to get the desired view in ViewPoint function

What should be the values for ViewPoint function to show the position I want? My code is this: ...
5
votes
2answers
88 views

Creating a grid with numbered spaces and other markings

I am writing a graph theory paper about forbidden induced subgraphs. My coauthors and I have a list of 167 graphs that we would like to include in a diagram in the paper. I have generated all of these ...
3
votes
1answer
81 views

How to plot the difference between two regions? [duplicate]

I'm trying to take the difference between two regions. In this case, one region is a cuboid, and the other is a cylinder. Here's what they look like drawn with Graphics3D: ...
10
votes
2answers
247 views

How to retouch (smart fill) photo image?

Can the program proposed by Alexei Boulbitch at the post of Custom arrow shaft be adapted to retouch an image in setting a mask arround the part one desires to disapear? This is only a suggestion, ...
4
votes
1answer
130 views

Unattractive streaky rendering of Graphics3D images

I often find that Graphics3D drawings appear "streaky" in places. This can be seen in the picture below (taken from my question here). There is an unattractive patch where the colour changes ...
4
votes
2answers
106 views

Alignment of different-sized objects in Row

I would like to Align several distinct boxes so that the top of each one is at the same level. For example: ...
4
votes
3answers
2k views

How do I make a log plot where the plot is logarithmic in the distance from the X-Axis (including negative values)?

For example, if I were to do a plot of Sin[x], I would get what looks like a Log plot of Sin[x], with another log plot of ...
2
votes
4answers
296 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 ...
3
votes
2answers
117 views

Creating an image of a discrete dynamical system

The following image contains solution trajectories of the system: $$\vec x_{k+1}= \begin{bmatrix} 0.80 & 0\\ 0 & 0.64 \end{bmatrix}\,\vec x_k $$ I've managed to do this: ...
-1
votes
2answers
331 views

Make a fractal-like dot animation

How to make an animation of following fractal-like gif by using Mathematica?
3
votes
2answers
172 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$. ...
-2
votes
1answer
90 views

Sketch the dual lattice $\Gamma^*$? [duplicate]

In the book Eigenvalues in Riemannian Geometry of Isaac Chavel page $28$ - $29$, they talk about the lattice $\Gamma$ and it is defined as $$\Gamma = \left\{\sum_{j=1}^n \alpha^j v_j : \alpha^j \in \...
6
votes
3answers
327 views

The same value of VertexSize for vertices in different graphs causes different vertices size

I generated some graphs. The smallest vertices in the 1st graph should be the same size as the smallest vertices in the second graph. The smallest vertices have the same size (...
3
votes
2answers
311 views

Using codes to replicate drawing tools in Mathematica

This might seem very obvious but I'm on the verge of losing all the annotations I've made on a graph because I can't figure a way to save it after using the drawing tool to add a few extras to the ...
2
votes
1answer
119 views

Ito Process paths over a Plot3D

I was wondering if its possible to draw the simulated paths of an Ito diffusion over the probability density function. Ito Process: ...
12
votes
3answers
341 views

How to visualize a map $f:R^3 \to R^2$

I want to visualize $\{x1,x2,x3\}\to\{x1 + 2 x2, 3 x3-x1\}$,but we cannot use ParametricPlot like following,because this map have three parameters. ...
0
votes
1answer
70 views

How to plot columns of a matrix as vectors

Related: How to plot vectors in Mathematica I am not interested in vector fields and field plots. I'd like to pass a $(2 \times n)$ or $(3 \times n)$ matrix into a function (or 2 different functions) ...
2
votes
1answer
91 views
0
votes
1answer
76 views

Using a BoxWhiskerChart as a plot marker in ListPlot

I want to plot the means of several data sets, but instead of using a point I would like to use a box-and-whisker plot to represent the full data set. Here is what I mean (with some toy data): ...
4
votes
1answer
120 views

How can I add engineering-style dimensioning to graphics?

Is there any specific function for this type of presentation formed by the code $dim1$, $dim2$ and $dim3$? Barra ...
20
votes
1answer
3k views

How to create a fascinating QR code like this?

Check the facinating QRCode in my profile page here You can find that this QRCode is some sort of intriguing as the QRCode is a IMAGE ITSELF!!! So my question is, how to create such a QRCode ...
0
votes
1answer
50 views
3
votes
1answer
64 views

Draw border around constant regions of image

I would like to ask that is it possible to draw borderline - contour - around those cells (pixels) which are neighboring and contains the same value. An example by hand: Thanks!