# Plot with VectorPlot over a region

**URL:** <https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524>\
**Category:** Questions\
**Tags:** education, physics, computational-arts, mathematica, calculus, graphics-and-visualization\
**Created:** [May 24, 2018, 9:27pm UTC](https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524 "2018-05-24T21:27:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![udibehar](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@udibehar](https://community.wolfram.com/u/udibehar)\
**Post date:** [May 24, 2018, 9:27pm UTC](https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524/1 "2018-05-24T21:27:33Z")

</div>

Hello.

First time here for me.

I want to plot the vector field A,

![10515CodeCogsEqn.png](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a89603afe4b556eb8c692f76b7d03ece625d2ab.png)

over the region

![4087CodeCogsEqn.png](https://global.discourse-cdn.com/wolfram/original/2X/b/b89794246d6d4d50443d0f9b66a771ecb2822ea3.png)

I tried the following:

```
VectorPlot[{y, -x}, {x, y} \[Element] (1/4 < x^2 + y^2 && x^2 + y^2 < 9)]

```

But it doesn’t work, although

```
RegionPlot[1/4 < x^2 + y^2 && x^2 + y^2 < 9, {x, -4, 4}, {y, -4, 4}]

```

does return the correct region.

Can someone give me any kind of help with it? Or explain where is the syntax error?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 25, 2018, 5:45am UTC](https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524/2 "2018-05-25T05:45:20Z")

</div>

It works if you add ImplicitRegion:

```
VectorPlot[{y, -x}, {x, y} \[Element] 
  ImplicitRegion[(1/4 < x^2 + y^2 && x^2 + y^2 < 9), {x, y}]]

```

---

<div class="post-metadata">

**Author:** ![udibehar](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@udibehar](https://community.wolfram.com/u/udibehar)\
**Post date:** [May 25, 2018, 1:41pm UTC](https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524/3 "2018-05-25T13:41:35Z")

</div>

Works. Great.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 25, 2018, 2:04pm UTC](https://community.wolfram.com/t/plot-with-vectorplot-over-a-region/12524/4 "2018-05-25T14:04:53Z")

</div>

You can also use `Annulus`:

```
VectorPlot[{y, -x}, {x, y} \[Element] Annulus[{0, 0}, {1/2, 3}]]

```
