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

learn more… | top users | synonyms (8)

7
votes
3answers
347 views

How to do this type of percentual stacked plot in Mathematica?

I have data of letter occurrences in different positions. I want to plot the frequency of each letter in each position. The type of plot I have in mind is as follows: How can I do this in ...
1
vote
1answer
60 views

How to make Which not connect its parts? [closed]

I've noticed that when "Mod" and "Which" are used to the same effect, they plot to slightly different results. Take the following example: ...
6
votes
2answers
122 views

Label intersection points of several curves

I'm trying to label all intersection points between 2 functions and a 3rd one in a Plot by using Kuba's second solution from here , but I'm not getting the expected result: there are additional, wrong ...
20
votes
2answers
337 views

Spacing out random walks so they don't overlap

From an external simulation program, I have lots of particle tracks which follow random walks, all of which start at or near the origin $(0,0)$. This means that when I plot the walks in Mathematica, ...
3
votes
1answer
67 views

WorkingPrecision in a sum

If I am interested in getting a fairly precise plot of f2 below, can I use WorkingPrecision to do this? ...
0
votes
0answers
32 views

Plotting data based on a specific property of its elements [duplicate]

Now I need to plot a series of points witch have the form like {{x1,y1,z1},{x2,y2,z2},...,{xn,yn,zn}},and the weightage of the ...
5
votes
1answer
135 views

How to plot multi-colored regions separated by InterpolatingFunction on sphere

I would like to plot a sphere with multi-colored regions separated by solutions of a differential equation (no explicit expression is available for the separating curves). The result I am after would ...
2
votes
4answers
104 views

Lattice lines with integer coordinates in 3D plot

I would like to draw a surface in a 3D plot together with gridlines (horizontal lines and vertical lines) parallel to x y z axes with integer coordinates. Of course not only on faces, but also inside ...
1
vote
1answer
114 views

Draw a point on a curve or surface; also draw a line in 3D plot?

I would like to draw a point on a curve or on a surface. For example, I would like to plot the point $(1,1,\sqrt{2})$ with a special color. ...
4
votes
1answer
187 views

Plot only those regions where a function's value is positive

I want to plot only those portions of the following function in which the function is positive (e.g. from $0-0.01$ & $0.02-0.03$ and so on): $$230\sqrt{2}\sin\left(100\pi t\right)$$ In addition ...
7
votes
1answer
94 views

Minimizing NExpectation for a custom distribution

As discussed and advised in Meta: Migrate a question..., I've copied a 2012 posted question from StackOverflow (posted before this site began running), which has gotten a lot of attention (but after 3 ...
3
votes
0answers
88 views

SliceDensityPlot3D not found

I am using Mathematica student edition, version 10.2. When I use the command ...
3
votes
2answers
84 views

Can I control the order of overlay in Filling?

The default ordering is "in the y direction". In this example I would like the red regions to overlay the blue regions. ...
3
votes
1answer
92 views

Interpolation of ListContourPlot3D, Volumetric data (cube file)

I know there are lots of information about this on stack exchange! Data interpolation and ListContourPlot InterpolationOrder for ContourPlot Unfortunately I was not able to find a proper way to ...
2
votes
2answers
138 views

How to correctly scale the x axis?

I am not absolutely sure how to formulate my question but here is my first attempt: I have 25 rods with lengths in cm ...
1
vote
1answer
81 views

Plotting tupper's function [duplicate]

How to plot Tupper's (so called) self-referential formula in Mathematica of course? I wanted my value of k or N as they call it, to fit in the formula so that I get my result. In those programs ...
5
votes
1answer
169 views

Combining two mesh functions

I have: ...
1
vote
2answers
359 views

Styling data points with smiley face markers

I would like to know how to make a smiley face in Mathematica.
3
votes
2answers
144 views

Combine Multiple ListDensityPlots into 3D Cube

I am wondering if anyone has suggestions on how best to go about creating an image of several ListDensityPlots merged into a single 3D cube (with only the axes, not the full frame). For example, I ...
3
votes
1answer
111 views

ContourPlot has extra mesh

There is an odd white mesh that appears on top of any contour plot I make. ContourPlot[x + 2 y, {x, 80, 300}, {y, 50, 100}] Any ideas on how I get rid of this? ...
4
votes
1answer
254 views

Plot style/theme for Sciences [closed]

I am in a pursuit of perfection for scientific plots. The aim is to have best clarity of complex data that looks amazing when published. Please share your tricks and code for Scientific plots in ...
1
vote
1answer
59 views

Is there a way to change PlotRange without redrawing?

I'm running some code that takes a very long time to generate a final image. So naturally when the PlotRange on the original image was too small, I'm frustrated ...
0
votes
1answer
49 views

Enter meter unit with Histogram [closed]

I'm looking at the documentation for Histogram and I am trying the example: ...
1
vote
2answers
191 views

Help plot an illustration of “neighborhood” around a point on the real line

I want to plot the following illustration in mathematica. First I need to plot a half open interval $(a,b]$ on a real line (ticks and labels are not needed). Then I need a piece of symmetric curve ...
0
votes
0answers
55 views

adjacency matrix with directed graph connected nodes

I was trying to plot a 9x9 adjacency matrices which produce a useless directed graph. Codes for that I used: ...
11
votes
2answers
149 views

Syntax for using Tooltip in DiscretePlot

Tooltip works fine in ListPlot: ...
1
vote
1answer
72 views

“Broken” curve with ContourPlot [closed]

I am trying to plot a contour ellipse ...
1
vote
1answer
57 views

StreamPlot use fixed integration time to determine final path length, not fixed path length

I'm plotting velocity fields for fluid flow, and my call to Streamplot looks something like this: ...
9
votes
4answers
263 views

Superimposing ListContourPlots on each other

I have two ListContorPlots that I would like to plot on top of each other for easy visualization. I tried using Overlay for ...
1
vote
1answer
66 views

Plotting multiple instances of a function defined with NIntegrate

I have a function that involves an NIntegrate, for example something like this: f[x_, z_] := NIntegrate[z*x*y^2, {y, 0, x}]; I want to plot this function for a ...
2
votes
1answer
59 views

Map inside LogLinearPlot with legends and different colors [closed]

I have been trying to use Plot with a nested map to make plots of a numerically integrated function with different argument parameters, and after some searching I have finally got that sorted. My MWE ...
4
votes
2answers
139 views

Interactive ListPlot by mouse clicking

Say I have a list of 2-tuples that is visualized by ListPlot. Each 2-tuple is also associated with another graph. Now what I want to realize is to display the ...
2
votes
0answers
72 views

ListPlot3D: generating mesh lines at hard-coded locations

I am plotting a surface specified with a set of {x,y,z} coordinates with ListPlot3D. This data set surface does not extend ...
0
votes
0answers
25 views

Problem with mathematica code [duplicate]

Plot3D[u[x, t], {x, 0, 5}, {t, 0, 5}, AxesLabel -> {x, t, u}] I get an error Plot3D::exclul: {Im[e]-0} must be a list of equalities or real-valued functions. ...
2
votes
1answer
64 views

Plot using a list of variables

I have the following code: ...
9
votes
2answers
211 views

ListLinePlot Filling Wrong

Bug introduced in 8.0 or earlier and persisting through 10.3 or later. I used ListLinePlot to plot data from .csv files. However, the y-values from Graph 1 do ...
0
votes
1answer
138 views

Using Plot and Piecewise to graph a roller coaster

I am graphing a roller coaster using Piecewise and Plot commands on Mathematica. I have the first 2 Piecewise functions and would like to add a loop to the end of it. Here is my initial graph: This ...
3
votes
1answer
71 views

NDSolve: obtain time difference when different solutions get same distance to equilibrium value

I have a numerically solved a differential equation which has an equilibrium value and a starting point, both included as a parameter. I want to plot the difference between the times it takes to come ...
4
votes
1answer
142 views

DensityPlot: giving the same color to a range of values

The following command DensityPlot[x y, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic, ColorFunction -> {"Rainbow"}, PlotRange -> {{-3, 3}, {-3, 3}}] ...
0
votes
1answer
68 views

ParametricPlot and Piecewise function

I want to create a ParametricPlot with multiple Piecewise functions in it. I have tried the following code but it doesn't work ...
5
votes
2answers
135 views

Techniques to find all local minima of black box function with n continuous derivatives?

I have a blackbox function f on [a,b] that is known to be continuous, and has n continuous derivatives. The function uses polynomial interpolations (but isn't a polynomial interpolation itself), so no ...
2
votes
1answer
72 views

2D plot using output from the other function

I would like to get 2D plot using output from the other function. FindInstance[0.5*x^2 + Cos[y + P] == 1, {x, y}, Reals] By changing values of P manually it gives ...
8
votes
2answers
394 views

n-dimensional plot

I want to plot 6-dimensional data using parallel axes (https://en.wikipedia.org/wiki/Parallel_coordinates). The list looks like this: ...
3
votes
0answers
27 views

InteractiveTradingChart not working inside Dynamic

I would like to have an interactive trading chart that updates by changing the input stock. But anytime a dynamic is wrapped around the function, it doesn't manage to initialize. Is there any way to ...
0
votes
1answer
54 views

Plot data with x and y ErrorBars from file [duplicate]

If I have a set of data like this one saved in a dat file ...
0
votes
0answers
53 views

Fill the gap between two consecutive sphere with different colors [duplicate]

I wanted to shows the radial density (thickness 1) with different color such that dark color shows for lower radius and light color for higher radius. The gap between concentric sphere should be ...
0
votes
0answers
21 views

Limit Plot range to infinitely thin region [duplicate]

I want to plot a function only in a specific infinitely thin region, like e. g. ...
1
vote
2answers
72 views

DiscretePlot3D: Part specification is neither a machine-sized integer nor a list of machine-sized integers

I want to plot a 3D histogram of a matrix and I am using this line: DiscretePlot3D[lmat[[x, y]], {x, 1, 3}, {y, 1, 3}, ExtentSize -> Full] where ...
1
vote
1answer
138 views

How to create a vertical (smooth) Histogram on the y-axis of a function graph for an uncertain x?

This is my first time posting a question in StackExchange. I have encountered a certain problem and I can't seem too find a solution. Just a word of caution, I am kind of an amateur when it comes to ...
2
votes
1answer
103 views

What Method values are available for Plot?

The Documentation Center article on Plot notes under Details and Options that Method is one of the options for ...