Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
15,605
questions
2
votes
2
answers
225
views
Half of an Ellipsoid
Why is this showing fuzzy? Like the corona of a sun?
I want to graph the half of an ellipsoid 4x^2+y^2+4z^2=4 that lies to the right of the xz-plane. I specifically want to show that it is half (the ...
1
vote
1
answer
61
views
Animate function error
I'm new to Mathematica and I'm trying to plot a interactive graph of a curve with a slider that shows the tangent to the curve in whichever point of the interval, my implementation is
...
0
votes
0
answers
61
views
Visualizing conformal map from upper half plane to n-gon
I want to plot both the upper half plane and the image of it i.e. a polygonal region via Schwarz-Christoffel maps. One example is for a quadrilateral.
...
1
vote
0
answers
51
views
How to avoid grid lines to be removed in Detailed plot theme? [closed]
Hi guys I have the following equation that I want to plot.
pixx = k^2 Exp[-2 k^2 Sin[(t)/2]^2 ](-Sin[2t] - Sin[t](1-k^2 Sin[t]^2));
So I plotted as usual
...
7
votes
3
answers
595
views
Curvature of a Klein bottle
1. Problem statement
An old answer of mine:
Computing Gaussian curvature shows how to color parametric curves
and surfaces according to their curvature. However, the methods used there will fail for ...
1
vote
0
answers
43
views
How to draw an equation in an irregular ImplicitRegion? [closed]
I am trying to draw an equation in an specific area. I use ImplicitRegion to define the area. I can use RegionPlot to draw the ...
1
vote
0
answers
69
views
One problem with ListPlot3D [duplicate]
I plot a table in Mathematica using ListPlot3D. The table contains very simple data but the resulting plot is very weird at least for me. I expect that the plot should look like a rectangle in 3D but ...
2
votes
1
answer
86
views
How to code retarded time in Lienard-Wiechert potential equations?
I have been making strides on my project with the help of others here but have run into another snag: I am having difficulty in expressing the Lienard-Wiechert potentials with retarded time. For ...
8
votes
2
answers
311
views
Remove decimal point in ScientificForm
I am trying to remove the decimal point displayed on the y-axis ticks. At the very least, a zero should follow the decimal point. I have included a MWE below.
...
1
vote
0
answers
53
views
Fitting experimental data to a plot with different x-axis paths
Given Mathematica code of eigenvalues in different variable-paths , I want to add experimental data in the path Gamma-X ; X-Gamma ; and M-Gamma .
Here is the code :
...
0
votes
1
answer
88
views
Speed Up Plotting of Mathieu Equations
I am trying to plot Mathieu Functions, running for an hour without a result. Here is my code:
First define the relevant physical constant:
...
0
votes
2
answers
62
views
Superimpose Line Styles With Parametric Coloring
My aim is to plot each function with distinct style superimpose with color based upon parameter.
For instance, I have 3 functions of 1 variable and 1 parameter. Table command is used for iterating ...
3
votes
1
answer
143
views
Superimpose PlotLegends, Correctly
My aim is to plot each function with distinct style superimpose with color based upon parameter.
For instance, I have 3 functions of 1 variable and 1 parameter. Table command is used for iterating ...
1
vote
0
answers
74
views
How to compare simulated and experimental data?
I have numerically simulated and experimental data, I want to compare them and find the variation against numerical data. I do not have any idea about it. I just plotted experimental and simulated ...
1
vote
1
answer
113
views
Zoom on a specified region of a plot
Till this date Mathematica is devoid of a dedicated function which can be used to zoom over a specified region of a plot and placed the zoomed sub-plot inside the main plot as an inset. (usually found ...
0
votes
1
answer
81
views
Help with animating a plot in 3D cylindrical coordinates
I am trying to figure out how to animate (for different values of k) the following function in cylindrical coordinates and would appreciate some help.
$$f=r^2*k-r*cos(theta)$$
I can't seem to figure ...
4
votes
3
answers
298
views
Plotting multiple parametric 3D curves without using the Show command
How can I plot multiple parametric 3D curves on a single graph without the need to combine them using Show? Additionally, is there a way to clearly distinguish ...
0
votes
0
answers
41
views
How to plot in double Log scale from CSV file?
How to plot in double Log scale from CSV file?
I tried to use ListLogLogPlot but it scales only x axis. CSV file consists of two columns with comma:
0.1,6.2262
0.2,6.2324
0.3,6.2372
0.4,6.243
0.5,6....
1
vote
2
answers
190
views
Adding direction arrows to discrete plot
I wanted a discrete plot of $y = -\dfrac{3}{2} x$ and used
DiscretePlot[-3/2 x, {x, -20, 20}]
I do not like the vertical lines shown in the plot but I did not ...
2
votes
0
answers
70
views
Can Mathematica convert bitmaps to vectors?
I know that in Mathematica doesn't seem to support vector graphics for 3D ploting, e.g. exporting-2d-projection-of-3d-graph-in-svg-form. But as far as I know, some paid software can achieve this. ...
2
votes
2
answers
154
views
Applying style on graph objects specifically
My goal is to display the data and their mean and +-1 sigma. My code is as below. But the average and +-sigma values are all red dots. Could I get help on how to fix my code to display the +-sigma ...
2
votes
1
answer
82
views
Calculate the mean value from point inside a 2D contour
I saw a question about creating contour lines over a smoothdensityhistogram plot. It really help me to create this kind of graphs.
I want to ask if is possible to extract only the points inside a ...
2
votes
4
answers
371
views
How to find the zero crossings of a periodic function?
I have a function as follows,
$ \pi^{\prime}_{xx} = \exp(-2 k_x^2 \sin^2(\frac{t}{2})) k_x^2 \theta(t) \times \bigg[ -\frac{\sin(2t)}{2} - \cos(t) \sin(t) (1 - k_x^2 \sin^2(\frac{t}{2})) + 2 \cos(t) ...
1
vote
1
answer
92
views
How can we plot horizontal prediction bands?
1. Problem statement
Some game days before the end of a league season I want to show the possible final rankings (depending upon the results of the outstanding games).
2. Example data (situation after ...
1
vote
1
answer
143
views
Newton Raphson 0th order with gauss elimination error
I'm trying to do a Newthon Raphson with 1st order continuation to solve a problem with 4 variables (fix 2 and obtain the results of 2 (x and Chi).
...
3
votes
1
answer
128
views
Creating a plot for a summation function
I have this potential function which I believe is representative of a grounded cube in a 3D plane. I'm not entirely sure if this is it, but here is the general solution of the function:
v(x,y,z) = G(...
4
votes
2
answers
293
views
Display ordinal data in a circular manner
1. Problem statement
I want to display "categories" (f.e. the yearly winners of a football league) in a circular manner - a rounded version of ...
2
votes
1
answer
98
views
Level curves of $|e^{1/z}|= s$ for $s \in \mathbb{R}$
In order to find the behavior of a complex-valued function at an essential singularity, I want to plot $|e^{1/z}|= s$ for $s \in \mathbb{R}$, say for $s= 1, 1/2$. Following is the code but it doesn't ...
3
votes
3
answers
298
views
How to plot polar coordinates?
I'm trying to plot polar coordinates, that is to plot surfaces of constant parameters $r$ and $\theta$. Which are related to the cartesian ones by
$$
x = r \sin \theta\\
y = r \cos \theta
$$
One way ...
8
votes
3
answers
1k
views
How to plot railway tracks?
1. What I want
I would like to plot parametric curves approximately like these:
2. What I did
I googled parallel curves and found this resource function:
...
7
votes
2
answers
725
views
3D representation of a Boy surface using a mesh of tubes
“Everything that matters in life flows through tubes.” - Georg Christoph Lichtenberg, The Waste Books
Model of a Boy surface at the ...
1
vote
1
answer
112
views
Succinctly plotting a function defined in terms of many intermediate functions
I'm trying to plot a function that is in turn defined in terms of a lot of other functions, which each have a lot of variables. Here's a stylized example of the kind of thing I'm trying to do:
...
1
vote
1
answer
71
views
Modify the size of vectors in vectorplot3D
I'm trying to plot in the neighborhood of the origin and I can't change the shape and size of the arrows. What I need is to be sure whether or not the solutions are attracted to the line that goes ...
9
votes
1
answer
521
views
Jeener's Flower
Jeener's Flower is a minimal surface attributed to the french engraver Patrice Jeener whom we can see here:
The DNA of his flower can be written as
...
-2
votes
1
answer
117
views
Please help me how to label curves like this
Please tell me how to label curves like this:
0
votes
3
answers
148
views
Plot with marked extremum and saddle point if any in wave velocity as a function of wave number
I have the following 5th degree Polynomial Equation in complex wave velocity w(tauT, tauq) as a function of real parameters taoT and tauq:
...
2
votes
1
answer
715
views
Why are plots different on Wolfram|Alpha and Mathematica? [closed]
I got to do a simple numerical solving of this non-linear and second order differential equation.
$\begin{align*}
x''(t)&=-3x'(t)\sqrt{\frac{(x´(t))^2}{6}+\frac{(1-e^{-x(t)\cdot\sqrt{2/3}})^2}{4}}
...
9
votes
1
answer
1k
views
A perforated ding dong surface
Looking at this surface, which I created with Blender / Python,
I asked myself how we can duplicate some aspects of the scene with ...
0
votes
0
answers
97
views
Why won't this magnetic field plot?
I have been having some longstanding trouble in getting a 2D vector plot of a magnetic field to show up. For context, I am working with Lienard-Wiechert potentials and as such trying to plot the curl ...
1
vote
1
answer
79
views
Trying to plot a CSV file and getting a blank graph
I am trying to plot two NMR line graphs superimposed to show a before and after. I was able to successfully do it with excel files but the CSV files have been giving me trouble. This is my code. I ...
0
votes
1
answer
67
views
Evaluate the time average of Mathieu functions
I defined a function composed of Mathieu's periodic functions:
...
0
votes
2
answers
163
views
Sierpinski Triangle and Benford's Law (Edit)
I would like some help solving the following problem using Mathematica: Show that, no matter what the initial area of an equilateral triangle is, the sequence of areas (painted in black) of the ...
0
votes
1
answer
57
views
How to change FeynArts Paint style settings?
I'm a Mathematica stylesheet enthusiast. I love using beautiful stylesheet instead of the default one, such as Dracular. I'm also a physics researcher on scattering amplitudes, which forces me to use ...
0
votes
1
answer
84
views
Dispersion equation [duplicate]
I want surface plot of real part of any one of the complex roots of the following fifth degree dispersion equation in wave velocity v in Mathematica. Surface plot of real part of any complex root w.r....
2
votes
2
answers
161
views
Contour Plot of complex roots of dispersion equation
I want a contour plot of the complex roots of the following fifth degree dispersion equation in wave velocity v in Mathematica:
...
4
votes
2
answers
115
views
How can I improve the plotting speed of plot3D with region calculations?
I'm looking to achieve the desired result as shown in the attached image. There may be various methods to obtain such a plot, but my current code seems to be running quite slowly. Unfortunately, my ...
2
votes
1
answer
97
views
Using shooting method to solve DE of fourth order
I am trying to solve a fourth-order differential equation using the shooting method and I wrote the following code, But this code does not work for me and I don't know what the problem is.
...
1
vote
1
answer
125
views
Unexpected output in ContourPlot
ContourPlot[Boole[(Im[x+ I y]!=0&&Re[x+I y]<=-1)||Re[x+I y]>-1],{x,-5,1},{y,-5,5}, PlotPoints->200]
shows two white lines, the horizontal ray from ...
1
vote
0
answers
119
views
Modelling projectile with lift and drag forces
I am trying to model a projectile motion with lift and drag forces.
I have written the code below, solved for $y$ and $x$, and tried to plot it.
However, I don't know how to implement the fact that ...
0
votes
0
answers
62
views
Improving the curve of a quadratic spline interpolation
I have these data and I want to make a curve using quadratic spline interpolation. I am successful in computing the equations and plotting the curves. However, I noticed that the peaks of the curves ...