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

learn more… | top users | synonyms (12)

-2
votes
0answers
26 views

List Contour Plot neglect the lower number of events [on hold]

I have data in which the maximum number of events are concentrated in small region at the center of the figure and other lower number of events are extended to large distances from the center of the ...
1
vote
1answer
60 views

Creating a Dynamic Time Index Slider for List Animate Plot

I am trying to create an animation using ListPlot, which has worked, but I want to be able to see how time is changing (i.e. its dynamic value) as the animation runs. Here is my normal List Plot ...
2
votes
3answers
791 views

draw part of parabola using graphics

today I was doing my physics homework. one of the questions was draw velocity-time and position-time graphs from the acceleration-time graph. So for the first step I draw acceleration-time using ...
1
vote
1answer
60 views

ParametricPlot3D shows an empty box

I'm trying to visualize numerical solution of 4 differential equations (these are the coordinates of a wave function in a quantum mechanical system): ...
1
vote
1answer
38 views
1
vote
2answers
126 views

How to loop over a varible while plotting a function

Suppose three functions : k1[s_, d_,m_] := 3 s + 5 d + m k2[s_, d_] := 5 s - 7 d k3[s_, d_,m_] := s + d - m How to add the following code to plot conditional <...
2
votes
2answers
70 views

Manipulate Plot Sliders Not Working [duplicate]

I'm trying to use Manipulate on my function so that I can adjust parameters a, r, and ...
14
votes
2answers
670 views

Pulsed NMR animation

I'm new here and have never interacted with the community so excuse me if this has been asked before or if I format incorrectly or anything like that. Anyway, I'm trying to make an animation for a ...
1
vote
1answer
62 views

Problems with Subsuperscript and Subscript Combination

I have a 3D figure, not important what it is, and I have the following code for the Z axis of this figure: ...
10
votes
0answers
106 views

ErrorListPlot ignores some exact data points

Possible bug? Or am I missing something / expecting too much? Forgive the seemingly obscure data points but they're where I've noticed a problem. ...
2
votes
0answers
79 views

ListPolarPlot goes crazy when PolarAxes->True

Bug introduced in 9.0 and fixed in 9.0.1 I think I am experiencing the same/similar problems as this user. Mathematica Version: 9.0 for Mac OS X x86 (64-bit) (November 20, 2012) Computer: Mac OS ...
1
vote
2answers
83 views

Selecting and plotting points belonging to a region from a random sample

I'm facing a problem with RandomReal when using ListPlot to plot some constrained points. I found that at every run of MA kernel ...
-1
votes
1answer
105 views

Why this code gives different output for differents runs

Edit Here is my code to plot many constrained variables in (x,y) plan : the variables are : ...
0
votes
4answers
2k views

How can I make a Plot over a discrete set of domain points?

I want to plot the function $y=2^x$ at the $x$-values given by Table[Prime[n], {n,20}] How should I write the plot function? Like so? ...
0
votes
3answers
56 views

plotting difference intervals of two vectors

IF $a=\{2,6,8,18,20,24,26\}$ and $b=\{0,5,3,10,15,21,25\}$. I want the interval of the pairwise differences, that is, [0,2], [5,6], etc showing by lines in plots. I don't know the command for it. I ...
1
vote
3answers
33 views

plotting a two variable real valued function with domain given in vector format or discrete

I have a function $g(x,y)= -2x+5y$ and vector $ a=\{0,2,6,8,18,20,24,26\} $. I want to plot a $ g(1,a) $ but i don't know how to plot it? I use following commands: ...
2
votes
2answers
73 views

How can I plot a function defined as a derivative of another function?

How can I plot a function defined as a derivative of another function? For example, y[x_] := Sin[x] y1[x_] := D[y[x], x] Plot[y1[x], {x, 0, 2 Pi}] doesn't ...
0
votes
0answers
55 views

How to get smoother curves when plotting with mathematica 8.0?

Using the following line of code, I am trying to plot a few curves side-by-side. However, it turns out that the output curves are not that smooth as seen from the ups and downs (oscillating pattern) ...
1
vote
2answers
53 views

Plotting a set of parameters

I am trying to plot the equations that describe the Cartesian locations of Bi-Cylinder coordinates. The equations are as follows: ...
3
votes
2answers
56 views

DateListPlot from DateHistogram

How do I draw a DateListPlot from the bin height and bin middle position? I have a series of time events from which I calculate DateHistogram, but I want to represent the result through a kind ...
3
votes
1answer
128 views

How to get a best fit line on a scatterplot?

I know that I am supposed to call listplot inside of the show function but I can't seem to get that to work. The best I can get is this, which has the best fit line following the scatterplot. How do I ...
7
votes
1answer
106 views

How to plot a vector field on a geographic map?

Suppose I want to VectorPlot on a geographic map a vector field defined on a Reference Ellipsoid. The field is given to the following function as a ...
7
votes
3answers
1k views

My 3D plot of a Klein bottle doesn't look right

I have found the following parametrisation for a Klein bottle: ...
0
votes
0answers
30 views

Produce a function of parameters from a solution to parametric equation [on hold]

I am trying to produce a very simple result, namely given some function $f(x,a)=0$ find a solution $x(a)$ and let it be a function that I later plot depending on $a$. However Mathematica does not ...
1
vote
2answers
44 views

ListPlot function in 2D- plan in two varibles

Suppose a function f[s,k]. How to Listplot this function in 2D plot in (s,k) plan, such that ...
34
votes
4answers
7k views

Density plot on the surface of sphere

I would like to make density plots of a list of (size 2 or 3) spherical harmonics on the surface of a sphere. I'd like to plot it so that each element of that list is using a different color (red ...
3
votes
4answers
105 views

Show ListPlot markers only if criterion is met

I have a list (imported from csv file) of the form ...
14
votes
6answers
2k views

How can I plot this spirally surface?

I would like to plot a surface that looks something like this sand spiral. But I really have no idea how. Ideally I would like to be able to express this as a function in cartesian coordinates. I'm ...
0
votes
0answers
49 views

How to automate a computation and save the outputs?

I'm working with neutrino oscillations in matter and i'm computing the oscillation probabilities as functions of the Energy. This is what i have ...
2
votes
3answers
110 views

How to integrate numerically the product of result of NDsolve? [closed]

I am going to integrate the product of the results of NDsolve, in fact If x and y are the results as interpolating function, How I can integrate x*y numerically? <...
1
vote
1answer
162 views

Positioning Labeled points in ListPlot gives unexpected results and errors

Original question can be seen in the edit history.... Update A simpler example - same problem. ...
1
vote
3answers
80 views

How to Make the Tick Marks of Both Axes the Same in a 2D Plot?

In an earlier post, I asked how one can change the ratio of the units of the axes. The easiest way to set the ratio to one was 1- setting a PlotRange and 2- using ...
4
votes
2answers
168 views

Longer ticks without specifying the ticks itself

I know similar questions have been asked here before, but i can't figure out this specific problem. I have a lot of plots that i'd like to bring to a publishable form, but in my current customization ...
2
votes
1answer
376 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
0
votes
2answers
42 views

How to use None in FrameTicks in ListPlot [closed]

FrameTicks are plotted all round the frame, but I only want them on the left and bottom. ...
9
votes
1answer
125 views

ArrayPlot with a user-defined color function is misbehaving

Bug introduced in 10.0 and persisting through 10.4.1 or later I am using ArrayPlot to show some arrays with values from 0 to 1. I want 0 to be black and 1 to be ...
0
votes
1answer
62 views

Plotting Matrix versus Matrix [closed]

So I recently started using Mathematica and I haven't been able to figure out how to simply plot elements of one matrix versus another matrix which are not directly related or are not a function of ...
2
votes
2answers
50 views

Plotting the results from Solve in a Manipulate expression

I am a self-taught Mathematica user, trying to make some progress. This is my code: ...
4
votes
1answer
69 views

Numerical testing of Hardy's inequality

I want to check the following, Hardy's most fundamental inequality, by using Mathematica: $$\sum_{n=1}^\infty \left(\frac{A_n}{n}\right)^p<\left(\frac{p}{p-1}\right)^p\sum_{n=1}^\infty a_n^p$$ ...
1
vote
1answer
95 views

Changing Type of Equation To Graph Through User Interface

I'm new to Mathematica. I am trying to create a graph that can change through user interface in more than just the variables. Ideally, I want the user to click a button and have the equation change ...
1
vote
1answer
47 views

How to make an empty plane, and add points on the way

Apologies for the noob question, I'm not very experienced with Mathematica, but I need it for a presentation. What I would like is to make the x-y plane with both coordinates running from say, -5 to ...
0
votes
2answers
151 views

Selecting points inside a closed curve

Let's create a rather dense grid of initial conditions ...
0
votes
1answer
67 views

Coloring data in Mathematica

I am trying to put color gradient on my data, or want values above some number to appear red and green below that number. For my situation the number is 5.14*10^(-13). I have X, Y, and Z axis data, ...
12
votes
1answer
239 views

Problem with PlotLabels

Bug introduced in 10.4 and persists through 10.4.1 Version 10.4 introduced the PlotLabels option in ListPlot and similar ...
0
votes
3answers
94 views

ListPlot and Filling: overlapped vertical lines [closed]

I was plotting multiple discrete series on the same figure. Filling is needed to highlight trajectory of the series. However, if I use Filling->All, filling lines are overlapped. One of the solution ...
0
votes
2answers
53 views

Problem with ParametricPlot with Im and Re [closed]

I have a problem, How can I plot theses functions from 0 to 2 Pi : Re(e^(iaϕ+(iϕ)^b)), Im(e^(icϕ+(iϕ)^d)) Re(e^((iϕ)^a) e^((iϕ)^b )), Im(e^(icϕ+(iϕ)^d)) Re(e^(iaϕ+(iϕ)^b)), Im(e^((iϕ)^c) e^((iϕ)^d)...
1
vote
0answers
108 views

Plotting the Schwarz D minimal surface

With the aid of the following paper I'm trying to plot the Schwarz D minimal surface: paper. So far I have followed all the instructions to the best of my abilities and have come up with the following ...
1
vote
1answer
58 views

Mathematica Empty Plot FourierSinSeries function

I'm trying to get a plot of different order Fourier series of the function x-1, why does Mathematica give me an empty plot? ...