# Getting the same values to have the same colors across multiple plots of spatial\_segment?

**URL:** <https://discourse.scverse.org/t/getting-the-same-values-to-have-the-same-colors-across-multiple-plots-of-spatial-segment/3568>\
**Category:** squidpy\
**Created:** [March 24, 2025, 1:36pm UTC](https://discourse.scverse.org/t/getting-the-same-values-to-have-the-same-colors-across-multiple-plots-of-spatial-segment/3568 "2025-03-24T13:36:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YonSa](https://avatars.discourse-cdn.com/v4/letter/y/53a042/32.png) [@YonSa](https://discourse.scverse.org/u/YonSa)\
**Post date:** [March 24, 2025, 1:36pm UTC](https://discourse.scverse.org/t/getting-the-same-values-to-have-the-same-colors-across-multiple-plots-of-spatial-segment/3568/1 "2025-03-24T13:36:48Z")

</div>

I’m calling:

```auto
    sq.pl.spatial_segment(
        fov,
        color=['method_1', 'method_2'],
        library_key="fov",
        library_id=fov_num,
        seg_cell_id="cell_ID",
        title=f"{method}, FOV {fov_num} (N={fov.n_obs} cells)",
        )

```

I want to set a pallet that assigns a constant colour to each category such that both sublots will be consistent, and when plotting across different FOVs as well.  
The pallet argument only accepts a flat list, not a dict, so I have no idea how to do this.  
Thanks!
