# Getting the contents of a fluid.labelset~ into a fluid.dataset~

**URL:** https://discourse.flucoma.org/t/getting-the-contents-of-a-fluid-labelset-into-a-fluid-dataset/789
**Category:** Pre-Release Toolbox2 Usage
**Created:** [February 23, 2021, 11:34pm UTC](https://discourse.flucoma.org/t/getting-the-contents-of-a-fluid-labelset-into-a-fluid-dataset/789 "2021-02-23T23:34:00Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)
#### Post date: [February 25, 2021, 7:51pm UTC](https://discourse.flucoma.org/t/getting-the-contents-of-a-fluid-labelset-into-a-fluid-dataset/789/5 "2021-02-25T19:51:41Z")

</div>

Ok, it was not as straightforward as I initially thought either. Initially I just tried doing the example from the first post, where I just add the contents of `fluid.labelset~` as an additional column in a `fluid.dataset~`. I managed to get all of that into a single dict, but couldn’t initially figure out how to munge them together from there. Got it in the end though.

Quite handy for visualizing. This is definitely a situation where you _don’t_ want to use the linear perception maps as the differentiation is far less with those when looking at clusters. I also noticed that if you use HSL, the edges wrap around more obviously for visualizing clusters. (I’ll update `fluid.datasetplot~` in the [relevant thread](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783/20)).

4 clusters from kmeans (linear display):

 ![Screenshot 2021-02-25 at 7.40.52 pm](https://discourse.flucoma.org/uploads/default/original/2X/3/3788676f4050fe2618c68b6d06183d49c40094e0.png)

4 clusters (previous hsl):

 ![Screenshot 2021-02-25 at 7.40.36 pm](https://discourse.flucoma.org/uploads/default/original/2X/2/24c034ef713a36ca887e2c460b547b74a9b398f1.png)

4 clusters (new hsl):

 ![Screenshot 2021-02-25 at 7.49.12 pm](https://discourse.flucoma.org/uploads/default/original/2X/8/837fbeff050f7ea64e0b799f4d57834317664405.png)

---

_[View the full topic](https://discourse.flucoma.org/t/getting-the-contents-of-a-fluid-labelset-into-a-fluid-dataset/789)._
