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

learn more… | top users | synonyms (12)

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
131 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
74 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
173 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 ...
0
votes
1answer
78 views

How can I make a graph that compares two sequences

I have two data sets. I produce the first one from the following code: ...
1
vote
1answer
97 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 ...
2
votes
1answer
59 views

Disobedient RegionPlot3D

I faced a strange behavior of a RegionPlot3D. I am drawing a piece of a plane bounded by a parabola. This works: ...
2
votes
2answers
127 views

How to plot an Eddington-Finkelstein diagram

I need to plot the same thing as what is shown on the third picture of the site below (sorry, I'm unable to poste that picture here) : http://ion.uwinnipeg.ca/~vincent/4500.6-001/Cosmology/...
8
votes
1answer
125 views

Calculating density of states from lists of momentum/energy data

I am trying to calculate the density of states for a 2D system given certain band structure data organized in a specific format. Below is an example of my procedure: Beginning with a simple 2 x 2 ...
6
votes
1answer
99 views

ArrayPlot gives wrong plot legend, how to fix?

Bug introduced in 10.0 and persisting through 10.4.1 My minimal working example is the code ArrayPlot[{{1, 0.1, 0}, {0.1, 0, 0}}, PlotLegends -> Automatic] ...
2
votes
2answers
57 views

How to use quantities obtained by solving equations directly to plot

I want to know how we could use the quantities we found by solving simultaneous equations, directly into plotting graphs. For example I have this Mathematica code; it gives the values of ...
4
votes
2answers
67 views

Adding lines and labels at custom positions in BarLegend

Currently my BarLegend looks like: BarLegend[{(ColorData["Rainbow"][Rescale[#, {0, .125}]] &) , {0, .11} }] I would like to add white (maybe dotted) lines ...
1
vote
1answer
43 views

StreamDensityPlot plots arrows of different length

I am plotting a vector field with StreamDensityPlot. I know it's symmetric about the $x$ and $y$ axes because of the equation, but also because if I plot it with VectorDensityPlot, it shows the ...
2
votes
0answers
83 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 ...