Scatterplot on single states only

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!

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