Linked Questions

13 votes
6 answers
918 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, ...
Joe's user avatar
  • 1,471
3 votes
2 answers
67 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 ...
Sander Heinsalu's user avatar
3 votes
0 answers
61 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. <...
Ruslan's user avatar
  • 7,172
167 votes
6 answers
8k 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 ...
111 votes
4 answers
16k 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 ...
trayres's user avatar
  • 1,235
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 ...
matheorem's user avatar
  • 17.2k
30 votes
5 answers
7k 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 ...
mirandaio's user avatar
  • 403
20 votes
5 answers
3k views

Proper way to Plot a single function in two different styles?

I've got this code ...
stevenvh's user avatar
  • 6,958
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 ...
Joe's user avatar
  • 1,471
10 votes
4 answers
559 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: ...
george2079's user avatar
3 votes
2 answers
646 views

How to add points on the empirical distribution function on the leftside of the pieces (steps)?

Faced the problem. Here is code: ...
instajke's user avatar
  • 351
3 votes
2 answers
393 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 ...
tparker's user avatar
  • 1,856
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. <...
Susanta's user avatar
  • 161
4 votes
2 answers
270 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 ...
space bobcat's user avatar
0 votes
1 answer
404 views

Correct definition of a function to be passed to Nintegrate [duplicate]

If I type the following code ...
lambertmular's user avatar

15 30 50 per page