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

learn more… | top users | synonyms (11)

8
votes
1answer
436 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 ...
0
votes
3answers
170 views

Can I convert a 3-D plot into a 2-D plot?

I am studying the Landau Free Energy Equation. First of all the plot displayed only shown negative range. can i show the positive range too? (y-axes). Then, can I turn this plot into 2-D Plot? ...
6
votes
0answers
66 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 ...
8
votes
2answers
163 views

Labeled destroys the log scales in “log” plots when notebook is re-opened

Bug introduced in 10 or earlier and persists through 10.4 While testing this pdf export bug caused by Labeled, I noticed that this function also destroys the log ...
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
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 ...
2
votes
1answer
51 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 ...
-1
votes
1answer
83 views

Image of the unit circle under a complex rational function

Let $$f(z)=\dfrac{z(z-a)}{(z-b)(z-c)(z-d)}$$ be a complex rational function with distinct non zero complex numbers $a,b,c$ and $d.$ I need to plot the image of the unit circle $S=\{z\in\mathbb{C} : ...
0
votes
0answers
51 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
91 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
52 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
52 views

How to obtain the best fit values of `a` and `b` [closed]

here is set of data. ...
13
votes
3answers
529 views

Particles bouncing in a 3D box

I made this Manipulate code which shows a pack of particles randomly moving inside a box. It has a huge performance issue. What should be the best way in doing ...
0
votes
1answer
54 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
76 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 ...
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}] ...
2
votes
1answer
72 views
3
votes
2answers
66 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 ...
6
votes
4answers
114 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 ...
1
vote
2answers
127 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
118 views

Animate spherical pendulum

I want to plot the position of Spherical pendulum. First I tried to plot the simple pendulum: ...
1
vote
1answer
72 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
111 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
96 views

ListLogLogPlot with ErrorBars

I have the following data consisting of x, y pairs and errors of y: ...
1
vote
0answers
48 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}]
14
votes
1answer
313 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
89 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
156 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
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: ...
2
votes
2answers
237 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$) ...
4
votes
0answers
55 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
2answers
112 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
31 views

Problem with AspectRatio in ListPlot

...
2
votes
0answers
36 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
77 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
96 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
21 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
72 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
118 views

Low resolution with RegionPlot3D [duplicate]

To draw a cuboid with RegionPlot3D I can simply specify a function: ...
9
votes
0answers
95 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
117 views
1
vote
1answer
132 views

2D and 3D plotting

have the following values: ...
0
votes
2answers
79 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
47 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
211 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
218 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
44 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 ...