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

learn more… | top users | synonyms (12)

0
votes
2answers
107 views

Plotting complex functions to find solutions

Is ParametricPlot3D the best way to plot complex functions to find solutions? The algebra for $e^z = 2 i$ tells me that there are infinite solutions at $\frac{\pi}{2} + 2 n \pi$ for all $n \in \...
5
votes
3answers
414 views

How to calculate a list without loop?

I have pairs of numbers {a1, b1}, {a2, b2}, {a3, b3}, ..., ...
1
vote
1answer
106 views

How to border legends in ListLinePlot

I'm trying to use ListLinePlot for 3 data sets, and I want to put borders for my legends. Here is my code: ...
3
votes
2answers
77 views

Converting x,y pairs to an image: alternative to Histogram3D for sparse data?

I have a list of {x, y} integer pairs representing single events in pixel coordinates in the {x, y} plane, with occasional ...
0
votes
0answers
31 views

finding RGBcolors of the default used colored plots [duplicate]

When I use of plot in Mathematica, this uses of default colors for plotting. ...
3
votes
1answer
167 views

Animating magnetic field lines on a circle

So I want to create a changing vector as a function of theta and have it's origin stay on the path of a circle. The vector I want to plot is: ...
1
vote
2answers
79 views
1
vote
1answer
70 views

What is the shortest way to make a lot of plots with different axes for the same data?

I am trying to make my code readable and nice. My functions are ...
31
votes
1answer
852 views

Terrifying performance decrease for contour/density plots in v10.1 -> 10.3

Bug introduced in 10.3 and fixed in 10.3.1 I setup for download a test dataset at http://www.inrim.it/~magni/cm.dat.gz (a set of 64800 triplets x,y,z). The behavior can be reproduced with the ...
2
votes
2answers
140 views

Why do the boundaries from RegionPlot not match the contours from ContourPlot?

When I try to plot a 2D interpolation, coloring areas with RegionPlot and adding contours with ContourPlot, the boundary given ...
4
votes
1answer
78 views

How to get a 2D Plot from a 3D plot?

I have the following code below, that relates Concentration C[x,t], Time [t] and Space [x]: ...
1
vote
0answers
56 views
13
votes
2answers
407 views

How to determine whether a point is within a polygon in Mathematica 10

In Mathematica 9, I was able to use the function Graphics`Mesh`InPolygonQ to determine whether a given point was within a polygon. How do I do this in Mathematica ...
3
votes
1answer
100 views

DensityPlot with the same color scale in Show

I am trying to align color scale for continuous plots that have different ranges. Here the color scale exhibits a discontinuity even with the same PlotRange ...
7
votes
1answer
282 views

Plot the 3D complement

I have plotted a 3D region using Show[RegionPlot3D[set1, opt1], RegionPlot3D[set2, opt2], RegionPlot3D[set3, opt3]] So this command plots the union in $\mathbb R^...
0
votes
1answer
199 views

Add arrow to parametric plot [duplicate]

I'm trying to add arrow to a simple parametric plot I'm doing: ...
3
votes
2answers
87 views

How to label a single Tick mark at a specified tick location

I am attempting to annotate a graph in a very simple manner. This is 2D plot of a function over a range of x-values, for example, let's say 0 to 15. By default, my plot labels the Tick marks as 0, 5,...
1
vote
0answers
18 views

Plotting and using NIntegrate [duplicate]

Mathematica is throwing error messages when I try to plot what I want. As a minimal working example of this problem, the following code runs fine: ...
3
votes
3answers
124 views

Filling between multivalued curve and normal curve

I have a multivalued curve p1 (left curve) and a normal curve xpr2 (right), and I want to fill the middle region between them as blue, and the rightmost region as red. However, I get this extra ...
4
votes
2answers
360 views

How to plot the Fibonacci convergence to the golden ratio?

I am interested to plot a convergence result of the Fibonacci sequence, namely $\frac{F(n+1)}{F(n)}\rightarrow\phi$ as $n\rightarrow\infty$. So far I have created the following plot: So, I am ...
4
votes
3answers
146 views

Displaying horizontal axis as legend of a chart/plot?

I'm trying to do a BarChart[] of some data and I'd like to add an additional XX axis below the chart with some additional information. This may also be done with an ...
3
votes
2answers
124 views

Customized ListPlot

I have an external data file containing the elements (t,x,y,px,py) of an orbit. Here is a sample data file. Now I want to ...
6
votes
2answers
326 views

Graphically solving a linear programming problem

I try to realize the graphical linear programming method. Here is my code ...
9
votes
1answer
112 views

Filling option generates extra PlotMarkers in ListLinePlot

Bug introduced in 8 or earlier and persists through 10.4 or later Whenever the blue line drops below the orange one MMA (10.0) inserts two additional plotmarkers: ...
0
votes
0answers
112 views

Infinity::indet: Indeterminate expression 0. ComplexInfinity encountered

I am somewhat new with Mathematica, and I am doing a spherical pendulum example to improve my skills. However, When I try to use NDSolve and Plot, I get the following errors: Infinity::indet: ...
1
vote
2answers
183 views

How do I extract peak frequencies? [closed]

Suppose I have large text file filled with numerical data. Then I do Fourier operation with this file and plot the result: ...
2
votes
5answers
114 views

How to plot multiple 3D plots on the same graphic [closed]

This is the code that I was able to make h[x_]:= x^2; a = 1; b = 5; n = 5; dx = b-a/n; Those are my parameters ...
4
votes
2answers
132 views

Two overlapped spheres with boundary lines

How can I have two overlapped spheres given by ...
3
votes
1answer
122 views

How to specify the plot region for ListPlot3D?

Now I'm trying to solve a PDE and the solving domain is not regular, suppose it is a map. I used the finite element method to solve it and every nodes' value have been got, and now I want to use ...
3
votes
1answer
150 views

Update or Animate an ArrayPlot or MatrixPlot?

I am trying to add new row or column or points to a 2D plot as I keep generating the values. The trick is by using this method I will not be required to store the big array or matrix and will be ...
1
vote
0answers
144 views

How can I make a smoothed 3D plot from a list of data? [closed]

I have a list of data points that I would like to turn into a 3D Surface with adjustable degree of smoothing for readability. The data consist of absorption values between -0.01 and 0.01 measured at ...
5
votes
4answers
109 views

How to force MatrixPlot to differentiate distinct expr?

I thought MatrixPlot can differentiate different expressions in color until I found this: ...
5
votes
1answer
98 views

Why does an expression plot differently if it is pre-evaluated?

I am experiencing strange behavior within Mathematica when plotting the InverseLaplaceTransform of a function. Essentially, I get a different plot when I paste in ...
1
vote
1answer
113 views

How to color-code a 3D point plot

I am doing a Finite Difference Method for 3D heat diffusion, so I need my ListPointPlot3D to be color coded on a range from deep red to deep blue depending on the temperature of the point. My ...
14
votes
3answers
443 views

Can anyone explain this weird Plot3D error?

This is more of a fun question because I see the source of the error, but cannot explain what Plot3D is doing. Can you figure it out? ...
3
votes
1answer
61 views

How can I plot points generated by a Verlet Integration?

So, I have this code for Verlet Integration: ...
2
votes
0answers
77 views

plot focused spot [closed]

I want to plot the first row of Figure 2 and Figure 3 on page 3 in this paper: http://www.eng.yale.edu/groberlab/pdf/spot.pdf So I am really stuck and I can not find my mistake where it went wrong ...
3
votes
1answer
89 views

Incorrect Output of ListPlot using PlotMarkers with text

I am not sure what I am doing wrong in my code. I just want illustrate four columns consisted of different numbers as plot markers. ...
4
votes
1answer
116 views

ListVectorPlot crashes kernel after two evaluations

I am currently trying to produce many plots by using ListVectorPlot, but every time I re-evaluate my code, the kernel crashes. I have set $HistoryLength=0 and ...
1
vote
1answer
96 views

Is it possible to use vectorized Plot Legend?

I upload data using the following code data = Import["L" <> # <> ".dat"] &/@{"10", "102", "103", "104"}; My function is ...
0
votes
1answer
64 views

Is there any way to plot function from other function?

For example, I have a function W[L_, m_] := 1 + 3 L + 2 L^2 - 6 m - 6 Lm + 6 m^2 I also have r = m/L What is the easiest ...
1
vote
0answers
68 views

What is the meaning of the Legend values for DensityHistogram and SmoothDensityHistogram? [closed]

I generate some random 2D data points, then look at the histogram in three different ways. ...
2
votes
2answers
68 views

How to solve or plot roots of the equation involves Bessel function of first and second kind?

Here is my equation x^2 + BesselJ[m,k*x^2]*x + k*BesselK[m,k]==0. I would like to solve this equation for different initial guesses of ...
1
vote
2answers
54 views

Bin data from an imported excel file by adding 5 elemets of y axis each [closed]

So i imported a file from excel and viewed it as a grid. but now i need to add groups of 5 elements from the y axis and plot them against every fifth entry from the x axis. Thanks Edit: Sorry about ...
0
votes
0answers
67 views

Help needed, building a trajectory model [duplicate]

I'm trying to build a trajectory model that considers air-friction. The first step, I reckon is to find the Function of both vertical and horizontal displacement with time, then I can use ...
6
votes
3answers
151 views

ListDensityPlot in Polar coordinates with a higher efficiency

I have data like this f[r,theta] and cells number are about 600*600 (uniform mesh) The original data has the property of uniform mesh for ...
3
votes
2answers
135 views

Interval notation for NumberLinePlot

Consider: NumberLinePlot[Abs[3 - 4 x] < 2, x, PlotStyle -> {Thick, Blue, PointSize[Large]}, Ticks -> {Range[0, 1.5, .25]}] Which produces this image: ...
7
votes
3answers
379 views

Can't figure out how to plot this function

I've got a real nasty function that I can't figure out how to plot. The function is $\qquad f(k) = \pm\sqrt{1+4\cos^{2}(k/2)+4\cos(k/2)\cos(p)}$ from $k=-\pi$ to $k=\pi$, which doesn't look so bad,...
2
votes
3answers
233 views

How to draw lines between specified dots on ListPlot?

I would like to create a plot where I have unconnected dots and some connected. So far, I have figured out how to draw the dots. My code is the following: ...
3
votes
0answers
53 views

Problem plotting 3D data with wildly different scales - only when data is in the form of tuples [duplicate]

I have some data and values for the variables, ...