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

learn more… | top users | synonyms (4)

3
votes
2answers
79 views

Cell copy results in jaggy, aliased output

When I copy a cells by selecting them from the collapse bars on the right, then using the context menu option "Copy", the pasted image of plots is not anti-aliased and in general the text seems to ...
3
votes
3answers
368 views

Animation is jerky, but slider is not

When I do the following simple animation (from the book Mathematica Navigator, p. 316) the slider control changes the image smoothly, but when I play the animation it is jerky. Is there anything that ...
8
votes
1answer
395 views

How can I scale a plot in vector graphic or PDF form?

I am not at all a computer graphics expert, but it seems that portable document format (PDF) files have a "native size," even though they may (and usually do!) contain vector graphics that can be ...
1
vote
1answer
1k views

Animate curve parametric plot on a surface

I have a surface s = Plot3D[{x,y,F[x,y]},{x,-1,1},{y,-1,1}] with $F$ predefined, and a curve ...
2
votes
3answers
134 views

Incorrect behaviour of Locator inside Show?

Why doesn't Locator behave correctly in the following code? ...
5
votes
2answers
526 views

Plotting: Is anyone familiar with gradientfieldplot command?

I am trying to plot this graph showing the electric field lines and lines of equipotential based off the electrode configuration(in black) of two parallel lines. This is what I've been using for other ...
2
votes
1answer
310 views

How do I label contour lines that are superimposed on a 3d plot?

I need to generate a 3D plot of a function, say $z = \sin(x)\cos(y)$, with contour lines drawn at specified intervals. I also want to label each contour line with its $z$-value. I have discovered how ...
5
votes
1answer
252 views

ListDensityPlot crashes the kernel

ListDensityPlot[ Flatten[Table[{i, j, Sin[i + j]}, {i, 1, 20}, {j, 1, 20}], 1]] gives the expected result, but a linear scale crashes my kernel (please save your ...
1
vote
1answer
118 views

Reading between blank lines in external data files

I have an external data file with several columns and thousands lines of data. For the sake of this question, let's assume that we use ...
9
votes
2answers
324 views

How to draw the image of a circle under the action of a transformation of the phase flow?

How to draw the image of a circle $x^2+(y-1)^2<1/4$ under the action of a transformation of the phase flow for the equation $\dot{x}=y,\ \dot{y}=-\sin x$? Here $\dot{x}$ means $dx/dt$. Any help or ...
2
votes
2answers
124 views

Plot: how to have the y-range automatically scale to min-max on the x-range?

I have a long list of {date,value}. I would like to use DateListPlot to plot only a subrange, from date1 to date2, with the range on the y-axis automatically chosen to be between the min and max ...
0
votes
1answer
681 views

How to plot a function $\psi(r,\theta,\phi=0)$ in polar coordinates?

I have a function $\psi(r,\theta,\phi=\phi_0)$ with $\phi_0\in \Re$, $r\in[0,R]$ with $R\in \Re$, and $\theta \in [0,\pi]$ (spherical polar coordinates) and I want to plot it in Mathematica. I guess ...
0
votes
1answer
137 views

Plotting values above a threshold in ListPlot3D

I'm able to plot a 3D plot of a grayscale image using ListPlot3D, where it plots a 3D surface of the image pixel intensity. But I would like not to plot the pixel ...
0
votes
1answer
406 views

plotting xy, yz, zx plane at

I have a data list in the following form, data = {x, y, z, f} I would like to present three kinds of subdata set as a density (or contour) plot on the ...
0
votes
1answer
89 views

Plot producing many error messages when given complicated function

I'm new to Mathematica and am running in to all sorts of silly difficulties with coding in it. I'm trying to calculate a function f[x, k], normalise it with another ...
4
votes
3answers
327 views

Draw plot with locator & slider

I would like to create a plot whereby both the slider and the locator 'draw' the plot. In the following code, the locator & the slider act independently: ...
5
votes
1answer
230 views

Visualization of iteration procedure in NMinimize

I have this optimization code: ...
3
votes
1answer
728 views

Plotting multiple lists of complex numbers

The user #Nasser showed an elegant way to plot complex numbers: ...
0
votes
1answer
562 views

How to I display the value of my plot function?

I've plotted a function that varies with respect to time. It's inside a manipulate box, which can vary the time. And I'd like to display the value of the function at the time on the slider on my plot. ...
4
votes
2answers
3k views

How can I plot implicit equations?

If you enter the following into Wolfram | Alpha, you get nice graphs: graph 4 x^4 + y^2 = 2 How do you do this in Mathmatica? I realize that these are not ...
1
vote
3answers
219 views

plotting an Integration output

How to solve this integral by Mathematica even by numerical methods (plotting the solution) Integrate[(Cos[x] - a)/(1 + a^2 - 2*a*Cos[x])^1.5, {x, 0, 2*Pi}] It ...
1
vote
3answers
150 views

automatic processing of numerical results in `Plot`

First I want to solve an equation $F(x,y)=0$ for $y$ by supplying a value of $x$. (suppose obtaining the analytic form of $y(x)$ is too difficult) Then I want to plot root $y$ (numerically calculated) ...
3
votes
3answers
320 views

How Can I superpose an image and a graphics?

I want to superpose an image with a graphics in order to evaluate their alignment. I am writting this exemple of code. ...
0
votes
1answer
181 views

Plot lines keep disappearing

I'm trying to plot the Compton Shift which I've defined as: E2[ϕ_] := E1/(1 + (E1/(m*c^2))*(1 - Cos[ϕ Degree])) I've initiated the constants and when I evaluate ...
1
vote
0answers
101 views
3
votes
1answer
163 views

Adding and summing overlapping Airy (or Gaussian) disks on a plane

In a previous question of mine, I asked how one might draw an Airy disk on a plane: Generating an Airy disk on a plane, and recieved some impressive answers from the users Timothy Wofford and ...
2
votes
1answer
161 views

Copying each object in a plot separately as an image

I would like to copy a plot from Mathematica as an image, into a PowerPoint slide. This plot has two curves. When I try to do the (naïve) usual "copy graphics" and paste, I find the full plot (along ...
3
votes
2answers
335 views

fit a curve in a three dimensional space

I have a list of points of a curve in a three dimensional space, like ...
0
votes
0answers
45 views

How to manipulate lists to get only part of the value [duplicate]

This is really a question about manipulating the output of Maximize. I have a function of 2 variables, defined thus: ...
2
votes
1answer
609 views

Plot3D with a log scale only along the y-axis

I would like to ask how to make a 3D plot (maybe using Plot3D) with a logarithmic scale along the y-axis? For example: I have a function, $f(x) = 2(1 + a\,x^4)/x^2$, where $x$ varies from 0 to 20 ...
7
votes
3answers
688 views

Hovering mouse cursor over a plot to display a “corresponding” point in another plot

(Apologies for not having gotten around to responding to and accepting answers on my other recent questions—as a meticulous and thorough type, I'd like to take my time to fully comprehend and ...
3
votes
2answers
736 views

Generating an Airy disk on a plane

I wish to generate a surface intensity plot of an Airy disk (or perhaps a two-dimensional Gaussian approximation to an Airy disk) on an (x, y)-plane at a specified coordinate. The hope is to have ...
1
vote
1answer
126 views

Two-way locator & slider controls

I was wondering whether it was possible to have a two way control system, whereby one could click and drag both the locator (which would in turn move the sliders), AND click & drag the sliders ...
1
vote
1answer
149 views
0
votes
2answers
98 views

Gaps in plots of equation solution from parameter

I'm trying to plot solution of system of equations as a function of parameter ...
2
votes
2answers
516 views

Locator to show coordinates of plot

Old I would like to make the locator follow a plot, giving the coordinates as it moves. I don't really know where to start with this one, but I would like the dynamic plot to look something like ...
9
votes
2answers
451 views

In version 9 PlotLegends, how can I remove the strange edges that appear around LegendMarkers?

I'm running Mathematica version 9. I am using ListPlot to plot two sets of data. For each data set, I am using different ...
4
votes
2answers
329 views

How and when to use Evaluate?

A month ago, I used Mathematica to solve my experiment of the Test Technology of Mechanics Engineering. The exeriment is mainly about the Fourier Transform and verify the validity of the theory of ...
7
votes
1answer
147 views

Fixing Spline curves so as to not overlap with themselves - (Diagrams)

Statement of the problem: Conceptually, what I'm trying to achieve is pretty simple. I have some code that generates a set of diagrams from a list of sets of points using BSplineCurve. Certain ...
0
votes
1answer
138 views

Understanding distribution chart

How to explain DistributionChart function in mathematica, For example: if I have ...
2
votes
1answer
445 views

How to combine two plots with the same y-axis

I have a data file which contains three columns of data. The first and the second column correspond to $x$ coordinates, while the third column to $y$ coordinate. Here is a small sample of the data ...
3
votes
2answers
402 views

How to show the coordinates of a point and the equation of a line dynamically? [duplicate]

I am constructing a diagram that consists of a sine curve and its tangent line at a given argument. However, I want to show the coordinates of the point of tangency and the equation of the tangent ...
1
vote
1answer
252 views

Plot the solution complex transcendental equation

I'm trying to plot an implicit function satisfying a complex transcendental equation. The code is the following: ...
1
vote
1answer
69 views

What's wrong with the following Plot in Manipulate?

I try to show the convolution of a step function and a triangle function is smooth with the following code: ...
6
votes
2answers
1k views

Too much whitespace in a GraphicsGrid containing Legended Plots

Where is all the vertical whitespace coming from, and how do I get rid of it? ...
2
votes
1answer
82 views

Plot with non-standard domain

I have data {x, y} where x starts at -25 degrees and goes up to +25 degrees in 1 degree steps, and then comes back down to -25 degrees in 1 degree steps again. I ...
9
votes
4answers
362 views

Finding a point from a set of contours such that it is nearest to a given point

I have several contour lines and one point. How can I find a point in one of those contour lines which is nearest to the given point? ...
2
votes
2answers
138 views

How to plot complex values given by Solve

Update Solve[N[Table[BernoulliB[n, z], {n, 10, 10}] == 0]] ...
1
vote
1answer
221 views

Formatting plot of symmetric points differently to asymmetric points

From an array of numbers, I would like to determine (and then colour appropriately) which points are symmetric about a given axis (here, $x = 1/2$), and which are not. For example, form this: ...
3
votes
2answers
178 views

Differentiating a Cumulative Distribution Function which has a discontinuity at $0$

I want to take the derivative of a distribution function which has a discontinuity at $0$. Here is the function: ...