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

learn more… | top users | synonyms (10)

2
votes
1answer
65 views

Why is there a vertical line inside the frame? [closed]

I would like to present two similar codes here. The first one returns a graph with a vertical line inside the frame,but the second one doesn't. ...
1
vote
1answer
36 views

BubbleChart ignores Ticks option [closed]

BubbleChart does not display ticks to the Ticks option specs. ...
0
votes
1answer
44 views

plot with horizontal similar specified markers

I have a data as: ...
3
votes
3answers
269 views

What is a good way to display many discrete probability distributions on the same plot in Mathematica?

For something like 2 to 30 distributions each with 2 to 30 values. If we assume the distributions have unique values, a standard stacked bar chart is insufficient, but maybe something similar would ...
5
votes
4answers
234 views

error with NIntegrate and RegionPlot

Bug introduced in 10.2 or earlier and persisting through 10.2 or later Here's a simplified example of what I'm trying to do: ...
7
votes
3answers
355 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
132 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
354 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
73 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
142 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
124 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
141 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
287 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 ...
8
votes
1answer
103 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
117 views

SliceDensityPlot3D not found

Bug introduced in 10.2 or earlier and fixed in 10.3.0 I am using Mathematica student edition, version 10.2. When I use the command ...
3
votes
2answers
93 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
112 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
148 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
85 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
195 views

Combining two mesh functions

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

Styling data points with smiley face markers

I would like to know how to make a smiley face in Mathematica.
3
votes
2answers
167 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
119 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
285 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
65 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
197 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
57 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
161 views

Syntax for using Tooltip in DiscretePlot

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

“Broken” curve with ContourPlot [closed]

I am trying to plot a contour ellipse ...
1
vote
1answer
73 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
283 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
73 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
64 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
149 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
83 views

ListPlot3D: generating mesh lines at hard-coded locations [closed]

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
66 views

Plot using a list of variables

I have the following code: ...
9
votes
2answers
226 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
182 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
75 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
176 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
77 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
152 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
77 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
431 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
30 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
58 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 ...