Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
2
votes
1answer
80 views
What causes strange line artifacts to appear in plots with certain PlotRanges?
I have seen this strange plotting artifact occur before and I was able to make it go away by changing the PlotRange. However, this time I need the prescribed PlotRange to be what I define and I get a ...
2
votes
1answer
177 views
Trying to plot a velocity profile in x-y plane
I have a velocity profile for two liquids on top of each other in a pressure driven channel.
The profile is supposed to be parabolic. I plotted them up, but I can't manage to plot them in the x-y ...
1
vote
4answers
158 views
ListPointPlot3D seen from above
I have a couple of {x,y,z} points
a = {{0, 1, 0.}, {50, 1, 0.018931}, {100, 1, 0.02}, {0, 2, 0.}, {50, 2, 0.131}, {100, 2, 0.2}};
and I'm visualizing them with
...
1
vote
3answers
432 views
How to plot a 3D list of points [closed]
I have 3 variables {Eff[i][j], i/15, j/100}. I need to plot them as a 3D figure, the height of the figure is Eff[i][j], which is ...
0
votes
2answers
204 views
Plotting multivariable integration
If I have a multivariable integration like
NIntegrate[x^2 + y^2, {x, 1, 5}, {y, 6, 10}]
But I need to plot its result in terms of ...
30
votes
4answers
828 views
How to visualize 3D fit
I have a data set of x,y,z values and I fit a function of x,y to the data. This works, but I can't come up with a nice way to ...
17
votes
2answers
501 views
Joining and interpolating data points
I wonder what is the best practice for interpolating curves? Usually I'm using BSplineCurve and adjusting SplineWeights so it ...
20
votes
7answers
571 views
Graphical representation of a moving sound source
Some explanation since I have got a specific and another more open-ended question:
I used two microphones in a 90° arrangement (see picture below) to capture sound from a source moving around the room ...
21
votes
3answers
450 views
How can the opacity of a dense data set be automatically chosen?
The problem
In a dense data set plotted with opaque points, data points can pile on top of each other. This can cause serious problems with the interpretation of the plots. I'll use as an example a ...
17
votes
3answers
1k views
Plotting a set of trajectories (not a vector field) in 3D
Consider a set of trajectories in 3D space, that possibly converge. By visualizing trajectories as arrows the result will look crowded as each arrowhead will be placed where the attractor is. In 2D, ...
16
votes
3answers
483 views
Time-series decomposition in Mathematica
I'm studying time-series in R with this book, and there is a nice command in R that creates decompositions. Inside Mathematica 9 the command can be executed as:
...
14
votes
3answers
453 views
Get x and z coordinate from an image and make a parametric surface
In this blog entry, this step is mentioned:
I grabbed an image of a Peugeot wine glass from the web and used the Get Coordinates function to digitize its outline, which I fed to Interpolation to ...
27
votes
3answers
385 views
No warning when extrapolating with Plot
One of the most annoying "features" of Mathematica is that the Plot family does extrapolation on InterpolatingFunctions without ...
19
votes
2answers
366 views
Is there a way to have Plot draw points on a function where the function is undefined as circles as in textbooks?
A very common feature of graphs of functions used throughout textbooks are simple indications, such as open circles, of the points at which a function is undefined. Is there a way to do this in ...
5
votes
2answers
3k views
Plot legend inside a Show [duplicate]
Possible Duplicate:
Using PlotLegends with Show messes up the graphics
I have created a composite plot function:
I want to add a legend to it, but ...
17
votes
3answers
2k views
8
votes
2answers
471 views
What are the possible ways of visualizing a 4D function in Mathematica?
I have a function $F$ that maps the xyz space to a set of reals, more clearly:
$c = F[x,y,z]$
Where $c$,$x$,$y$ and $z$ are reals.
What are the possible ways of visualizing this 3d function in ...
6
votes
2answers
168 views
Exporting BarChart3D as PDF produces artefacts
So I think the following image already shows the problem, similar to Avoiding white lines inside filled area in RegionPlot exported as PDF or PS the pdf export of the chart creates thin lines in the ...
18
votes
2answers
2k views
Marking points of intersection between two curves
I'm trying to illustrate the solutions numerically and graphically for an equation such as Tan[x] == x. I think I did everything ok except I wanted to mark each ...
13
votes
3answers
2k views
adding labels to points in ListPlot
Table[{Re[5 Exp[I 5/2 t]], Im[5 Exp[I 5/2 t]]}, {t, 0, 6}]
ListPlot[%]
This code plots 6 points in the complex plane. To each point I would like to add a label in ...
12
votes
5answers
1k views
Plotting discontinuous functions without spurious vertical segments
Consider the plot of this discontinuous function:
f[x_] := If[2 < x < 3, 0, x]
Plot[f[x], {x, 0, 5}]
I'd like to plot that without the vertical segments.
...
10
votes
7answers
341 views
How to dynamically toggle curves on/off in a crowded Plot?
When multiple curves appear in a single plot, it is useful to interactively turn certain curves on or off to visually compare smaller numbers of curves. It is trivial to put a quick dynamic together, ...
10
votes
2answers
721 views
Plotting complex Sine
I've got another plotting problem. I want to plot Sin[z] where z is complex. So, I've tried the following:
...
16
votes
1answer
203 views
Estimating progress on plots
When plotting a slow function, it would be nice to know how much of the work has already be done. However due to the refinement algorithm, simply monitoring the integration variable doesn't give an ...
12
votes
2answers
526 views
Using a ListDensityPlot to map color onto a ListPlot3D graph
I have a 3 column list of data points. The first two columns correspond to x and y coordinates, with data points creating a surface in the z direction from column 3. This gives me a nice wavy ...
12
votes
4answers
1k views
Graphics plot of point using unfilled circle
I'd like to be able to place points on a plot using Graphics[{Point[{a,b}],....}] but have the plot symbol be an unfilled circle. I've looked around but can't find ...
11
votes
1answer
328 views
Plotting graphics as ASCII plots
I'm occasionally in a situation where I have to use Mathematica on the terminal. I'd like to visualize the solutions I get from NDSolve, but when I use ...
10
votes
1answer
554 views
Make a density list plot/histogram from large, pre-binned data set?
I have a large data set consisting of $\mathcal{O}(10^9)$ two-dimensional points. In order to save memory and time I have pre-binned these into a uniform grid of $500 \times 500$ bins using Fortran. ...
10
votes
3answers
590 views
Manipulating the axis on a ListLinePlot
I am trying to create a plot using ListLinePlot in which the x-axis is represented in a logarithmic scale, and is reversed (so larger values are on the right side). ...
8
votes
2answers
216 views
Making Axes logarithmic in 3d plots
I've been trying to get loglog plots in 3D, but to no avail. My initial approach was to take the logarithm inside the plot i.e
...
2
votes
1answer
282 views
Extracting polygons from 3D contour plot surface
Edit: This question turned out to be two parts so I am going to make this question about only the first part a kguler provided an excellent answer.
Here is a better representation. My actual data ...
11
votes
4answers
355 views
How to make a Line[] with no end?
I'm trying to do this:
In this graph, the secant points are aproximated in order to become the tangent, it seems I need some kind of function which plots a line based on two points and it's points ...
11
votes
1answer
197 views
Unexpected behavior from VectorPlot
I am surprised at the behavior of VectorPlot in the following sense: plotting a vector field and examining the output at a point $(x_0,y_0)$ reveals that Mathematica doesn't draw the tail of the arrow ...
11
votes
6answers
488 views
11
votes
2answers
399 views
Why doesn't PlotMarker option None return no PlotMarkers?
After reading the PlotMarkers documentation it seems to be all or nothing. For example if you wanted markers on some of you lines the code below seems ...
8
votes
4answers
320 views
Showing a rectangular plot on an almost-closed sphere
I am currently teaching some students about the "point at infinity", and how it allows us to treat circles and lines as "the same", etc. I would like to kind of show this happening with a series of ...
8
votes
3answers
389 views
Filling between two 3D surfaces
I know it is possible to create a filling in between two curves on a 2D plot, but is it possible to do the same in 3D?
My attempt like this:
...
8
votes
1answer
238 views
Wrapping a rectangle to form a cylinder
I'd like to make an animation showing how we wrap a rectangle to form a cylinder (by joining a pair of parallel sides).
Here's my first pass:
...
8
votes
4answers
449 views
Color Change of Area under a curve
I am trying to set a graph to show the value of the equity of an investment based on whether the portfolio is invested or in cash. I tried using the ColorFunction, ...
6
votes
3answers
117 views
6
votes
2answers
207 views
Are plotting markers with inscribed letters possible?
I have large data consisting of values obtained by sweeping across three parameters (e, w, and f). I want to plot all this data on one graph using different shapes for e (e.g., circle, triangle, ...
6
votes
0answers
111 views
Break[] inside ColorFunction
f[x_?NumericQ]:= (Do[Break[],{i,1,2}];x)
Plot[x,{x,0,1},ColorFunction->(ColorData["Rainbow"][f[#]]&)]
Break::nofwd: No enclosing For, While, or Do found ...
6
votes
3answers
561 views
How do I plot Thomae's function in Mathematica?
I wanted to plot this function
$$f(x) =\begin{cases}
1 & \text{if } x= 0 \\
\tfrac1{q} & \text{if } x = \tfrac{p}{q}\\
0 & \text{if } x \in \mathbb{R}-\mathbb{Q}
...
5
votes
3answers
257 views
Using PlotLegends
Please don't answer this with "Just trash PlotLegends" or anything like that as I have tried homebrew solutions. I keep running into problems which I can't debug as ...
5
votes
2answers
360 views
How do I draw lines perpendicular to contour lines on ListPlot3D?
I am plotting the voltage in a pool of water with two electrodes.
I have contour lines on my graph at every volt, but I would like to show the electric field lines which are going to be ...
5
votes
3answers
1k views
Mathematica function intersection points with 3D grid
I need to produce a 3-dimensional equispaced grid over a given function in a way, that I can calculate intersection points of the function with the grids edges.
So my first question is how to produce ...
5
votes
1answer
257 views
Exporting a 3D plot into a 3D viewing format and axis scaling
I've been trying to export a Plot3D into an X3D (JVX, VRML) file using the Mathematica's Export function. The problem is that when the PlotRange is large compared to the other two dimensions the ...
4
votes
3answers
312 views
All curves in plot have the same style. Cannot be fixed with Evaluate[]
Usually, when I plot multiple curves in Mathematica
Plot[{x,x^2,x^3},{x,0,1}]
they are given different colors. However, if I try to construct a list inside the ...
3
votes
1answer
99 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 ...
3
votes
1answer
169 views
Exporting a Video of a Simulation of Pendulum Motion
In a series of previous questions, I asked how to solve a series of differential equations describing a series of coupled pendulums, and then how to plot this data by coloring the different pendulums. ...



