# How to change box plot code to Area Plot?

**URL:** <https://discourse.julialang.org/t/how-to-change-box-plot-code-to-area-plot/35588>\
**Category:** General Usage\
**Created:** [March 5, 2020, 3:36pm UTC](https://discourse.julialang.org/t/how-to-change-box-plot-code-to-area-plot/35588 "2020-03-05T15:36:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arega\_Getaneh](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Post date:** [March 5, 2020, 3:36pm UTC](https://discourse.julialang.org/t/how-to-change-box-plot-code-to-area-plot/35588/1 "2020-03-05T15:36:41Z")

</div>

Below is my code for boxplot and it works. But I want to change it to area plot and couldn’t work. Could anyone can help me how to put the date to fit for area Plot? Thank  
"

````julia
rc("font", family="serif",size=12)
x_ticks=["Neutral"," "," "," "," "," "," "," "," "," ", "High"]
l_ticks=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
X_label="Risk aversion"
# *******************************************
figure()

boxplot(dropdims(sum(Pi_i_gen,dims=2),dims=2)',0, "")
boxplot(dropdims(sum(Pi_j_gen,dims=2),dims=2)',0, "")
ylabel("€");xlabel(X_label);xticks(l_ticks,x_ticks)
plot(l_ticks,sum(EPi_i_gen,dims=2),color="black", label= "Profit conventional");
plot(l_ticks,sum(EPi_j_gen,dims=2),color="green", label= "Profit RES");

legend()
ticklabel_format(style="sci", axis="y", scilimits=(0,0))
savefig("Compttitve_profit_gen_CVaR.pdf", bbox_inches="tight")```
````
