# Sc.pl.draw\_graph is strongly affected by the outliers

**URL:** <https://discourse.scverse.org/t/sc-pl-draw-graph-is-strongly-affected-by-the-outliers/2167>\
**Category:** scanpy\
**Tags:** plotting\
**Created:** [March 18, 2024, 4:46am UTC](https://discourse.scverse.org/t/sc-pl-draw-graph-is-strongly-affected-by-the-outliers/2167 "2024-03-18T04:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chansigit](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/chansigit/32/467_2.png) [@chansigit](https://discourse.scverse.org/u/chansigit)\
**Post date:** [March 18, 2024, 4:46am UTC](https://discourse.scverse.org/t/sc-pl-draw-graph-is-strongly-affected-by-the-outliers/2167/1 "2024-03-18T04:46:25Z")

</div>

I am visualizing graphs but my points are strongly affected by the outliers.  
how can i alleviate the outliers’ impacts? i dont’ want the data crouched in the center.

are theire any parameters that can dismiss these outliers in the embedding?

my code:

```auto
sc.tl.draw_graph(adata_list[5], layout='fa', neighbors_key='spatial_neighbors')
sc.pl.draw_graph(adata_list[5], color='anno_germ_layer',edges=False, title=adata_list[5].obs['actual_stage'][0], ax=axes[1,1], show=False, legend_loc='on data', legend_fontweight='light')

```

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/forum11/original/1X/5a98869130a1f733f1f970bd3052b974f3735165.jpeg)
