Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
7
votes
2answers
229 views
How can I plot a loxodrome?
Can someone show me how to plot a rhumb line (loxodrome) in Mathematica via the ParametricPlot function?
Here is what I got so far:
...
2
votes
1answer
158 views
Distance between 3D curves
I would like to determine the distance bewteen two representations of the Lorenz Attractor. I have two 3D representations for different initial conditions and I want to calculate the distance between ...
3
votes
1answer
143 views
Exporting PDF file - incorrect graphic
I export graphics to PDF using:
Export["/path/figure.pdf", plotname]
It gives me more than enough quality for PDFLatex. But somehow, some exported plots have ...
2
votes
3answers
126 views
Plotting a list along with its trend line
Say I have these data:
data = {{1, 3}, {2, 4}, {3, 6}, {4, 7}};
I want to fit these data with a quadratic equation, like this:
...
6
votes
2answers
109 views
Why Interpolation makes ListPlot3D slow?
I'm trying to use ListPlot3D to plot some data, and I'm using the InterpolationOrder option to make the plot smoother. But the ...
-2
votes
0answers
86 views
Phase space Plot [closed]
Using Mathematica 8 EquationTrekker is not working.
Could anyone please help me to find how the phase space will look for this vector fields?
...
-2
votes
1answer
91 views
Plotting a spherical wave [closed]
I need to plot a spherical wave for simulation of Sound Waves in 3D. I have an origin of sound source, say at (0,0,0). I would like to know how can I determine the value of Z coordinate in terms of X, ...
3
votes
1answer
255 views
How can I get better tick spacing for multiple ListLogPlots?
I am using Show with PlotRange -> All to overplot multiple ListLogLogPlot.
The resulting ...
17
votes
5answers
595 views
Scale Insetted Characters to Plot
I am trying to place a curly brace within a plot such that the top/bottom of the curly brace line up with two horizontal lines in the plot:
I have not been able to find a way to make the curly ...
1
vote
1answer
61 views
2
votes
1answer
91 views
Visualizing a 2-dimensional PDF [duplicate]
I have empirical data that describes a 2-dimensional Probability Density Function and I want to visualize that data in a meaningful way using Mathematica. My first instinct is to use a 2D Heat map ...
2
votes
1answer
114 views
Custom (Frame)Ticks fail when using Mathematica's script engine
I want to define my own ticks in a DateListPlot. It works quite well when I use the code in a Mathematica Notebook but breaks somehow when using it via ...
0
votes
1answer
67 views
How to calculate the area of a listplot [duplicate]
I need to calculate the area enclosed in a two-dimensional listplot and following an answer to a similar question I tried this way:
...
7
votes
1answer
130 views
PlotMarkers doesn't inherit PlotStyle when Graphics[a] isn't a List[]
Could somebody explain, why Circle does not inherit the PlotStyle of the plot when used as ...
2
votes
3answers
248 views
Solve and plot an equation that is dependent on a transcendental equation
I am trying to plot a function that uses the values of a transcendental equation as its input values:
y = Tanh[(2 y + x)/2.5]
z = 2.5 * Log[2*Cosh[(2 y + x)/2.5]]
...
3
votes
3answers
96 views
Is there a way to plot the derivative of an implicit function in mathematica?
After having read the manuals and searched extensively, I could not find a way to do the following.
Suppose you have an implicit equation of the form
$y^4 + y^5 = x$, and $y$ is a function of $x$.
...
1
vote
2answers
119 views
Indicating the probability that a weather datum is above/below some given value on a geographic map
With help of the previous questions here, I am analyzing weather data as daily MeanWindSpeed of some cities with the following code:
...
2
votes
1answer
73 views
How to use output from previous line in Plot? [duplicate]
Suppose, I want to solve a equation and want to obtain it's first root. In this case I've used
In[1]=:Solve[b^2 + b*z + 1 == 0, b][[1]]
This gives
...
0
votes
0answers
44 views
Can I specify that Plot or ListPointPlot should place a y-axis on both the LHS and RHS side of a plot?
The title mostly contains the question - how can I specify that Plot or ListPointPlot should place a y-axis on both the LHS and RHS sides of a plot field?
0
votes
0answers
40 views
Plotting a mixture CDF with a truncated distribution in version 7
I'd like to plot the CDF of the following pdf in Mathematica 7:
$$f(x)=0.1 g(x)+0.85 m(x)+0.05 h(x)$$
where
$$
\begin{array}{ccl}
g(x)&:&P(0)=1,\ P(x\neq 0)=0\\
...
0
votes
1answer
76 views
Plotting the Bessel function with a float argument [closed]
The equation I am working with is
$$ E = M_e + \sum_{n = 1}^N\frac{2}{n}\mathcal{J}_n(ne)\sin(nM_e) $$
where $\mathcal{J}_n(x)$ is the nth Bessel function of the first kind.
When I enter the ...
0
votes
1answer
62 views
Plotting solutions to Solve results
I am trying to plot a solution to a Solve result, ie I have a function f(x,y) and I want to plot y=y(x) for when f(x,y) = 0.06366. Here is what I am trying to do
...
1
vote
1answer
159 views
Choosing min/max values of transcendental equation
With help from here, I have succeeded in plotting the equation z = -a Log[2 Cosh[(2 f[x] + x)/a]], with f[x] being defined by ...
0
votes
2answers
138 views
Plotting geodesics of upper half plane
I want to solve (numerically) the geodesics of the upper half plane and plot. The results are quite known (i) straight lines parallel to $y$-axis and (ii) semicircles centered on the $x$-axis. Now the ...
1
vote
1answer
87 views
Switching the axis of a plot [duplicate]
I have a plot but the x and y axis need to be switched. The problem is that I can't explicitly solve for the other so I can change the axis.
...
-6
votes
0answers
111 views
Extracting points data from a 3D curve surface?
I have a 3D data set, and I have used it to create a 3D plot, but some of the data points are errors and need to be removed. How I can I remove the bad points from the plot?
...
0
votes
0answers
31 views
How do I evaluate NIntegrate when one of the bounds is a variable? [duplicate]
I have the function F[x] and I want to plot the integral of it using Plot[NIntegrate[F[n],{n,0,x}],{x,0,5}], but I get the error ...
1
vote
1answer
138 views
Common tangent to a curve
I need to find out the x and y coordinates of the points where the common tangent touches the curve. How can I do this ?
Thanks a lot in advance.
Data points:
...
5
votes
2answers
179 views
Plotting contours of a function for different values of a parameter
I want to draw a picture of $(x-t)^2 + (y-t^2)^2 - t^2$ in $xy$ plane, with different values of $t$. I did it in a very silly way , namely,
...
0
votes
1answer
71 views
Plotting a family of contour plots [duplicate]
How can I plot the following equation with $k$ assumed to be an integer"?
I tried something like this, but it doesn't work:
...
1
vote
1answer
103 views
Improving the plotting time of a very complicated expression
The quatity $R$ is defined by a complicated expression in terms of $a_1,a_2,\ldots,a_n$. Now each $a_i$ is a function of $x$, $a_i(x)$. I would like to know what is the most efficient way to ...
6
votes
3answers
272 views
Plotting $\omega(k_x, k_z)$ in $(\omega, k)$ plane with assumption of $k^2 = k_x^2 + k_z^2$
I'm currently studying atmospheric-gravity waves and their dispersion relations.
For analysis I need to plot the dispersion function:
\begin{equation}
\omega^4 - \omega^2\cdot C_s^2(k_x^2 + ...
-1
votes
2answers
90 views
A simple ListPlot with different colours and a Tooltip
I know that the threads ListPlot with each point a different color and a legend bar and Extracting the coordinate of a particular point of interest from a ListPlot are somehow the answers to my ...
2
votes
1answer
41 views
Why do I have to perform a second ReplaceAll in this InterpolatingFunction?
I have an InterpolatingFunction that I'd like to plot, and I wonder why I have to perform a ReplaceAll on the following function:
...
5
votes
1answer
72 views
Default FontFamily for PlotLabel
This is probably a rather basic question and I presume I am simply unable to make proper use of the Options[] function: I am trying to figure out what the default ...
6
votes
2answers
92 views
Setting OperatorSubstitution to False has issues with PDF and EPS exports. Are these bugs?
In Plot, I would like to use my own font, eg Inconsolata, for operators such as ×, so I set OperatorSubstitution to ...
4
votes
1answer
106 views
ListContourPlot is blocking my geometry
I have a Navier-Stokes solution for a flow past a cylinder. I have attached the DAT file. The columns in the DAT file contain the x,y,u,v,p data, respectively. The DAT file can be obtained from our ...
3
votes
3answers
119 views
Plot sublists as different colors
I have one big list with many sublists inside. All sublists consist of three numbers. For example:
...
0
votes
0answers
74 views
Fourier transform of a signal
I have problem of finding right answer for my problem.
Here is my equation:
$$E(t)=\sum_{n=1}^{\infty} c_n \sin\left(\frac{n \pi}{T}t\right)$$
What have I done:
I have a notebook asking for 3 ...
6
votes
2answers
135 views
1
vote
0answers
82 views
How can I say that all quantities need to be positive (and real)?
Can you say at the beginning of a script in mathematica that you want all the quantities to be positive (and real)? So that in all calculations, only the real values of these quantities will be ...
2
votes
1answer
43 views
Does a manipulation of a plot area produce new data?
You do a ListPlot.
Plot[Sin[x^2], {x, 0, 1}]
pdat1 = With[{fig = Plot[Sin[x^2], {x, 0, 1}]},
First@Cases[fig, Line[x_] :> x, Infinity]];
You ...
0
votes
2answers
93 views
Plot 3D set (or a domain of three-variable function)
is there any way to plot a "3D set" of points subject to certain rules? For example, my task is to find maximum of some function of three variables which have to meet some conditions. Of course I ...
1
vote
1answer
82 views
How to make the plot from geotiff format
I have a "GeoTIFF" format map, and I have imported it into Mathematica, then I used the Graphics to plot a point on the map. ...
1
vote
3answers
134 views
The plot of roots of polynomials
I have polynomial equation like Tribonacci Polynomials for example: $T_3(x)=x^4+x$.
After finding the roots of this polynomial, I want to show these roots in the complex plane.
I have tried lots of ...
5
votes
1answer
56 views
Combine absolute and relative (scaled) coordinates
I am using Inset to add an Epilog to a plot. The position of the images (in my case: framed numbers) can be specified as an ...
4
votes
4answers
125 views
3
votes
1answer
105 views
Manipulate a Plot that contains a variable that contains symbol
This snippet
mm = m
Manipulate[{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}]
(m is not defined anywhere) produces a sadly fixed ...
7
votes
2answers
159 views
How to draw a contour diagram in Mathematica?
This answer at Math.SE contains a neat contour diagram created using Mathematica:
What Mathematica functions I can use to draw diagrams like this?
2
votes
1answer
81 views
Manipulating plot of random iterated function system fractal
I'm generating the Sierpinski Gasket by implementing a chaos game in mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...









