# Plot, set a color to a smooth line?

**URL:** <https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [March 26, 2020, 8:48pm UTC](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567 "2020-03-26T20:48:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)\
**Post date:** [March 26, 2020, 8:48pm UTC](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567/1 "2020-03-26T20:48:23Z")

</div>

I am sorry for the easy question.

Would you suggest, how to set a color for a smooth line?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 27, 2020, 6:45am UTC](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567/2 "2020-03-27T06:45:35Z")

</div>

> [@BMval](#):
>
> I am sorry for the easy question.

It is actually a very difficult question since you did not say what plotting package you are using. Also, please provide an MWE.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 27, 2020, 8:34am UTC](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567/3 "2020-03-27T08:34:21Z")

</div>

```julia
using Plots
y=rand(5)
plot(y,linecolor="red")

```

But @Tamas_Papp is right, I would like to have the PSA sticky for everybody (not just for me, as I made it sticky for me)
