Linked Questions
17 questions linked to/from All curves in plot have the same style. Cannot be fixed with Evaluate[]
13 votes
6 answers
1k views
An elegant way to plot a numeric function that returns a list, and have each element in a different color [duplicate]
I have a function that takes a numeric argument and returns a list of numbers. I want to plot each element of the list in a different color. If I use this command, ...
3 votes
2 answers
107 views
Plot draws different curves in same colour even using Evaluate [duplicate]
I would like the solutions of FindRoot (using NIntegrate under it) to be drawn in different colours by ...
3 votes
0 answers
65 views
Plotting list-valued interpolating function [duplicate]
I have an interpolation function which returns a list, e.g.: f=Interpolation[{{1,{1,2,3}},{2,{4,5,6}}}]; When I try to plot it, I get single-colored curves. <...
171 votes
7 answers
9k views
How can one find undocumented options or option values in Mathematica?
Mathematica has a lot of undocumented or poorly documented options. How does one go about working out if there is an undocumented option that might solve a particular problem? How does one work out ...
112 votes
4 answers
18k views
Plot draws list of curves in same color when not using Evaluate
This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
49 votes
3 answers
28k views
How to change plot style or other options after it was created
For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
30 votes
5 answers
8k views
Plotting piecewise function with distinct colors in each section
I have a piecewise function that I would like to plot but I was wondering if it is possible that each part of the function that is plotted when its corresponding condition is true be plotted with a ...
20 votes
5 answers
3k views
Proper way to Plot a single function in two different styles?
I've got this code ...
14 votes
4 answers
1k views
Plotting the components of a function that returns a list in different colors without redundant evaluations of the function
I have a function f which takes a number as input, and returns a list of numbers (the length of the list is constant). f is hard ...
10 votes
4 answers
668 views
how to style multi-value interpolation function plot?
Is there a cleaner way to apply different styles to the different channels of a multi value interpolation function? here is a 2-output interpolation function: ...
3 votes
2 answers
724 views
How to add points on the empirical distribution function on the leftside of the pieces (steps)?
Faced the problem. Here is code: ...
3 votes
2 answers
492 views
Even with Evaluate[], Mathematica is plotting everything in the same color
The code evals[x_?NumericQ] := Eigenvalues[{{x^2, 2 x}, {x, 3 x^2}}]; Plot[Evaluate[evals[x]], {x, -1, 1}] gives both eigenvalues in the same color. I thought ...
6 votes
1 answer
1k views
PlotStyle does not work when plotting a non-evaluated list of functions [duplicate]
When a list of functions is passed to Plot in an unevaluated form (e.g. with Through), the result is a plot with single color. <...
4 votes
2 answers
345 views
Losing control over StreamStyle
I solved Laplace's equation over a square region. There are Dirichlet BC's (the top wall is fixed at 100, the other walls are fixed at 0). Plotted result of Laplace's equation is below: I took the ...
3 votes
4 answers
247 views
Techniques for transforming and formatting a computationally expensive plot
How does one efficiently produce a plot of {f[x], f[x]+1}? Assume that f[x] is a long computation, which I would like to avoid ...