# \_\_init\_\_() got an unexpected keyword argument 'location' Error

**URL:** https://discourse.scverse.org/t/init-got-an-unexpected-keyword-argument-location-error/719
**Category:** scvi-tools
**Tags:** scvi
**Created:** [September 1, 2022, 10:17am UTC](https://discourse.scverse.org/t/init-got-an-unexpected-keyword-argument-location-error/719 "2022-09-01T10:17:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cookiemonster](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cookiemonster](https://discourse.scverse.org/u/cookiemonster)
#### Post date: [September 1, 2022, 10:17am UTC](https://discourse.scverse.org/t/init-got-an-unexpected-keyword-argument-location-error/719/1 "2022-09-01T10:17:46Z")

</div>

I was trying to create umap using gene marker (code below) but comes out with an error message and the color heat legend comes out blank.  
How can I resolve this issue?  
`sc.pl.umap(adata, color = ['MS4A7'], frameon = False, layer = 'scvi_normalized')`  
 ![스크린샷 2022-09-01 오후 6.58.54](https://canada1.discourse-cdn.com/flex035/uploads/forum11/original/1X/2543eacc7f653e2b2e1f65a8281615e0a9dfb6dc.png)

---

<div class="post-metadata">

### Author: ![valehvpa](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@valehvpa](https://discourse.scverse.org/u/valehvpa)
#### Post date: [September 1, 2022, 5:23pm UTC](https://discourse.scverse.org/t/init-got-an-unexpected-keyword-argument-location-error/719/2 "2022-09-01T17:23:22Z")

</div>

Can you open a github issue in the scanpy [repository](https://github.com/scverse/scanpy/issues)?  
It [looks](https://stackoverflow.com/questions/69727902/matplotlib-colorbar-init-got-an-unexpected-keyword-argument-location) like matplotlib’s colorbar cannot be used in conjunction with the cax argument and it looks like there was a recent [change](https://github.com/scverse/scanpy/pull/1821) in scanpy that changed that, so that might have caused this regression.

Also next time if you get an error / exception, could you share the full exception stack trace?

---

<div class="post-metadata">

### Author: ![cookiemonster](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cookiemonster](https://discourse.scverse.org/u/cookiemonster)
#### Post date: [September 2, 2022, 12:30am UTC](https://discourse.scverse.org/t/init-got-an-unexpected-keyword-argument-location-error/719/3 "2022-09-02T00:30:10Z")

</div>

Will do, and I will go ahead and post the issue on github. Thank you!
