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

learn more… | top users | synonyms (12)

14
votes
3answers
452 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
63 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
90 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
125 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
97 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
69 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
77 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
55 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
68 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
154 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
383 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
243 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, ...
2
votes
1answer
117 views

Displaying on a Smartboard [closed]

I got a very nice answer on Region bounded by x^2+y^2=1, y=z, x=0, z=0, in first octant, using this code: ...
2
votes
1answer
99 views

making 3d listplot smoother? [closed]

This is a continuation of my previous two questions: this one and this one. I would like to plot the following function $$ p(x,t) = \frac{e^{-1/A}}{A}\sum_{i=1}^{500}e^{c_i\, t}m_i(x)\frac{z_i}{w_i}, $...
7
votes
3answers
1k views

Region bounded by x^2+y^2=1, y=z, x=0, z=0, in first octant

I need to draw (pencil and paper) the region bounded by $x^2+y^2=1$, $y=z$, $x=0$, and $z=0$ in the first octant. So the first assistance I asked of Mathematica is: ...
0
votes
2answers
75 views

Plotting a list against a list [duplicate]

l1={1,2,3,4} l2={5,6,7,8} I want to plot the l2 against l1. that is at value ...
-2
votes
1answer
38 views

Plotting a function with Exponential, Trigonometric functions [closed]

I didn't manage to plot the following function : f[x_] := Exp[2*x] - Log[e + x]/(x^3 + Sin[x]*Cos[x]) Plot[f[x], {x, -10, 10}] Can you help me to correct my code ...
1
vote
0answers
68 views

Binding a variable to an unbound variable [closed]

I'm trying to do something like the following: (minimal example, f2 unbound) ...
6
votes
1answer
135 views

Plotting issue — possible bug?

Issue: a plot that previously worked in version 10.1 (see first figure below) produced an odd looking graph when re-evaluated in version 10.2 (see second graph). I have downloaded the latest version, ...
0
votes
2answers
119 views

Strange behavior of Plot over a domain containing very large x-values

When I plot a function of (1 + 1/n)^n,There you can see: Plot[{(1 + 1/n)^n, E}, {n, 1, 10^13}] When I add a option of ...
0
votes
0answers
182 views

Mathematica can't plot at specific range?

Intentional pseudo-Bug (Thing) introduced in version 1.0 and persisting through 10.3 I hope that development team fix this issue, will improve in a future release. I have a function that I ...
1
vote
0answers
97 views

ContourPlot3D in cylindrical coordinates [closed]

My function x=x(k,phi) is defined implicetly: h3(x,k,phi)==0. Function h3 is defined through ...
8
votes
1answer
95 views

Exported graphics have issues with word wrapping

I am trying to export a plot as an image. My actual plot uses Show to combine a ListPlot and several Plots, with a common legend. The code below is a dummy version that produces the same problem: <...
3
votes
2answers
253 views

gradient 2D-plot

We have the bellow plot: Plot[Sin[2 x]^2 Cos[1/2 x]^2, {x, 0, 2 \[Pi]}, PlotStyle -> {{Thickness[0.008], AbsoluteDashing[{15, 4, 4, 5}]}}] The desired case ...
5
votes
1answer
93 views

Radial range in polar plot

I'm trying to make a polar plot. The radial range (radius of the circle) is automatically set at 1.2. I want to change this to 1. My code is: ...
5
votes
3answers
97 views

How to ignore year in DateListPlot

I just upgraded to Mathematica 10, and I am trying to get the hang of the new TimeSeries data objects, which are preventing my old strategy of overlaying data from ...
9
votes
1answer
159 views

Coloring spiral structures

In a previous question Original post @Julian S. proposed a method for coloring spiral structures. However this method works well only if the two spirals do not merge together. For example, for these ...
2
votes
1answer
110 views

How to plot a figure according to two equations?

There are two equations like this: $a=f(x,y)$ and $z=g(x,y)$, where $a$ is a constant. In principle, one can solve $a=f(x,y)$ for $y$ as $y=k(x)$ and substitute it into the second equation to obtain $...
0
votes
0answers
56 views

How to delete part of a constant plot?

I have a plot that looks like this: and what bothers me is that the center straight line is that long. The plot would look a lot better if I were somehow able to delete everything from -3 to 3. Is ...
5
votes
1answer
107 views

Hatching pattern in ColorRules for MatrixPlot

Using ColorRules with MatrixPlot, how does one get a hatching pattern in one of the cells? For example, consider the ...
2
votes
2answers
91 views

Plotting cones from data read from a file

I would like to plot cones centered at specific points in a lattice and with different orientations and colors that depend on them. For this, I have the data in an external file with 11 columns: 1) ...
15
votes
0answers
185 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
2
votes
0answers
52 views

Mathematica Manipulate, Plot, Piecewise [duplicate]

I have two functions h2 and v2 that I need to graph using Piecewise and be able to ...
1
vote
0answers
26 views

How to label the points in `ListPointPlot3D` [duplicate]

To label 2D point plot is easy, eg ListPlot[Labeled[#[[1]], #[[2]]] & /@ {{1, 1} -> 1, {6, 5} -> 2, {4, 1} -> 3}, AspectRatio -> Automatic] ...
1
vote
0answers
97 views

Theodorus Spiral [closed]

If the successive hypotenuses of the Theodorus Spiral are getting longer but the difference between the lengths is getting smaller reducing the distance between windings to pi, why pi?
2
votes
3answers
71 views

Dual plot not working [closed]

I'm trying to plot the figure-eight curve. g1 = Plot[y = Sqrt[x^2 - x^4], {x, -1, 1}] g2 = Plot[y = -Sqrt[x^2 - x^4], {x, -1, 1}] Show[g1, g2 ] ...
1
vote
1answer
74 views

Plot discontinuous function $\frac{2-x}{|x-2|}(x + 2)$ [duplicate]

I'd like to ask you about the way to plot discontinuous function $\frac{2-x}{|x-2|}(x + 2)$. What Wolfram Alpha produces: "DIY" version is below. How to achieve similar effect in Mathematica?
5
votes
1answer
91 views

Remove Tick Marks without removing Numbers on Paired Histogram

I have formatting problem that I can't figure out. I'm trying to remove the tick marks on a paired histogram without removing the numbers. The trick with other plots is to make the opacity of the ...
3
votes
1answer
126 views

Efficiently generating plots from lists of differing lengths

I guess this is more of an informatic question. A quite complicated function of mine generates me a list of valid points, depending on a parameter, like this: ...
3
votes
1answer
118 views

Mathematica freezes at 3DPlot

I am using Mathematica 10.1. Mathematica constantly freezes on the first or the second attempt to display a 3D Graphic (Plot3D, ListPlot3D, Show..). Here's a simple example ...
2
votes
1answer
57 views

Issue with plotting function

I can't seem to work out why nothing is showing when I try to plot h[t] in the example below: ...
1
vote
1answer
159 views

How can I plot legends on only some of my curves that all plotted together?

I am using ListPlot to plot many lines in the same graph. I want to put in a legend but only for a subset of these lines. For example ...
7
votes
3answers
221 views

ListPlot will not color markers in accordance with my color function

I have the following color table: colTable = {{Black}, Table[{Blend[{Blue, Green, Yellow, Red}, x]}, {x, 1/2000, 1, 1/2000}]}; colTable = Flatten[colTable]; ...
2
votes
2answers
58 views

Misplaced Automatic in output of ContourPlot3D [closed]

The following gives an error when displayed in the front end: cp = ContourPlot3D[x, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {{0.}}] There is an ...
9
votes
0answers
109 views

ListDensityPlot3D does not antialias axes

I sent a bug-report to Wolfram and the case number is [CASE:3454878] I'm on Linux with Mathematica 10.3 and I have my 3D graphics output set to the highest "Antialiasing Quality". It works fine for ...
3
votes
1answer
62 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...