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, ...
• 1,471
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 ...
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. <...
• 7,172
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 ...
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 ...
• 1,235
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 ...
• 17.2k
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 ...
• 403
3k views

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

I've got this code ...
• 6,958
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 ...
• 1,471
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: ...
• 39k
646 views

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

Faced the problem. Here is code: ...
• 351
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 ...
• 1,856
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. <...
• 161
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 ...
• 548