# Hail.plot.visualize\_missingness usage example

**URL:** <https://discuss.hail.is/t/hail-plot-visualize-missingness-usage-example/2232>\
**Category:** Hail Query & hailctl\
**Created:** [September 8, 2021, 9:38am UTC](https://discuss.hail.is/t/hail-plot-visualize-missingness-usage-example/2232 "2021-09-08T09:38:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsmadsen](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jsmadsen](https://discuss.hail.is/u/jsmadsen)\
**Post date:** [September 8, 2021, 9:38am UTC](https://discuss.hail.is/t/hail-plot-visualize-missingness-usage-example/2232/1 "2021-09-08T09:38:31Z")

</div>

Hello

I wanted to try out `hail.plot.visualize_missingness` but I am not sure I understand it correctly. If I call `hail.plot.visualize_missingness(mt.GT)` I get:

> 2021-09-08 09:34:26 Hail: INFO: Ordering unsorted dataset with network shuffle
> 
> * * *
> 
> TypeError Traceback (most recent call last)  
> in   
> ----\> 1 hl.plot.visualize\_missingness(mt.GT)
> 
> in visualize\_missingness(entry\_field, row\_field, column\_field, window, plot\_width, plot\_height)
> 
> /opt/conda/lib/python3.6/site-packages/hail/typecheck/check.py in wrapper(\_\_original\_func, \*args, \*\*kwargs)  
> 612 def wrapper(_original\_func, \*args, \*\*kwargs):  
> 613 args, kwargs_ = check\_all(\_\_original\_func, args, kwargs, checkers, is\_method=is\_method)  
> → 614 return _original\_func(\*args, \*\*kwargs_)  
> 615  
> 616 return wrapper
> 
> /opt/conda/lib/python3.6/site-packages/hail/plot/plots.py in visualize\_missingness(entry\_field, row\_field, column\_field, window, plot\_width, plot\_height)  
> 1476 \* hail.int64(row\_field.global\_position() / window))  
> 1477 else:  
> → 1478 grouping = hail.int64(window) \* hail.int64(row\_field / window)  
> 1479 mt = mt.group\_rows\_by(  
> 1480 \_new\_row\_key=grouping
> 
> TypeError: unsupported operand type(s) for /: ‘StructExpression’ and ‘int’

What am I doing wrong here?

Thank you for the help!

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [September 8, 2021, 12:02pm UTC](https://discuss.hail.is/t/hail-plot-visualize-missingness-usage-example/2232/2 "2021-09-08T12:02:28Z")

</div>

There’s a bug here – pass in `row_field=mt.locus` to avoid for now.
