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

7
votes
3answers
127 views

How to combine scaled, rotated, etc. graphics objects?

This may be a trivial question, but I seem to be missing something. Let's say I create a graphics object like so: ...
8
votes
3answers
106 views

smooth spline through airfoil coordinates

I am trying to produce a smooth spline curve through a set of airfoil coordinates. An example for the data I am trying to use is here, and I am reading the file like so to get rid of some extraneous ...
0
votes
2answers
29 views

Make a grid of lines with a For[] loop inside a manipulate statement

can anyone help me? I'm tring to write a Manipulate[] statement that can be able to modify a grid of lines in length, height and change the space between them. It ...
1
vote
1answer
38 views

How to highlight listplot data

I plotted a data ListPlot[{{1,2,3},{4,5,6}}]. When I point the mouse over point {1}, it should appear at the end of the tooltip and the corresponding data point {4} ...
13
votes
3answers
449 views

Converting a Sierpinski tetrahedron to a Graph

I need a representation of a 3D Sierpinski gasket in a form of a graph to perform some simulations on. The 2D version is included in GraphData[], but the 3D one is ...
3
votes
2answers
255 views

Building a Career Ladder Lattice (Follow up)

I want to thank you both for your help above. I'm going to abandon my quest for a number to label substitution using VertexRenderingFunction; because I need the ...
13
votes
2answers
535 views

How can I generate an interrupted projection of a world map?

How can I generate a world map like the one here, but for an arbitrary hand-drawn map? For example, starting from scratch, how can I manipulate this world map to get something that looks like ...
2
votes
2answers
60 views

Translation especially in graphics

By running the following code: ...
9
votes
2answers
200 views

Adding arrows in Tangent

I want to add arrows to the start and the end of the Tangent curve. My first try was successful, ...
0
votes
0answers
52 views

How to implement multiple EventHandlers? [duplicate]

n00b Mathematica user here. I wrote this code: ...
14
votes
4answers
958 views

Generate a certain colorful triangle

I want to get a colorful triangle like this: I hope to get a triangle with any number of layers. This is my current method. Actually, I'm not very content with these graph theory functions, since ...
2
votes
1answer
81 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: ...
10
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 ...
3
votes
0answers
25 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 (...
-2
votes
0answers
39 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 ...
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
270 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 ...
6
votes
2answers
143 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 ...
21
votes
2answers
340 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. ...
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
942 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.
6
votes
3answers
189 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 ...
5
votes
1answer
103 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 ...
1
vote
0answers
28 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 ...
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:
1
vote
2answers
77 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: ...
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 ...
3
votes
1answer
82 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: ...
5
votes
2answers
89 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 ...
10
votes
2answers
249 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
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
1answer
131 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 ...
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: ...
10
votes
7answers
406 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: ...
-2
votes
1answer
91 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 \...
2
votes
1answer
133 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: ...
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) ...
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 ...
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 ...
0
votes
1answer
52 views

Error with Numerical Integration

I'm running the following code: ...
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!
2
votes
1answer
91 views

How to import data about mountain and then plot it?

There is a code for the Mount Everest ...
12
votes
3answers
344 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
30 views

Possible Error with the Output Graph

I'm running the following command: ...
1
vote
1answer
54 views

Error with Numerical Integration and Graph Plotting

I'm trying to run the following code: ...
0
votes
0answers
23 views

How to use BarLegend on a personalized color function

as the title says i have to show a BarLegend for a graphic built from a matrix. The function used to determine the color of the elements of the curve is $$ { 1 - 1/3 (msum[[i, j]] )^b, 1 -(msum[[...
0
votes
1answer
77 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): ...
7
votes
3answers
147 views

How to create a Text with certain size given in a specified way?

Note: all these coordinates are in Graphics system, not text size system. so specifying simply by Style[text, 5] or so won't ...
1
vote
2answers
80 views

Treating the output of a plot function as a graphics object, changing the opacity

I want to treat the output of a plot (DensityPlot specifically) as a single graphics object and reduce its opacity. Something like: ...
1
vote
1answer
50 views

How to make two numbers coincide

For the below plot: ...