# Plot a graph of a non linear ODE system?

**URL:** <https://community.wolfram.com/t/plot-a-graph-of-a-non-linear-ode-system/12479>\
**Category:** Questions\
**Tags:** calculus, equation-solving, graphics-and-visualization\
**Created:** [May 16, 2018, 12:10pm UTC](https://community.wolfram.com/t/plot-a-graph-of-a-non-linear-ode-system/12479 "2018-05-16T12:10:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![giordanoandrea96](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@giordanoandrea96](https://community.wolfram.com/u/giordanoandrea96)\
**Post date:** [May 16, 2018, 12:10pm UTC](https://community.wolfram.com/t/plot-a-graph-of-a-non-linear-ode-system/12479/1 "2018-05-16T12:10:29Z")

</div>

Hello everybody,

I got a simple question. I wrote this instruction to plot the solution of my non linear ODE system.  
The problem is that the program plots all the three functions in one color.  
How can I change it? Why doesn’t it label them?

Thank you!

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [May 16, 2018, 12:38pm UTC](https://community.wolfram.com/t/plot-a-graph-of-a-non-linear-ode-system/12479/2 "2018-05-16T12:38:52Z")

</div>

(\* Tested on Mathematica version 10.2 and 11.3 \*)

```
 sol = NDSolve[{x'[t] == -y[t] - x[t]^2, y'[t] == 2 x[t] - y[t]^3, 
 z'[t] == 2 x[t] - z[t], x[0] == y[0] == z[0] == 1}, {x, y, z}, {t,10}];

Plot[Evaluate[{x[t], y[t], z[t]} /. sol], {t, 0, 10},
PlotLegends -> Placed[{"x[t]", "y[t]", "z[t]"}, Above]](*default colors*)

```

 ![46191.png](https://global.discourse-cdn.com/wolfram/original/3X/e/e/ee0df5bb3b72896f08f0c11f3814b17eedb17752.png)

```
Plot[Evaluate[{x[t], y[t], z[t]} /. sol], {t, 0, 10}, PlotStyle -> {Red, Green, Blue}, 
PlotLegends -> Placed[{"x[t]", "y[t]", "z[t]"}, Above]]

```

 ![108292.png](https://global.discourse-cdn.com/wolfram/original/2X/d/d3dfe114552b704e6ed5b6fc287025198aa25d5e.png)
