# How to make this graph more beautiful?

**URL:** <https://discourse.julialang.org/t/how-to-make-this-graph-more-beautiful/82912>\
**Category:** General Usage\
**Tags:** plots, statsplots\
**Created:** [June 17, 2022, 11:16am UTC](https://discourse.julialang.org/t/how-to-make-this-graph-more-beautiful/82912 "2022-06-17T11:16:08Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [June 18, 2022, 6:40am UTC](https://discourse.julialang.org/t/how-to-make-this-graph-more-beautiful/82912/9 "2022-06-18T06:40:55Z")

</div>

To change the label positions for a given plot manually you can use the following syntax by providing the annotations coordinates:

```julia
scatter(df.x1, df.x2; annotation = (x, y, text.(df.city, :magenta, 6)), leg=false)

```

Just change x, y around df.x1, df.x2, with the required offsets.

The general problem is very difficult. It would be easier to abbreviate the city names to 2 or 3 letters max and annotate randomly around the points. See [this other thread](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065/4).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-this-graph-more-beautiful/82912)._
