# Problem in saving plot when giving color parameter

**URL:** https://discourse.julialang.org/t/problem-in-saving-plot-when-giving-color-parameter/40855
**Category:** New to Julia
**Tags:** question
**Created:** [June 6, 2020, 8:47am UTC](https://discourse.julialang.org/t/problem-in-saving-plot-when-giving-color-parameter/40855 "2020-06-06T08:47:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)
#### Post date: [June 6, 2020, 8:47am UTC](https://discourse.julialang.org/t/problem-in-saving-plot-when-giving-color-parameter/40855/1 "2020-06-06T08:47:44Z")

</div>

Hello,  
I could save a plot using PyPlot, but when I added the custom colour parameter, I could not save the figure anymore:

```julia
clf()
myPlot = plot(soln.t, getindex.(soln.u, 1),
              soln.t, getindex.(soln.u, 2),
              soln.t, getindex.(soln.u, 3),
              soln.t, getindex.(soln.u, 4),
              color = ["blue", "orange", "red", "green"])
...
savefig("plot.png", dpi = 300, format = "png", transparent = false)

```

what could be the problem?
