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

learn more… | top users | synonyms (10)

3
votes
2answers
64 views

NumberLinePlot — scaling coincident points

it doesn't seem the native function NumberLinePlot is able to scale points to reflect coincident points. When an expression such as ...
4
votes
3answers
133 views

A simple question about replaceall and plotting

I was trying to replicate the picture produced on this Wikipedia page with the astroid emerging as the envelope of normals to the ellipse. I ran into issues using the ...
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
81 views

ParametricPlot3D crashes Kernel when called repeatedly in loop

I have a parametric function surf[u,v]. It can be plotted successfully like this: ...
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
87 views

ListLogLogPlot with ErrorBars

I have the following data consisting of x, y pairs and errors of y: ...
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
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}]
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: ...
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: ...
1
vote
1answer
116 views

Low resolution with RegionPlot3D [duplicate]

To draw a cuboid with RegionPlot3D I can simply specify a function: ...
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 ...
44
votes
5answers
10k views

How do I plot coordinates (latitude and longitude pairs) on a geographic map?

I'm attempting for the first time to create a map within Mathematica. In particular, I would like to take an output of points and plot them according to their lat/long values over a geographic map. I ...
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$) ...
23
votes
5answers
4k views

Plotting several functions

I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both "axes", more like how ...
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. ...
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 ...
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 ...
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 ...
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 ...
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. ...
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
132 views

2D and 3D plotting

have the following values: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
10
votes
4answers
1k views

How can I compute and plot the 95% confidence bands for a fitted logistic regression model?

I have a set of binary data that I' d like to fit a logistic regression model to and show the 95% confidence band around the fitted function. I can produce the regression model but how do I compute ...
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 ...
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 ...
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. ...
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 ...
3
votes
1answer
123 views

Show the locus of the vertex of parabola

For the parabola y = a x^2+ b x + c I want to see the locus of the vertex as b varies (with ...
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 ...
1
vote
2answers
85 views

Issues with ColorFunction

I have a function f[u,v] from $R^2 \to R$ that I want to use like coloring function over the surface: ...
17
votes
0answers
292 views

RegionPlot returning a number

Bug introduced in 10.0 and persisting through 10.4 or later I had updated my mathematica to version 10 few days ago. And I had been shocked by the following fact: ...
2
votes
0answers
66 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
1answer
35 views

Manipulate different function and variable

I have list of functions such that test = {test1[a,x], test2[a,x], test3[a,x]}; I would like to plot this three function using manipulation ...
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 ...