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

learn more… | top users | synonyms (12)

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 ...
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 ...
0
votes
2answers
150 views

Selecting points inside a closed curve

Let's create a rather dense grid of initial conditions ...
0
votes
1answer
66 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
77 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
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 ...
2
votes
1answer
57 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
124 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
103 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
90 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
56 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
64 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
40 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
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 ...
0
votes
1answer
39 views

ListPlot[Transpose[{xx,yy}]] returns blank plot [duplicate]

This is complete mystery for me, but I am unable to plot the following data... I have two lists, that I want to ListPlot. The data is created in the following way (I edited the code for more clarity): ...
0
votes
1answer
46 views

I have a problem with particle in the box [closed]

I have a problem while generating particle in the box from this equation Plot[Sqrt[2/L] Sin[n Pi x/L], {x, -L/2, L/2}] because Mathematica might confuse about ...
3
votes
1answer
57 views

Plotting over the unit interval $[0,1]$ [closed]

Related to the question : Neumann and Dirichlet eigenvalue problem - Eigenfunctions on the square I'd like to do the same thing on the line instead of the rectangle, i.e. with $\sin(k\,π\,x)$ and $\...
0
votes
2answers
82 views

Plot graph with complex number

I need some help from expert. I already read about the plot with Identity, I but I not really understand and I think my problem is different and I confuse to used what command of plot. Here the ...
2
votes
1answer
106 views

Show and lighting options do not work together

I am trying the example from this demonstration, but it is not working properly. ...
0
votes
1answer
53 views

How to plot a level set of a function $f(x,y)$ on Plot3D?

Suppose I have used Plot3D command to plot some surface $f(x,y)$. On this plot, I would like to clearly identify some level set of $f(x,y)$, let's say $f(x,y)=0$, and if possible, find the relevant ...
0
votes
2answers
61 views

Combination of two ParametricPlot in one plot?

I have two ParametricPlot in the following form: ParametricPlot[{1 + (3*t^2)/2 - t^4/24, 4*t - t^3/3}, {t, 0, 1}] and ...
2
votes
1answer
62 views

How to properly plot with DensityPlot the singularities in a non-trivial phase profile of a function?

Consider as an example the following function: ...
8
votes
1answer
54 views

Is there a way to change the interpolation scheme used in ListDensityPlot?

Recently I was trying to answer this question on how to make a smooth ListDensityPlot when I found that the output depends on the order of the data if you are using ...
2
votes
4answers
399 views

Plotting 3D points with an intensity

I have a list of elements where the first 3 numbers in each curly bracket are x,y,z coordinates and the last number is an intensity: ...
0
votes
3answers
93 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 ...
2
votes
1answer
136 views

Particle moving on curve which is the intersection of a surface and a plane

Surface z = 2 x^3 - 5 y^4 Plane z = x + y + 5 Plot A curve is formed by the intersection of the surface and the plane. ...
7
votes
3answers
156 views

Plotting Vertical Asymptotes

The following code produces the graph of $f(x)=\frac{1}{x-1}$ correctly. ...
0
votes
0answers
60 views

How to plot an interpolating function from data showing the median values and the scatter around the medians

I have a list of data points $x_{i}$, $y_{i,16}$, $y_{i,50}$, and $y_{i,84}$ where $y_{i}$ respectively correspond to $16th$, $50th$ and $84th$ percentiles value of the function at positions $x_{i}$. ...
1
vote
1answer
71 views

ArrayPlot3D : want to represent the values in the heights of rectangular blocks

I would like to achieve something like ArrayPlot[] but rather than using the array values for color, I want those values to specify heights of rectangular blocks. There seems to be no option in ...
2
votes
1answer
81 views

Contours all getting labeled as zero in my contour plot

As you can see from the plot below, my contour plot renders several contour lines. The legend shows the how values change with colors. However, all the contour lines on the plot are labeled 0, which ...
1
vote
2answers
86 views
3
votes
2answers
100 views

Hovering over specific coordinates on a picture

I'm working on a small function which can be used so that when the user hovers over certain coordinates in a LocatorPane, these coordinates can be checked against a separate list of coordinates, and ...
-1
votes
3answers
98 views

How to make a 3D plot over a triangular region

I'm new to mathematica. I'm trying to Plot3D the function f[x_,y_]:=x^3+2x y over the triangular region of the plane with ...
0
votes
0answers
30 views

ListPlot: zoom on scroll, pan on drag [duplicate]

How is it possible to create interactive ListPlot with the following behaviour: pan on drag, zoom in/out on mouse scroll, with the zooming centered at the cursor ...
0
votes
1answer
59 views

Adjusting VoronoiMesh size

How it is possible to extend VoronoiMesh to the whole ListPlot in the following example? ...
2
votes
1answer
65 views

Working with StarData Versus AstronomicalData

Using AstronomicalData I could easily do something like: ...
4
votes
1answer
92 views

How to specify a mesh in plotting options [closed]

I have a very simple question: Imagine I have solved a PDE on a mesh and want to display the solution on the same element mesh that was passed to NDSolve. I have ...
6
votes
1answer
131 views

Smoothing out data points in a ListDensityPlot

I stumbled upon this problem when I was trying to make some nice smooth ListDensityPlots of my numerical data. In short, my problem is that I let Mathematica plot two copies of basically the exact ...
2
votes
3answers
139 views

Combine three functions in one graph using Plot3D and show

I have a function, f, which is divided in three functions depending on the ranges of some variables (a and r) and constants (<...
2
votes
1answer
195 views

How to graph a 3D function of two variables? [closed]

How to graph this: \begin{alignat*}{3} x(s, t) &= a\cos(mt) \cos^{k}(ns) &&\cos(t) &&\cos(s), \\ y(s, t) &= a\cos(mt) \cos^{k}(ns) &&\sin(t) &&\cos(s), \\ z(s, ...
3
votes
4answers
158 views

Filling between two listplots

I have two lists which are plotted by below simple command ...
4
votes
2answers
141 views

Adding labels to close points in a ListPlot [duplicate]

I need to add labels to points in a ListPlot. The only problem is that the points can be closely located so if I do it in my usual way it becomes messy. I would ...
0
votes
1answer
116 views

Plotting Limit Cycle

I have Lotka Volterra Equations where the prey equation is modified. The Equations are x'[t]=a*x[t]*(1-x[t]/k)-b*x[t]*y[t] y'[t]=-c*y[t]+d*x[t]*y[t] To plot the ...
3
votes
2answers
101 views

How to Draw a 3D Scatter Plot Graph

Firstly: I am completely new to Mathematica, but I need to be able to create a 3D Scatter Graph with the following points: {0.000824, 15.8, 39.0}, {0.000507, 20.5, 39.6}, {0.000444, 20.5, 39.8}, {...
2
votes
1answer
60 views

Need help with making an interactive 3D plot

My main problem is to generate a manipulatable 3D plot, combining three functions and two of those functions depend on another variable Theta (which shall be the manipulateable variable). To explain ...