# Get a list of unique HoloViews elements?

**URL:** <https://discourse.holoviz.org/t/get-a-list-of-unique-holoviews-elements/1334>\
**Category:** HoloViews\
**Tags:** holoviews\
**Created:** [October 20, 2020, 6:29pm UTC](https://discourse.holoviz.org/t/get-a-list-of-unique-holoviews-elements/1334 "2020-10-20T18:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [October 20, 2020, 6:29pm UTC](https://discourse.holoviz.org/t/get-a-list-of-unique-holoviews-elements/1334/1 "2020-10-20T18:29:52Z")

</div>

Is there a way to get something like:

```auto
import holoviews as hv
plot = hv.Curve([0, 1, 2]) * hv.Scatter([0, 1, 2])
plot.elements

```

# expected output

[‘Overlay’, ‘Curve’, ‘Scatter’]

without having to parse the str(plot)

```auto
str(plot)
':Overlay\n .Curve.I :Curve [x] (y)\n .Scatter.I :Scatter [x] (y)'

```

---

<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:** [October 23, 2020, 3:38pm UTC](https://discourse.holoviz.org/t/get-a-list-of-unique-holoviews-elements/1334/2 "2020-10-23T15:38:28Z")

</div>

Or at least get the base element?

---

<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:** [October 23, 2020, 4:09pm UTC](https://discourse.holoviz.org/t/get-a-list-of-unique-holoviews-elements/1334/3 "2020-10-23T16:09:12Z")

</div>

Nevermind, also figured out:  
`np.unique([p.group for p in plot.traverse()])`
