# How to make this plot in Julia?

**URL:** https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065
**Category:** Visualization
**Tags:** gadfly, plots, statsplots, algebraofgraphics, vegalite
**Created:** [January 23, 2022, 1:10pm UTC](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065 "2022-01-23T13:10:07Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![tp2750](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tp2750/32/207806_2.png) [@tp2750](https://discourse.julialang.org/u/tp2750)
#### Post date: [January 23, 2022, 2:12pm UTC](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065/3 "2022-01-23T14:12:52Z")

</div>

Thanks @juliohm I was under the impression that Gadfly was stalled, but that appears to be a misunderstanding.

It actually does ok:

## Gadfly

 ![billede](https://global.discourse-cdn.com/julialang/original/3X/4/4/449f31d64cf5a78c99c3696c440fbbe493d4119e.png)

With proper name-spacing and extra packages it also works from Weave:

```julia
using Gadfly, Cairo, Fontconfig
plot(d, x=:time, y=:value, color=:name, label=:name, 
  Gadfly.Geom.point(), Gadfly.Geom.line(), Gadfly.Geom.label())

```

Thanks for making me re-visit that.

## AlgebraOfGraphics

I’m not able to find a way to add text-labels on the plot in AlgebraOfGraphics.

This is as close as I can get:

```julia
using AlgebraOfGraphics, GLMakie
plt = data(d) * (visual(Scatter) + visual(Lines) ) * 
      mapping(:time, :value, color = :name);
AlgebraOfGraphics.draw(plt)

```

 ![billede](https://global.discourse-cdn.com/julialang/original/3X/8/6/8627e2166a0fb1503527d2c6efc1d3f36743e8e7.png)

Also, I’m not able to get the AOG plot to work from Weave.

## VegaLite

In VegaLite, I can plot points or lines or text-labels, but I can not figure out how to combine them:

```julia
using VegaLite
d |> @vlplot(:line, x = :time, y= :value, color = :name)

```

 ![billede](https://global.discourse-cdn.com/julialang/original/3X/4/5/457a4497a3f83dbb0ed3bc06a8d335221a5a8129.png)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065)._
