# Scatterplot on single states only

**URL:** <https://community.plotly.com/t/scatterplot-on-single-states-only/10969>\
**Category:** plotly.js\
**Created:** [June 16, 2018, 11:26am UTC](https://community.plotly.com/t/scatterplot-on-single-states-only/10969 "2018-06-16T11:26:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WillemSpek](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@WillemSpek](https://community.plotly.com/u/WillemSpek)\
**Post date:** [June 16, 2018, 11:26am UTC](https://community.plotly.com/t/scatterplot-on-single-states-only/10969/1 "2018-06-16T11:26:28Z")

</div>

Hi,

Since I have too many datapoints to plot for the entire country, I was hoping to find some code to plot only on single states within a country, so for instance only on Texas in the US. However, there are only tutorials for **chloropeth maps**. I’d like to do the same for a **scatterplot**. Any suggestions on how this is done would be great!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![WillemSpek](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@WillemSpek](https://community.plotly.com/u/WillemSpek)\
**Post date:** [June 17, 2018, 12:48pm UTC](https://community.plotly.com/t/scatterplot-on-single-states-only/10969/2 "2018-06-17T12:48:57Z")

</div>

Solved it, you just have to change the ranges in lonaxis and lataxis to your desired format. It would be a lot easier if this could be done for you with a string representing a range tho
