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

0
votes
0answers
4 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
1answer
22 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} ...
0
votes
2answers
21 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
votes
2answers
136 views

Visualize Space Pascal's triangle

Visualize Space Pascal's triangle I found this image on the web, I want to know how to draw with software. I try to search, found this. I have learned a mapping in the plane
12
votes
2answers
521 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 ...
13
votes
3answers
388 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 ...
2
votes
2answers
59 views
2
votes
2answers
249 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 ...
9
votes
3answers
1k views

Increase 3D Graph thickness for 3D printing in Mathematica?

My code: Plot3D[{(2*x*y)/(x^2 + y^2)}, {x, -2, 2}, {y, -2, 2}] Output: And now I can export this to STL by using the export STL command, however, when I try ...
2
votes
2answers
112 views

Change bond cutoff distance when plotting .xyz files

When plotting a molecule from a xyz data file, Mathematica automatically adds the bonds between the atoms. But in my case it adds too many bonds, not only between nearest neighbours but also between ...
14
votes
4answers
931 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 ...
8
votes
2answers
197 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, ...
14
votes
4answers
1k views

What does DisplayFunction->Identity do to graphics functions?

Does DisplayFunction->Identity do anything at all in Mathematica 8? In the third edition of Programming in Mathematica, Roman Maeder gives the following ...
0
votes
0answers
52 views

How to implement multiple EventHandlers? [duplicate]

n00b Mathematica user here. I wrote this code: ...
2
votes
1answer
80 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
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 ...
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:
3
votes
0answers
511 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
161 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
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 (...
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: ...
21
votes
2answers
337 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
318 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
38 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
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 ...
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
268 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
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 ...
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
230 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
941 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
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 ...
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
76 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
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 ...
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
248 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
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 ...
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
298 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?