Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

learn more… | top users | synonyms (10)

1
vote
2answers
118 views

How to plot coupled Differential equations with changing parameters?

I'm a new user of mathematica. What I'm trying to do is following: I have two coupled non-linear differential equations. Say $x'(t)$ = $A− (B +1)x + x^2 y$ $y'(t) = Bx − x^2 y$ What I want is to ...
0
votes
1answer
107 views

Animate spherical pendulum

I want to plot the position of Spherical pendulum. First I tried to plot the simple pendulum: ...
1
vote
1answer
67 views

Numerical integration plot

I am trying to do a numerical integration plot in Mathematica. Specifically, I want to plot $r$ versus $\tau$ where, $$\frac{dr}{d\tau}=\sqrt{2F(r)}$$ $F$ being a quartic polynomial. The limit of $r$ ...
1
vote
3answers
101 views

Multiple Plots inside a Manipulate with different dynamic variables on their x-axes

I have an expression with lots of variables, and I would like to make several plots of the expression, where the axis in each is a different variable. The idea is to put them side by side inside a ...
1
vote
1answer
87 views

ListLogLogPlot with ErrorBars

I have the following data consisting of x, y pairs and errors of y: ...
1
vote
0answers
44 views

Manipulate Listplot of table [closed]

There is a simple code but it doesn't work Manipulate[ ListPlot[ {Table[ {Sin[Pi/4 Cos[t]], -Cos[Pi/4 Cos[t]]}, {t, 1, n, 0.1}]}], {n, 1, 20}]
13
votes
1answer
297 views

Ticks in v10 - a bug or undocumented change

Bug introduced in 10.0 and fixed in 10.4 In this post @Heike provides this code: ...
3
votes
2answers
78 views

Animating 3D Parametric Plot

I'm trying to create an animation of Lorenz equation as a function of t. Here is the numerical solution of the equation: ...
3
votes
2answers
150 views

How to plot coordinates with different colors on a map?

How can I plot different sets of coordinates with different colors? For example, the two maps below would be merged into one map, with two colors. I'm using the commands below to create the maps ...
0
votes
1answer
74 views

Rotate from 0<=X<infinity [closed]

Find the volume of the solid obtained by rotating the region below the graph of y = e^(−x) about the x-axis for 0 ≤ x < ∞ With that given expression I tried to do it by doing the following code: ...
2
votes
2answers
223 views

How to create several 3D plots of 2D functions in Mathematica?

I have multiple 2D functions defined and I'd like to plot them in (what I call) a fence plot. An example of a fence plot is The three functions I want to plot (all defined on $-1 <= x <= 1$) ...
3
votes
0answers
50 views

Possible bug with ticks with superscripts, Labeled and Export to PDF

Here is the minimal working example that gives me problems with Mathematica 10.4 on OSX ...
1
vote
1answer
74 views

How to do a parametric histogram?

Is it possible to draw a spectral histogram from two random sets ? More specifically, I have these two random functions (fmin, ...
1
vote
1answer
30 views

Problem with AspectRatio in ListPlot

...
2
votes
0answers
35 views

vector graphics of a ListPlot3D

My problem is quite simple and yet I can't seem to find a solution to it. I'm trying to create a figure in vector format but if I export it to EPS I get a very bad gradient in the colors. If I export ...
1
vote
1answer
67 views

Set of flat curves with filling in 3D plot [duplicate]

I'm trying to draw 3D plot from my experimental points in the way shown at the figure below: I tried to use ListPointPlot3D for that, but obviously there is no option Joined as in ListPlot. ...
0
votes
1answer
58 views

Plotting an ellipse given axial ratio and orientation

I have already looked at this answer but couldn't figure out how to use it in my case, particularly due to needing to include the orientation. I currently have a value for my axial ratio and a value ...
3
votes
1answer
87 views

Rotate the area between curves around the y axis

I'm struggling to figure out how the format this in Mathematica and could really use some help. My problem is this: Plot the solid of revolution obtained by rotating the region enclosed by the graphs ...
0
votes
0answers
17 views

CustomTicks LogPlot issue [duplicate]

I have Mathematica 10.3. When I use CustomTicks (part of SciDraw) and I want to use LogTicks ...
0
votes
2answers
68 views

ListDensityPlot boundary is extrapolated

I have a solution of a finite element analysis and I have a list of data {{x,y,a}....} where x, y are the coordinates and a is the value to be plotted. The geometry is half of a tooth like this but ...
1
vote
1answer
115 views

Low resolution with RegionPlot3D [duplicate]

To draw a cuboid with RegionPlot3D I can simply specify a function: ...
9
votes
0answers
88 views

ErrorListPlot ignores some exact data points

Possible bug? Or am I missing something / expecting too much? Forgive the seemingly obscure data points but they're where I've noticed a problem. ...
1
vote
1answer
113 views
1
vote
1answer
132 views

2D and 3D plotting

have the following values: ...
0
votes
2answers
78 views

Dynamic Plots with ContourPlot3D

I have an equation \begin{equation} x^2+y^2+z^2+v^2+2rvz=1. \end{equation} Given a value for $r$ and $v$, I know that the equation is a surface. How do I produce a dynamic plot so that I could see how ...
1
vote
1answer
46 views

Polar and Parametric Plots not showing up

I bet this has asked before, but I can't seem to find an answer anywhere. I have x and y functions which, individually plotted, are showing up fine, but when I try to plot the parametrically, the ...
2
votes
2answers
205 views

How to plot a given function over its domain

How can I plot Sqrt[x - x^3]/(x^2 + 1) in all its domain? Domain = FunctionDomain[{ Sqrt[x - x^3]/(x^2 + 1)}, x] Domain ...
0
votes
0answers
31 views

Envelope of a given table (or plot)

Is there any way to construct an envelope of a given table (list) or plot? For example, I have plotted (used ListPlot of txt-file) And then I want to plot the envelope (upper or lower) of this plot ...
6
votes
2answers
212 views

Filling smoothed histogram with area representing standard deviation?

I've done a cluster analysis on a set of datapoints (listV) and used Mathematica to obtain a smoothed histogram with the x and y axes inverted. To aid visualisation I would like to fill the area ...
3
votes
1answer
41 views

Problem with ParametricPlot

I am trying to use the parametricplot to switch the x and y axis, but seems it not working. Also, since ParametricPlot[{w, k1}, {w, 0, 2*10^16}] and Plot[k1,{w, 0, 2*10^16}] should be equivalent ...
2
votes
1answer
73 views

Plot a revolution surface, with two cross sections to show its shape

I'm having trouble plotting a revolution surface with intersections. What I have done is shown in the figure, with the help of SphericalPlot3D: . But I can't plot ...
4
votes
2answers
563 views

Manipulate 2D random walk

Consider the first $10000$ digits of $\sqrt{2}$ and present them as a “random walk” by converting them in base 4 representing 4 directions. Following code produces this random walk ...
3
votes
1answer
77 views

Plotting eigenvalues smoothly

I am trying to plot how the eigenvalues of a matrix change by changing a given a parameter t. Of course the ordering of the eigenvalues does not matter mathematically but it does when I want to make ...
1
vote
1answer
45 views

Plot with Color Data as Third Coordinate of Ordered Pairs

Suppose I have a data set data={{0,0,-1},{0,1,-0.5},{1,1,0},{2,1,0.5},{2,2,1}}; where the first two coordinates are x and y values, and the third is input for ...
0
votes
1answer
89 views

Plotting a function of vectors and sample points [closed]

I need to plot a function of vectors. \begin{equation} 2y\vec{r}\cdot\vec{x}+2y^2+\vec{x}\cdot\vec{x}=1. \end{equation} This is actually an equation of constraint. Given $\vec{r}$, with ...
0
votes
1answer
74 views

How to ListContourPlot a functional eigenvalue spectrum?

We have a (Hermitian) matrix of some finite dimension (n) whose elements are functions of real variables x and y. We wish to plot contours of the spectrum (level sets of the n real eigenvalues) at ...
2
votes
1answer
66 views

Can I put Plotlegend to each my rho values?

I want to put PlotLegend[] into my graph for every rho value. Graph P is for ...
0
votes
0answers
22 views

About cube root [duplicate]

Why does Wolfram alpha plot the negative real part of the cube root in this way?
-1
votes
1answer
57 views

How to plot a function, that is not properly defined in mathematica? [closed]

After rather long and relatively complicated calcuations, I finally got to a point where all my $x(t)$ functions are ...
1
vote
2answers
77 views

How to Set the Ratio of Units of the Axes in a 2D Plot?

Consider the following plot Plot[{Sin[x]}, {x, 0, 2*Pi}, PlotRange -> {{0, 2*Pi}, {-1.05, 1.05}}, AxesLabel -> {x, y}, AxesOrigin -> {0, 0}] It is ...
9
votes
1answer
153 views

Problem with PlotLabels

Bug introduced in 10.4 and persists through 10.4.1 Version 10.4 introduced the PlotLabels option in ListPlot and similar ...
3
votes
1answer
73 views

Understanding FaceGrids

I'm having difficulties with FaceGrids. This should be pretty basic, but the documentation isn't helpfull with its fancy and mostly useless examples (again!) I ...
3
votes
1answer
46 views

Plotting a vector function composed of piecewise scalar functions

I am relatively new to Mathematica, and am having difficulty doing something that is conceptually very simple. I am trying to plot a vector field in which the vector function is composed of piecewise ...
2
votes
1answer
54 views

Same mesh graduations on a plane as axes ticks

I need to define a plane with a mesh as a reference plane. Currently, the mesh lines don't match the axes ticks. That plane is defined so it can adapt automatically to a variable scale in a ...
2
votes
2answers
72 views

How may I vary the opacity of mesh points by reference to their original coordinates

I'm using ParametricPlot3D to show only the mesh points, but would like to vary their opacity by reference to a function of their original position. ...
1
vote
1answer
57 views

How to rescale a NDSolve curve to fit in a box?

I'm numerically solving some differential equations and the 3D curve I get has a very complicated shape and size that cannot be predicted from the initial conditions. I need to rescale the whole ...
2
votes
0answers
65 views

To show optimization movement when using FindMinimum [closed]

The code is suppose to show the movement of optimization points from the first until the minimum point is found on the Contour Plot. However, the plot that I have is not showing the correct movement ...
0
votes
0answers
24 views

Need help in plotting surface with Show[] and Plot3D[] [duplicate]

I have the following surface to plot $$(1-\frac{z^2}{4})^{16}=x^2+y^2$$ I decied to express $x$ as $x=x(y,z)$. And met the difficulty when combining 2 plots. Here is what I've done. As u see I get ...
0
votes
1answer
57 views

How to plot an implicit function? [closed]

Usually to plot an equation like $y=f(x)$, you do so by using Plot[f[x],{x,0,10}] However, my equation takes the form $f(x,y)=0$ and $y$ can't be separated to ...
1
vote
1answer
45 views

Plot of a piecewise function misbehaving [closed]

Hi: I am trying to plot a piecewise function. What's weird is that the plot either (a) does not appear at all, or (b) depending on settings, either appears as a horizontal/vertical time. I must be ...