# UnicodePlots.jl scatterplot! not mutating previous plot

**URL:** <https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [January 23, 2023, 10:11pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432 "2023-01-23T22:11:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcbritobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jcbritobr/32/219275_2.png) [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Post date:** [January 23, 2023, 10:11pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432/1 "2023-01-23T22:11:24Z")

</div>

Hello, good afternoon. Im trying to plot two series in a scatterplot using UnicodePlots and its not working. The first plot I created is not being mutating using the code below:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/a/3aeebacb47f820c247187f5691146d16363f2b68.png)

here trying to mutate with other serie:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/3/c3c93f97533869dc85b92107dbfd5eca6919009d.png)

scatterplot! is outputting the same previous plot without adding the new one. I dont figure if the workflow is different, but, how to add two series in this scatterplot from two different data?

---

<div class="post-metadata">

**Author:** ![Dan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dan/32/42581_2.png) [@Dan](https://discourse.julialang.org/u/Dan)\
**Post date:** [January 23, 2023, 10:38pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432/2 "2023-01-23T22:38:48Z")

</div>

The first plot sets the range of x-axis and y-axis automatically. This range covers only the “setosa” subset and the other “versicolor” subset is outside the plot.

You can use `xlim` and `ylim` (named parameters) to set axes ranges manually in the first call.

---

<div class="post-metadata">

**Author:** ![jcbritobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jcbritobr/32/219275_2.png) [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Post date:** [January 23, 2023, 10:58pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432/3 "2023-01-23T22:58:08Z")

</div>

I’ll try it here and return as soon as possible.

---

<div class="post-metadata">

**Author:** ![jcbritobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jcbritobr/32/219275_2.png) [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Post date:** [January 23, 2023, 11:03pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432/4 "2023-01-23T23:03:47Z")

</div>

It worked as you said. Thank you. 🙂

![image](https://global.discourse-cdn.com/julialang/original/3X/8/c/8cd6eb8231513b0202e59f37c7a353f573d7a898.png)
