Tagged Questions

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

learn more… | top users | synonyms (4)

5
votes
1answer
264 views

Why is Plot3D giving me a surface with gaps?

I am trying to get plot for the band structure for graphene. ...
3
votes
2answers
978 views

How to do the log scale plot for ListContourPlot

My current code is: ...
5
votes
1answer
113 views

Omitting singularities from plot by specifying them in range

See the Mathematica 'basic plotting' documentation: http://reference.wolfram.com/mathematica/tutorial/BasicPlotting.html Scroll down to the third plot on that page, which says the following: "The ...
2
votes
1answer
232 views

Drawing an implicit function using ListPlot with a constraint on the solution [closed]

I need to plot a complex implicit function, ContourPlot in this case is not very convenient for me. Therefore, I want to plot my function using discrete points. I ...
3
votes
2answers
77 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 ...
2
votes
3answers
267 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
319 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
945 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
129 views

Incorrect behaviour of Locator inside Show?

Why doesn't Locator behave correctly in the following code? ...
5
votes
2answers
384 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
268 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
214 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
103 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 ...
8
votes
2answers
280 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 ...
0
votes
1answer
139 views

Plot hermite spline [closed]

I'm new to Mathematica and cannot figure out a way to plot a 2d hermite spline. My points are: $p_0=\{143.05;195.606\};$ $p_1=\{159.373;181.845\};$ $p_2=\{160.891;179.26\};$ $p_3=\{176.423;171.878\};$ ...
2
votes
2answers
112 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
562 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
117 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
297 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
87 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
272 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: ...
4
votes
1answer
210 views

Visualization of iteration procedure in NMinimize

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

Plotting multiple lists of complex numbers

The user #Nasser showed an elegant way to plot complex numbers: ...
0
votes
1answer
358 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. ...
2
votes
2answers
1k 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
196 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
1answer
105 views

Unit ratio in plots? [closed]

I want to make a plot in which unit interval on both axes to have equal lengths visually. i.e. I want (1,1) and (0,0) to make a square rather than an elongated rectangle.
1
vote
3answers
146 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) ...
2
votes
3answers
288 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
159 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
85 views
3
votes
1answer
125 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
120 views

Copying each object in a plot 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
279 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
44 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
466 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
587 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
547 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
113 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
147 views
0
votes
2answers
91 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
383 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
373 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
293 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
139 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
124 views

Understanding distribution chart

How to explain DistributionChart function in mathematica, For example: if I have ...
2
votes
1answer
344 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
319 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
211 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
68 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: ...