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

learn more… | top users | synonyms (12)

3
votes
3answers
133 views

Plot Dirac Delta function

I would like to know how to plot the Dirac Delta result of the Fourier transform of the following typical expression ...
0
votes
1answer
78 views

Plotting with Logarithmic Scale

Perhaps this is trivial but I would like to plot the following function: \begin{equation} p(t)=e^{\left( -\frac{d}{1-c}\right)\left[ W_0\left[B(1+x/r)^{1/d}\right]-W_0[B] \right]} \end{equation} ...
0
votes
2answers
90 views

Plotting the solution of a Chini differential equation

In DIFFERENTIAL EQUATION SOLVING WITH DSOLVE by D. Kapadia, there is a Chini differential equation : sol = DSolve[x'[t] == 5 x[t]^4 + 3 x[t]^(-4/3), x[t], t] ...
0
votes
1answer
122 views

Solving Partial Differential Equations using NDSolve

I'm trying to solve the following partial differential equation: With the boundary conditions: I could use another way to resolve this, like the finite volume method, but after I solve the ...
0
votes
0answers
35 views

VectorPlot3D in cylindrical coordinates

I am using VectorPlot3D to plot fluid flows (in the form of a velocity field), however, I go through quite an involved process to convert flows in Cylindrical ...
7
votes
3answers
133 views

How can I draw ternary plot by these data?

I have these data and want to draw similar fifures in mathematica. any one can help me? ...
0
votes
2answers
159 views

How to do this 3D grid drawing? [closed]

The idea is to make axes 3d, with a more subdued in black mesh, and shafts with their respective numbers with a maximum of 10 in each (black to print after the size of half a sheet craft, vine also ...
1
vote
2answers
49 views

How to plot data with different colors (or symbols) depending on a condition [duplicate]

Let's consider a simple example. I want to plot a function on [0;2], depending on a condition: if x<1, I want to plot ...
0
votes
1answer
55 views

Putting plots and graphs on a word document [duplicate]

Is there a way to copy and paste or save an image of a graph into a word document?
3
votes
3answers
147 views

How do we draw some auxiliary lines for typical values of the function in a 2D Plot?

I want to draw some auxiliary lines for typical values of the function in my graph like these blue dashed lines: Also, I want to put the values of the lines by the lines like above one. Do you know ...
0
votes
1answer
88 views

Good looking small plots

Is there a way to make Mathematica adjust the amount of visual clutter (ticks, tick size, linewidth) depending on ImageSize? Long version: I would like to include plots from Mathematica in a LaTeX ...
0
votes
1answer
46 views

How to display all the squares I draw in the regionplot

the RT1 is a matrix of squares in different location. I draw 25 squares, but some of them can not displayed. I guess because the square is to little to display in this big region{{x,-15,15},{y,-15,15}}...
0
votes
1answer
52 views

LogLogplot of an equation

i need some help using LogLogPlot for graphing an equation that has various values of a parameter so that I get a set of curves on the plot. The equation is as follows: ...
2
votes
2answers
75 views

Slow evaluation of Recurrence plot data from NDSolve: Performance Tuning

I am trying to use a recurrence plot to pinpoint the location when a system re-visits a previous point in its phase portrait. The system (a thin liquid film) is governed by a non-linear differential ...
1
vote
1answer
69 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 ...
1
vote
1answer
39 views

How to change font size of axes labels without affecting everything else in a framed plot

I have a plot expression that looks something like this: ...
1
vote
1answer
62 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): ...
-2
votes
2answers
132 views

Create a filled ListPlot, where the points in the list come from within the regions rather than from the region boundaries

Is it possible to fill, color, under the points in ListPlot where the points define the area and the boundary? Assuming that the number of points are large enough ...
1
vote
2answers
51 views
1
vote
2answers
128 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
75 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 ...
1
vote
2answers
88 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 ...
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 ...
3
votes
3answers
182 views

Why is my ListPlot rounding up fractions?

I'm trying to create a ListPlot that compares a country's poverty fraction with its cellular phone fraction. I'm using this to create the table. ...
-1
votes
1answer
106 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 : ...
1
vote
3answers
34 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
77 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
59 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
55 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
60 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 ...
1
vote
1answer
64 views

Problems with Subsuperscript and Subscript Combination [closed]

I have a 3D figure, not important what it is, and I have the following code for the Z axis of this figure: ...
3
votes
1answer
87 views
1
vote
2answers
45 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 ...
7
votes
1answer
110 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: ...
3
votes
1answer
134 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 ...
0
votes
0answers
50 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
113 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? <...
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
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. ...
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 ...
3
votes
4answers
108 views

Show ListPlot markers only if criterion is met

I have a list (imported from csv file) of the form ...
2
votes
2answers
56 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: ...
3
votes
2answers
176 views

How to graph the contour of a resulting Manipulate curve

How can the green contour be graphed? ...
1
vote
1answer
48 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 ...
1
vote
3answers
84 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 ...
-1
votes
2answers
164 views

Selecting points inside a closed curve

Let's create a rather dense grid of initial conditions ...
0
votes
1answer
70 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, ...
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)...
0
votes
1answer
59 views

Plot of sin^2+cos^2 giving unexpected result [closed]

I'm struggling to plot this function: test[t_] := Sin[t]^2 + Cos[t]^2 Plot[test[t], {t, 0, 2 Pi}] It gives me blank plot but should be straight line (y=1)? Its ...