# How to plot the graph to a specific location within a certain radius

**URL:** <https://openradar.discourse.group/t/how-to-plot-the-graph-to-a-specific-location-within-a-certain-radius/42>\
**Category:** Python\
**Created:** [October 10, 2022, 10:17am UTC](https://openradar.discourse.group/t/how-to-plot-the-graph-to-a-specific-location-within-a-certain-radius/42 "2022-10-10T10:17:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muru](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Muru](https://openradar.discourse.group/u/Muru)\
**Post date:** [October 10, 2022, 10:17am UTC](https://openradar.discourse.group/t/how-to-plot-the-graph-to-a-specific-location-within-a-certain-radius/42/1 "2022-10-10T10:17:19Z")

</div>

Hi Kai,  
I need one more help. How to plot the graph to a specific location [long, lat] within around 2km radius. This is like zooming. is it possible?

---

<div class="post-metadata">

**Author:** ![kmuehlbauer](https://yyz2.discourse-cdn.com/free1/user_avatar/openradar.discourse.group/kmuehlbauer/32/439_2.png) [@kmuehlbauer](https://openradar.discourse.group/u/kmuehlbauer)\
**Post date:** [November 24, 2022, 8:15pm UTC](https://openradar.discourse.group/t/how-to-plot-the-graph-to-a-specific-location-within-a-certain-radius/42/2 "2022-11-24T20:15:42Z")

</div>

Hi @Muru ,

this fell somehow through the cracks. Maybe you have just found your way through this, but I’ll add some solution anyway.

Referring to the example from [Reading Radolan RW files - #8 by kmuehlbauer](https://openradar.discourse.group/t/reading-radolan-rw-files/39/8) here it what would come next:

```python
zoom = dsg.sel(x=slice(point_ds.x-2500, point_ds.x+2500), 
               y=slice(point_ds.y-2500, point_ds.y+2500), drop=True)
zoom.RW.plot()

```

This takes the x/y-coordinates from the `point_ds`-Dataset (nearest point to specific lat/lon) and selects a region via slices.

![rw_zoom](https://global.discourse-cdn.com/free1/uploads/openradar/original/1X/8bf06b8aa36360f2828758035b68f432e918c9f7.png)

There might be more solutions to this (eg. using `xr.where`). I encourage the openradar community to add other solutions here.
