Linked Questions

13 votes
6 answers
1k views

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, ...
Joe's user avatar
  • 1,471
3 votes
2 answers
107 views

I would like the solutions of FindRoot (using NIntegrate under it) to be drawn in different colours by ...
Sander Heinsalu's user avatar
3 votes
0 answers
65 views

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. <...
Ruslan's user avatar
  • 7,272
171 votes
7 answers
9k views

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

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 ...
trayres's user avatar
  • 1,245
49 votes
3 answers
28k views

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 ...
matheorem's user avatar
  • 17.7k
30 votes
5 answers
8k views

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 ...
mirandaio's user avatar
  • 403
20 votes
5 answers
3k views

I've got this code ...
stevenvh's user avatar
  • 7,281
14 votes
4 answers
1k views

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 ...
Joe's user avatar
  • 1,471
10 votes
4 answers
668 views

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: ...
george2079's user avatar
  • 39.3k
3 votes
2 answers
724 views

Faced the problem. Here is code: ...
instajke's user avatar
  • 351
3 votes
2 answers
492 views

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 ...
tparker's user avatar
  • 1,888
6 votes
1 answer
1k views

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. <...
Susanta's user avatar
  • 161
4 votes
2 answers
345 views

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 ...
space bobcat's user avatar
3 votes
4 answers
247 views

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 ...
pre-kidney's user avatar

15 30 50 per page