Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
15,852
questions
1
vote
0
answers
40
views
Extracting PlotRange versus PlotStyle
Why does
AbsoluteOptions[
Plot[Sin[x], {x, 0, 2 Pi},
PlotRange -> Automatic,
PlotStyle -> Red],
PlotRange]
(properly) return ...
0
votes
1
answer
288
views
Find the Hill Estimator of "alpha"
I am trying to get the Hill estimator of "alpha" and the Hill-plot graph from a standard Cauchy distribution. So, how to get it? Thanks!
Hill estimator can be outlined as follows.
Generate ...
0
votes
0
answers
35
views
How can ParametricPlot3D assign different colors to two curves from a function that returns 2 triples? Yes, I have tried "Evaluate"
I have a funciton of the sort
myFn[t_]:=Module[{...},
(* some computation *)
{ {x1,y1,z1}, {x2, y2, z2} }];
When I call it as:
...
1
vote
1
answer
49
views
Plot in two dimension
I have:
DensityPlot[Pro3x, {x, -5, 5}, {y, -5, 5},
ColorFunction -> "SunsetColors", PlotLegends -> Automatic]
I am getting a plot that is not ...
0
votes
2
answers
153
views
How to construct the direction field for y' = y- cos\[Pi]/2x [duplicate]
How to construct the direction field for y' = y -cos π/2 x I have tried the Plot function Plot[Derivative[1][y][x] == y[x] - (cos π x)/2, y[x], x]
2
votes
0
answers
51
views
Why is dual-scale plotting so complicated per the official function?
The page "How to | Generate Plots with Two Vertical Scales" describes an official recommended way to plot two functions with different vertical axis scales. The solution, in my opinion, is ...
1
vote
1
answer
146
views
Solve y'' -2y' - 3y = 6x + 5 and graph the family of Integral Curves and Highlights the curve that satisfies y(1) = 4, y'(1) = 2
DSolve[{y''[x] - 2 y'[x] - 3 y[x] == 6 x + 4 , y[1] == 4, y'[1] == 2}, y[x], x]
I don't know how to graph the family of Integral Curves and Highlights the curve ...
1
vote
1
answer
61
views
Plot in Mathematica
I got a plot ,
Pro3=E^(-8 - 4 Sqrt[2] x - x^2)/(
2 Sqrt[\[Pi]]) + E^(-8 + 4 Sqrt[2] x - x^2)/(2 Sqrt[\[Pi]])
Is there a way for it to look like
I don't know ...
4
votes
3
answers
516
views
How to display label text outside plot range and enable PlotRangeClipping?
I have been trying to modify a clipped graph by adding a text a label outside the frame, with no success so far.
Code for contour per request to get the rest of the ...
0
votes
1
answer
124
views
Plot Eigenvalues with respect to a parameter
I have a parametrical matrix (18x18) which I want to plot its eigenvalues with respect to a parameter.
For simplicity, lets assume that it is instead a 3x3 matrix which is not fully numerical but ...
1
vote
1
answer
73
views
Plot with Through[{f,g}[x]]... A bug or a misuse of Through[]? [duplicate]
I was expecting
Plot[{Sin[x], Cos[x]}, {x, -1, 1}, PlotLabels -> Automatic]
and
...
31
votes
11
answers
3k
views
Plotting the Star of Bethlehem
Christmas is around the corner! In preparation, consider the polynomial
f[x_,y_]:= 1/10 (4 - x^2 - 2 y^2)^2 + 1/2 (x^2 + y^2)
and define $r=(f_x,f_y)$ using the ...
3
votes
2
answers
209
views
Why does BarLegend change its position when exported?
I have this code to create some DensityPlot with M12.0.0.0 on Ubuntu
...
2
votes
2
answers
298
views
Different Plot Legend Style in the Plot with same code and How to make it good-looking inside the figure
I use Plot to draw two figures and combine them in one figure with the following code.
...
1
vote
1
answer
207
views
I have a function $R \to C$, I want to plot it as the way we can plot parametric equations in the $R^2$. How to do it?
I have a real variable $t$ and a function $f(t)$ giving complex values. How to plot the function for $t$ in a given real interval? Also is there a way to do it in Wolfram Alpha website?
1
vote
1
answer
152
views
Change the size of the ListDensityPlot
I want to put two ListDensityPlot together using "Style" command, but I don't how to control the size of the plot to make it the same height of the legend. The following the is code
...
3
votes
3
answers
426
views
How to plot an array of lines?
I have the data stored in the textfile like this:
0.5 0.5 -0.7 -0.8
0.51 0.51 -0.75 -0.85
0.6 0.1 0.1 1.00
and so on
4 numbers in each row.
Two first numbers means coordinates (x0,y0), two last - (x1,...
-1
votes
1
answer
78
views
Combining multiple graphs in one photo without consulting external programs [closed]
I want to add many plots from Mathematica into one picture and export as a PDF. Usually I select the plot and copy it as an image to Word, however the image reduces the accuracy of some plots.
How can ...
3
votes
2
answers
218
views
How to remove minor ticks from "Framed" plots and overlay two plots?
I have two plots, as seen below, Plot1 and Plot2 with a common x-axis. Each plot has a different range of y-axis and I overlay them. I want to remove the minor ticks from the frames of each plot and ...
2
votes
1
answer
93
views
How to clip several plots in a continuous way
This Code:
...
3
votes
2
answers
87
views
How to change the ● to ◆ in the given code by using MeshStyle?
I use this code
...
4
votes
1
answer
276
views
Blunt arrowhead when exporting 2D plot
I have the following code to generate a 2D plot:
...
2
votes
2
answers
335
views
Color Gradient for Several Plots
I have a Table of Sin[nx] functions where n is an integer. Now my issue is that I have been ...
0
votes
0
answers
131
views
Plotting trajectories over an unit sphere surface
I have a data set which describes the magnetization direction of a material. It is normalized so I would like to plot it as a unit vector which moves over the surface according with the data file.
The ...
9
votes
1
answer
266
views
How can I plot the superimposition of 2 functions for a vibrating circular membrane?
I have only recently discovered Mathematica so I am quite weak with it, posting here as it seems to be the most comprehensive forum online.
My question is entirely based off a previous very high ...
1
vote
1
answer
185
views
Fourier Series of Cosh
I'm trying to calculate the Fourier Series of Cosh[gS[[2]] z]. In the Range of (-b, b) In order to do that, I'm using the ...
1
vote
1
answer
285
views
Extract function from plot
Consider that we have some plot in Mathematica notebook, like an ordinary plot = Plot[f[x],{x,xmin,xmax},PlotRange->All,PlotLegends->...]. Next, assume that <...
4
votes
4
answers
281
views
Fitting for constants
I have this differential equation: $$m\ddot x=-kx^\frac{3}{2}-c\dot x-mg$$ where I want to fit for $k$, $c$. ($g$ is 9.81 and $m$ is 0.3).
This is a model for collision, hence in the data that we have ...
2
votes
1
answer
396
views
Want to get better quality out of a DensityPlot3D[]
The plot shown below was obtained from a similar program mentioned in the following post.
3D Elastic waves in a glass
How can I have a contour bar (color contours) along with the plot?
The code shown ...
3
votes
1
answer
132
views
Is it possible to use different colors for connected portions in Region Plot?
Following my previous question
Move axis and tick labels in RegionPlot to the top, change border color
now, I have the following function
...
2
votes
2
answers
198
views
How to plot a very large table of plots faster?
I'm trying to plot the following table of plots.
The number of plots is very very big (236 196 plots) so it would take very long time to run.
I don't know when the running will end.
Is there any ...
0
votes
1
answer
112
views
How can I plot various points on a world map and compare distances?
How can I plot various points on a world map and compare distances?
For example, the distance between Jerusalem and Westford, MA compared to the distance between Westford, MA and Recife, Brasil? Then ...
7
votes
4
answers
876
views
Drawing hollow disks in 3D with an sphere in center and small spheres on the rings
I was trying to draw the following logo of an atom using Mathematica, but I could only figure out how to draw intersecting ellipses, not a nice logo like below. Do you have any idea? And is ...
4
votes
2
answers
229
views
Move axis and tick labels in RegionPlot to the top, change border color
I use this code
RegionPlot[
Sin[t^(1/3)*y] > 0, {y, 0, 5}, {t, 0, 8},
FrameLabel -> {"y", Rotate["t", 270 Degree]}]
and the result is
...
3
votes
3
answers
88
views
Is it possible to have a RegionPlot of $y$ and $x^3$ for those values of $x$ and $y$ which satisfy $ \sin (x y) > 0$?
I have this function $\sin (x y)$ and want to check where it is positive for $0<x<8$ and $0<y<5$. I use RegionPlot as
...
2
votes
1
answer
110
views
How to ListPlot from Command Line In Math 12?
I almost always use Mathematica from the command line (Mac/Xwindow) and have things set up to plot/display graphics using Preview, which is great.
The problem is, some functions like ListPlot don't ...
-1
votes
1
answer
158
views
PlotStyle options not working [closed]
I have a list of LogLogListPlots, lets name it 'Collection'. 'Collection' has i elements. When representing them all in just one plot I use:
...
4
votes
3
answers
366
views
How can I add a few specific mesh (altitude-like level) curves to a plot?
I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green ...
1
vote
1
answer
79
views
Manipulate ListPlot and Sliders [closed]
I'm trying to Manipulate with a Slider a ListPlot.
Here is the code:
...
1
vote
3
answers
173
views
plotting plot $(- \infty, x]$ for any arbitrary $x$? [closed]
is it possible to plot $(- \infty, x]$ for any arbitrary $x$ on wolfram online? is it possible provide commands?
I am trying to understand the concept of Vapnik-Chervonenkis dimension.
0
votes
2
answers
121
views
Fourier with 2D data [closed]
I have a set of points (x1,y1)......(xn,yn) that represent for example readings from a laser range finder of a certain obstacle. Using these points I want to draw the approximated shape.
As I ...
2
votes
3
answers
477
views
How to ask Mathematica to start $x$ axis from $1$, not $0$ in a plot with frame?
I use this code
...
2
votes
1
answer
72
views
How should I include PlotLegends in the given code to get the given plot?
How can I include PlotLegends in this code
...
3
votes
2
answers
123
views
How to change color of the points and remove the joined line in the given code?
I use this code
...
0
votes
1
answer
75
views
Shortening the answering time?
I want to plot the fonction $(5,5)\ni w\mapsto \lambda(w,k)$ for $k\in\{1,2,3,4\}$ where $\lambda(w,k)$ is defined below on the penultimate line. The answering time looks infinite and I was not even ...
3
votes
3
answers
1k
views
Transforming a 3D into a 2D Plot
I have a ListPointPlot3D in which all points lie on a plane. I'd like to transform it into a simple 2D Plot by looking at the points from an orthogonal direction to ...
2
votes
1
answer
57
views
Issues with Plotlegend
I'm making a 3D plot of the function En1 and I'm attributing its color to the sz1 function below, which contains values spanning from -1 to 1.
...
3
votes
1
answer
1k
views
How to control the numbers of points in the range of a plot
Consider the following code:
fun[x_] := x^2;
Plot[fun[x], {x, -4, 4}]
which simply plots a parabola for the range of -4 to 4. I don't know how many points between -...
1
vote
1
answer
167
views
How to show a line in a Manipulate plot?
I'm trying to display a Graphics line alongside my Manipulate plot but I can't seem to do it because the Graphics and the Plot do not show up together.
Basically, I want to show this line
...
0
votes
1
answer
72
views
Plot many functions from Table with separate graph
Does anyone how can I plot this?
I got many errors saying Infinite expression 1/0.
I want to plot each one on a separate graph from top to bottom with legend about the values of a, b, c, m, n, p.
<...