Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
14,961
questions
29
votes
6
answers
6k
views
Using ListPointPlot3D to simulate 2D plots moving in time
I wrote a 1D solver for the heat equation $u_t=u_{xx}$, and I can animate the solution using normal ListPlot command, where the x-axis is the rod length, and the y-...
72
votes
5
answers
12k
views
ListPlot: Plotting large data fast
Mathematica produces fantastic-looking graphics, but it can be slow on large data sets. Here is an example for a (random) time series:
...
32
votes
2
answers
3k
views
Plot Option Precedence while combining Plots with Show[]
I like to build sophisticated plots by combining simpler ones with Show[]. Typically this involves setting non-default Plot-Options with the different Plot-Commands,...
24
votes
1
answer
2k
views
How to create regular (planar) graphs?
How to programmatically create and plot regular planar graphs with $k = 3, 4$ or $6$ (not hypercubes) and regular nonplanar graphs of $k = 8$ (see figure)? Note that what matters is the average ...
21
votes
2
answers
2k
views
RegionPlot is producing odd gaps, even for simple functions. Is there an option to prevent this?
When I use RegionPlot to plot the region between two functions, I get strange gaps in the resulting figure. Is there a way to prevent this from happening?
For ...
27
votes
2
answers
1k
views
Is there a way to have Plot draw points on a function where the function is undefined as circles as in textbooks?
A very common feature of graphs of functions used throughout textbooks are simple indications, such as open circles, of the points at which a function is undefined. Is there a way to do this in ...
69
votes
4
answers
6k
views
Point Renderings Slightly Off in Mathematica
The Mathematica code
...
33
votes
2
answers
2k
views
How does Plot work?
I considered the following function:
sin[x_] := Module[{},
Print["x=", x];
Sin[x]
]
in Mathematica. Next, I tried to plot it using:
...
34
votes
2
answers
1k
views
Symbolic derivatives are being calculated numerically
Update: (1) By V11, not sure of the exact version, the derivative IntegerPart' has been given a symbolic definition. (2) The numeric derivative computed has changed ...
46
votes
4
answers
10k
views
How to change the default ColorData used in Mathematica's Plot?
This question leads on from the recent question What are the standard colors for plots in Mathematica?
There it was determined that the default color palette used by ...
27
votes
7
answers
14k
views
Plotting discontinuous functions without spurious vertical segments
Consider the plot of this discontinuous function:
f[x_] := If[2 < x < 3, 0, x]
Plot[f[x], {x, 0, 5}]
I'd like to plot that without the vertical segments.
...