1 vote
208 views

### Colour plot based on x-axis value

I am trying to adapt [this solution for colouring the different sections of a Piecewise function] I want to colour based on the x-axis value. I have two functions I want to do this for, one is ...
• 693
2k views

### How to merge two or more curves smoothly?

I have plotted three curves. For each range of $x$, one of those curves is true. On the other hand, finally, the result must be a unified curve. Is there any command to unify these three curves? ...
261 views

### Different colours for different sectors of piecewise function

I have some lines of code that generate numerical solutions to equations. Then I want to combine two of these in a piecewise function. The way I did it is the following -lf1[r] and lf4[r] are the ...
988 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 ...
• 117
662 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 ...
• 690
516 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 ...
212 views

### PlotStyle according to PlotRange

I have the function Hypocycloid[{R_, r_}, θ_] := {(R - r) Cos[θ] + r Cos[θ (R - r)/r], (R - r) Sin[θ] - r Sin[θ (R - r)/r]} For, e.g., R=5 and r=...
• 4,824
305 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: ...
2k views

### Plotting piecewise functions

I have a list of N functions called functionList. N can be any number. Also, I have a list ...
• 53
31k 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?
• 123
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 ...
• 173
1 vote
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. ...
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: ...
429 views

### Using mesh for a single function inside Plot

Plot[{Sin[x], Cos[x]}, {x, 0, 10}, Mesh -> {{0, π}}, MeshShading -> {Black, Red}] In the above, how can I specify that I want the mesh for just, say the <...
• 901