# Combine legends of gv.Path and gv.Points

**URL:** <https://discourse.holoviz.org/t/combine-legends-of-gv-path-and-gv-points/2650>\
**Category:** GeoViews\
**Created:** [August 10, 2021, 12:55pm UTC](https://discourse.holoviz.org/t/combine-legends-of-gv-path-and-gv-points/2650 "2021-08-10T12:55:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skealz](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/skealz/32/127_2.png) [@Skealz](https://discourse.holoviz.org/u/Skealz)\
**Post date:** [August 10, 2021, 12:55pm UTC](https://discourse.holoviz.org/t/combine-legends-of-gv-path-and-gv-points/2650/1 "2021-08-10T12:55:44Z")

</div>

Hi,

I am plotting a “line” with gv.Path and I plot with the same data using gv.Points, to have Points overlayed on this line.

Here is the code :

```auto
    track_plot = gv.Points(track_gdf, vdims=["wind_speed (m/s)", "date"]).opts(
        color="wind_speed (m/s)", cmap=high_cmap, size=10, tools=["hover"], clim=(0, 80), line_color="black",
        line_width=1.5)

...

    track_path_plot = gv.Path(track_path, vdims=["wind_speed (m/s)", "date"],
                              label="Cyclone ATCF interpolated track").opts(
        color="black", tools=["hover"], line_width=3, show_legend=True)

```

Plotting the data works fine.

I would like that the legend indicates something like this : ![sin](https://discourse.holoviz.org/uploads/default/original/2X/6/691717df3d0bf40564e9da8b9623ffd2de03300c.png)

Is it possible ?

Thanks !

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [August 10, 2021, 4:16pm UTC](https://discourse.holoviz.org/t/combine-legends-of-gv-path-and-gv-points/2650/2 "2021-08-10T16:16:59Z")

</div>

If you set `label="Cyclone ATCF interpolated track"` for track\_plot it should work

---

<div class="post-metadata">

**Author:** ![Skealz](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/skealz/32/127_2.png) [@Skealz](https://discourse.holoviz.org/u/Skealz)\
**Post date:** [August 11, 2021, 7:55am UTC](https://discourse.holoviz.org/t/combine-legends-of-gv-path-and-gv-points/2650/3 "2021-08-11T07:55:45Z")

</div>

Oh great it works ! I was sure I tried this before without success. Thanks for your help !
