Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
50 views

Polarization map

I want to generate the polarization map of a vector vortex beam from the Stokes parameters (S1,S2,S3). Any suggestion or help? Here: Generate an array of ParametricPlots there is something, but is ...
-4
votes
1answer
49 views

What are the commands to obtain the following table and figure? [on hold]

I've used both Mathematica and Latex and can't seem to find the correct commands. I've used Plot, Tabular.
2
votes
1answer
98 views

Constructing the following figure using mathematica

How do I construct the figure in the image using the formulae in Mathematica? I defined the following functions for the 4 cases. Can you also explain the significance of these in relation to the ...
9
votes
2answers
576 views

How to construct rectangular figures from the Fibonacci numbers?

How do you construct rectangular figures using the Fibonacci numbers in Mathematica using graphics? I know that the basis of the construction of these figures are the formulae for summing the terms, ...
-1
votes
0answers
34 views

place the elliptical earth orbit into the same plot of a circle [duplicate]

anyone can help me to display simulations like the following with the formula: ...
1
vote
0answers
47 views

ElementMeshContourPlot and PlotLegend [on hold]

Does anybody know why ElementMeshContourPlot ignored PlotLegends->Automatic? I have used the useful topic about Von Mises stress but I vould like a colored scale on the right of the plot. With ...
3
votes
1answer
40 views

Extract Halfspace representation of a ConvexHullMesh

I have computed the convex hull of a set of points in $\mathbb{R}^{n}$ using ConvexHullMesh. This describes a convex polytope $\mathcal{P}$. I was wondering if there is any easy way of getting a ...
12
votes
1answer
284 views

Converting image into graphics

I have a black-white image, but it is rather blurry so I was thinking of converting it into vector graphics so I could do some coloring. This is the image: ...
2
votes
0answers
31 views

Increase vertex embedding distances e.g. scale VertexCoordinates

I currently try to make following graph more readable: ...
1
vote
1answer
32 views

Image Adjustment wipes out overplots?

I'm having a problem where when I display lines over an image (using Show) it works fine, but if I adjust the image colors first (using either ...
5
votes
2answers
102 views

Having trouble producing transparent GIF animation

I'm having difficulty producing a proper animated gif (for inclusion in a PowerPoint presentation). The code I have is this: ...
6
votes
1answer
109 views

Include Images in Timeline Mathematica

I'd like to include an image in a timeline in mathematica. Is this possible using the TimelinePlot? There is this previous question which considers graphical ...
3
votes
0answers
66 views

Getting rid of discontinuities in plots caused by square roots, logarithms, `Arg`, etc

I encounter this very often, here is just one recent example: I want StreamPlot[ReIm[Sqrt[x+I y]],{x,-3,3},{y,-3,3},StreamStyle->"Line"] and because of square ...
0
votes
0answers
43 views

Can Mathematica convert PDF into QR code too?

I recently learned that we can embed a whole PDF file into QR codes. But many online sites are not free for this service. Just wondering if Mathematica can do this? Note I don't want to convert the ...
1
vote
3answers
49 views

How to flip and transform a graph

I haved plot a graph from two functions: ...
3
votes
1answer
83 views

Editing code which shows three balls moving from one site to another

I would like to have your help in editing the following Mathematical code. The code shown below represents applying translation to three balls aligned vertically at one site. I want to edit it so it ...
2
votes
2answers
49 views

Need help with using Show to combine 3D graphics with 3D plots

This post brings two related questions. I want to create a combination of Parametric3D plots with a point. I borrowed some code from a tutorial and modified it in order to add a point. For some ...
1
vote
1answer
46 views

Visualizing a imported XYZ-file and graphic object at same time

I want visualize a imported xyz-file and a graphic object at same time. g = Import["H2O.xyz", "XYZ"]; Show[g, Graphics3D[{Opacity[0.5], Sphere[]}]] But this ...
0
votes
1answer
22 views

How to combine a ContourPlot with a Manipulate[Parametric Plot]

I have this code of an orbit at a Lagrange Point of the Sun-Jupiter system ...
1
vote
2answers
108 views

Input editor does not like my Thread over Circle expression

I am using Mathematica 11.3.0.0, 64 bit. Here is my code: Graphics[Thread[Circle[{{-1, 0}, {0, 0}, {1, 0}}, {0.5, 1.0, 0.5}]]] Here is code as it looks in a ...
3
votes
3answers
157 views

Creating a white and black color function

What I want to get is a density plot where the color function is thresholded: if the value of a function is larger a threshold, the color function returns white; otherwise, black. I found some ...
1
vote
0answers
50 views

Creating a plot from an image of the plot

I have an image of a plot at https://imgur.com/a/h9OWP6p Import["https://i.imgur.com/vNqm0Em.png"] I want to create a plot of it, consistent with the scale in ...
0
votes
1answer
41 views

Where can I download the ErrorBar Plotting Package? [closed]

I'm trying to find the link to download the ErrorBar Plotting Package but I just can't seem to find it. The only link I have is the following: https://reference.wolfram.com/language/ErrorBarPlots/...
3
votes
0answers
24 views

Long title in pdf export resizes the plot

When using GraphicsGrid to make multiple plots, if one plot has a longer title, the sizing gets messed up when the image is exported to pdf. Below is a massively simplified example code, ...
1
vote
0answers
48 views

Suppressing non-deterministic behavior in Image

The following issue is experienced in Mathematica 11.3 on Linux (debian 9) but I am pretty sure it was already present in version 10 on Linux. The expression ...
2
votes
3answers
225 views

Is it possible to draw a hollow circle using polygon?

The question is simple. I have the following commands ...
0
votes
0answers
31 views

exporting animation in .AVI

i have a problem with exporting an animation as a video; i can't get the animation to only go in one direction it awlays goes forward and backwards. AnimatioDirection does nothing. i can't remove the ...
4
votes
1answer
79 views

Cubes inscribed into a tetrahedron

I am trying to visualize a geometry concept by using Wolfram Mathematica. Here is a sample image. I have found the source code for tetrahedron online, but I can't find a source code for inscribed ...
2
votes
2answers
72 views

Plot legend doesn't appear like it should be

I constructed a plot with extra legends generated using dashed function but customarily defined legend doesn't look like plot: ...
1
vote
1answer
57 views

Is it possible to make the PlotRegion in graphics as a shape?

I have a specific pattern to show in Graphics and I would like to choose the PlotRegion as a shape. In other words, I would like ...
1
vote
1answer
44 views

Reiterative Graphics- Fractals and Isometries

I am trying to reiterate a program on mathematica. Say, I begin with a circle partitioned into 3 symmetric regions. The code is below: ...
1
vote
3answers
41 views

Troubleshooting Set Delayed Error

I'm trying to manipulate the value of x, while also showing the graphic. My code is listed below: ...
3
votes
2answers
41 views

How can I animate the plot of solutions to this system with different initial conditions?

I would like to plot the curves given by $\alpha(s) = (u(s), v(s))$, where $u$ and $v$ are like below. ...
3
votes
3answers
73 views

How can I animate the plot of this curve also showing its tangent/normal vectors at each point?

I want to animate the curve given by $\alpha(t) = (u(t), v(t))$ being traced out (and also showing the tangent and normal vector at each point), where $u$ and $v $ are the solutions below ...
3
votes
3answers
56 views

Swapping Axes of single variable ContourPlot

I have a ContourPlot dependent on one parameter, where the second parameter is dependent on the first: ...
7
votes
4answers
339 views

Recalculate line coodinates

I have the following line: ...
1
vote
1answer
25 views

Use dashing style and color as legends for Show

When plotting the following, ...
4
votes
0answers
55 views

Specify an SVG encoding algorithm?

This recursive function definition creates a number series that I'm interested in: f[y_][x_] := f[y][x] = Mod[10 f[y][x - 1], y]; f[y_][1] = 1 When applying it ...
7
votes
2answers
83 views

What are these markers at the bottom of BarLegend?

I've noticed these small ruler-type markers at the bottom of BarLegend objects. BarLegend["Rainbow"] (Enhance!) I don't ...
3
votes
1answer
73 views

Plotting functions on surfaces

So I have a 2D surface which can be parameterized by a vector $X(u1,u2)$ which I am plotting with ParametricPlot3D[X, {u1,...}, {u2,...}] I have a scalar function, ...
4
votes
1answer
142 views

Others problems with Graphics`PolygonUtils`PolygonCombine

As a continuation of this question, writing: ...
1
vote
1answer
59 views
4
votes
1answer
61 views

Problem in coloring network links with linear gradients through VertexColors

I am trying to plot a network with colored links and nodes. I would like to color links with a gradient depending on the colors of its endpoints/nodes. For instance, a link between a blue and a red ...
3
votes
2answers
69 views

How to draw right angled triangle with a, b and c lengths shown?

I'm trying to draw a right angled triangle with hypotenuse length 1,opposite length b and adjacent length c in Mathematica. How ...
1
vote
0answers
47 views

GeoGraphics Question

I have the new and I have the following (simple) questions: I want to align the label (example Netherlands with flag) to be drawn at the graphics boundaries. Make an arrows between the label and the ...
1
vote
1answer
34 views

Epilog: Only one point appears in graph [duplicate]

I'm trying to graph something for a paper and I want to highlight two points in two function. I am using this code: ...
0
votes
1answer
49 views

How can I plot the solutions to this system of non linear ODEs?

I need to solve the following system: $$\left\{ \begin{array} { l l } { (u')^2 + (v')^2 = 1 } \\ {u'v'' - u''v' = uu' + vv' } \end{array} \right.$$ and it's a task that's proven to be quite hard by ...
15
votes
1answer
570 views

Sea Level Rise - How to mask on relief plot

I want to make a diagram which corresponds to sea level rise in the UK. I'm having trouble with relief plot. So, corresponding to a 30 metre height increase of the sea, we would get the following ...
0
votes
1answer
36 views

Plot the graph of the square wave function defined as $f(t)=\sum^{\infty}_{n=0}(-1)^n h_{n}(t)$ on the interval $t>0$ and find its Laplace transform

Plot the graph of the square wave function defined as $$f(t)=\sum^{\infty}_{n=0}(-1)^n h_{n}(t)$$ on the interval $t>0$ and find its Laplace transform. The http://mathworld.wolfram.com/...
0
votes
0answers
59 views

On Piecewise Function

Defined: f[x_] = Piecewise[{{(x - 2)^2 - 1, 1 < x < 3}, {0, True}}]; x1 = 0.24; writing: ...