Linked Questions

1
vote
2answers
166 views

How to plot data with different colors (or symbols) depending on a condition [duplicate]

Let's consider a simple example. I want to plot a function on [0;2], depending on a condition: if x<1, I want to plot ...
0
votes
1answer
238 views

set colours for different parts of a piecewise function's graph [duplicate]

I would like to create a graph of the piecewise function $f(x) = \begin{cases} x + 2, & x < -1 \\ x^2, & -1 \leq x \leq 2 \\ 3, & x > 2\end{cases}$ where the changes in the ...
6
votes
1answer
231 views

Plotting piecewise functions with distinct colors - issue found [duplicate]

I've been making use of the following thread: Plotting piecewise function with distinct colors in each section A handy feature I found there goes as follows: ...
37
votes
6answers
3k views

Mathematica Destructuring

Context I'm writing a function that look something like: ...
21
votes
6answers
3k views

All curves in plot have the same style. Cannot be fixed with Evaluate[]

Usually, when I plot multiple curves in Mathematica Plot[{x,x^2,x^3},{x,0,1}] they are given different colors. However, if I try to construct a list inside the <...
20
votes
5answers
2k views

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

I've got this code ...
14
votes
5answers
3k views

How do you plot the same function with different options over different intervals?

Here is the motivation for my question. I want to plot Sin[x] over the interval 0 to 2 π, ...
12
votes
4answers
3k views

Plot the minimum of a list of functions

This is my first question on any stack-exchange site and I'm also very new to using Mathematica software so please excuse/correct me if I mess up. I would like to take a list of functions of a single ...
6
votes
4answers
3k views

How do I plot a function over a subset of the displayed interval?

I want to plot f1[x] over 0 < x < L/2 and f2[x] over ...
8
votes
5answers
590 views

Increasing the thickness of minimum of two curves while keeping their coloring the same

Let's say I am plotting Plot[{Sin[x], Cos[x]}, {x, 0, 2 π}, PlotStyle -> {Thickness[0.01], Thickness[0.01]}] I want to keep the same colors for the two ...
11
votes
4answers
734 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 ...
9
votes
2answers
23k views

Plotting two functions in one graph, with different value ranges [closed]

Plot[2x, {x,0,4}]; Plot[x^2, {x,4,8}]; How do I merge these two graphs into one?
3
votes
3answers
3k views

Plotting multiple parametric functions with different intervals

I want to make a parametric plot like this: ParametricPlot[{{2 t, -10 t^2}, {t, 2 t}}, {t, 0, 2}] I have tried the following but it doesn't work: ...
5
votes
4answers
1k views

Plotting piecewise functions

I have a list of N functions called functionList. N can be any number. Also, I have a list ...
1
vote
2answers
2k views

Multiple curves plotted with different colours [duplicate]

I am trying to use ColorFunction for 2 functions on the same plot. I only want the cubic equation to change colour. ...

15 30 50 per page