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

learn more… | top users | synonyms (10)

0
votes
1answer
45 views

Plot bivariate data with marginals using Graphics3D [duplicate]

I have some 2D data (a load of random walks) that I would like to show using a bivariate line plot with marginals attached (I would like the output to look similar to that in this question.) The ...
2
votes
1answer
56 views

Different fonts in the same Style in a Plot

I have a plot, not important what it is and I have a linelegend as below: ...
8
votes
1answer
435 views

What is going on in this plot?

Plot[{ArgMax[Cos[t] Sinc[2*Pi kl (Sin[t] - 1/Sqrt[2])], t]*180/Pi, 45}, {kl, 0, 10}, PlotRange -> Full] I want to know what causes this, and how to fix it ...
2
votes
3answers
4k views

How can I change the position of my plot legends?

As the title indicates, I want to change the current position of the legends in a combined plot. The Mathematica code I used is ...
-1
votes
0answers
46 views

Errors- Calculating Gaussian Curvature for an Elliptical curve

I am trying to implement gaussian curvature for an elliptical curve. I apologize for the lack of brevity in my post. Below is the code that I am working on and the two errors that i am getting are ...
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 ...
6
votes
0answers
62 views

Generating OpenCL C code [closed]

I'm trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I'd like to be able to use ...
65
votes
2answers
2k views

Is it possible to define a new PlotTheme?

In version 10 one can define, say, $PlotTheme = "Scientific" Which changes the appearance of all plots. This is fantastic because on the one hand I can have nice ...
2
votes
3answers
153 views

Export NDSolve results

I can see the correct result of my NDSolve when I plot them with large PlotPoints. ...
13
votes
1answer
299 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
4answers
242 views

Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
2
votes
0answers
45 views

Optimization for iterating and plotting a matrix product and its elements?

I have an iterative matrix product of this type Since i didnt knew how to do it, I explicitly wrote the product as {Ayn + Bxn, Cyn + Dxn} and evaluated it with the NestList construct ...
0
votes
0answers
41 views

Using ParametricPlot to Display result of Maximize

One would expect that: Plot[f[x],{x,0,1/2}] and ParametricPlot[{x,f[x]},{x,0,1/2}] would always yield identical outputs. ...
2
votes
1answer
47 views

ShowLegend - length of legend items

I have the following example code and would like to make the lines in the legend longer - how can that be done? Is there another possibility to plot such a legend when using ...
0
votes
0answers
49 views

Solution of a 5D Hypersurface and a 3D Surface

So I have an equation given by \begin{equation} 2rvz+v^2+x^2+y^2+z^2=1 \end{equation} which is a hypersurface and I want to intersect it with another surface \begin{equation} 1+v+rz=0 \end{equation} ...
0
votes
1answer
88 views

How to Find minimum and maximum using `FindMaximum[]` and `FindMinimum[]`

this is the data that i use to plot. data_damped_osccilation this is my code so far, however it still give me error ...
0
votes
0answers
50 views

Making Multiple Curves with ListLinePlot for Fixed Increments

I want to make a plot with, multiple curves, for fixed values of inc : where my x values are (c1+c2)/2) and my ...
0
votes
1answer
51 views
0
votes
1answer
51 views

Why my Function Has no Output Plot?

Below is my commands on a mathematica script to plot a function. In order to see why the function has issue to be plotted, I have tried to plot the intermediate functions one-by-one. It seems that my ...
0
votes
1answer
74 views

ListPlot and Show n plots from two lists with large n

For the context, I have been dealing with Random Matrices and Dyson Brownian motion. I have two lists, the first one contains the number of steps, so ...
1
vote
3answers
103 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 ...
2
votes
1answer
82 views

How to do a ParametricPlot within a subregion

I currently have the following parametric plot. ParametricPlot[{(b - a) x/b + a x/r, (b - a) y/b + a y/r} /. {a -> 2, b -> 3}, {x, -4, 4}, {y, -4, 4}] ...
5
votes
4answers
110 views

How to add/insert a well aligned graphics on top of another one?

I need to add a small graphics on top of a larger one, and the small graphics should stick very close to the large one, with their axis aligned. Here's a minimal code to work with, using some ...
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
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
120 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
110 views

Animate spherical pendulum

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

ListLogLogPlot with ErrorBars

I have the following data consisting of x, y pairs and errors of y: ...
1
vote
1answer
69 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
45 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
80 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
76 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
153 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
224 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
88 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
89 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 ...