# Plotting displacement with ellipses

**URL:** <https://forum.generic-mapping-tools.org/t/plotting-displacement-with-ellipses/2913>\
**Category:** PyGMT Q&A\
**Created:** [May 11, 2022, 11:11pm UTC](https://forum.generic-mapping-tools.org/t/plotting-displacement-with-ellipses/2913 "2022-05-11T23:11:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordi](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lordi](https://forum.generic-mapping-tools.org/u/lordi)\
**Post date:** [May 11, 2022, 11:11pm UTC](https://forum.generic-mapping-tools.org/t/plotting-displacement-with-ellipses/2913/1 "2022-05-11T23:11:07Z")

</div>

Hello everyone,

I’ve been trying to do a plot like this one to represent the tide displacements (east, north, and up).

 ![image1](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/6/66bfa3f94b70c103c3fa9dd1c48d09abc1a35c8e.jpeg)

I am trying to use pygmt.Figure.velo to do it. But I cannot get the ellipses varying in shape and orientation. What am I doing wrong?  
I am new using Pygmt and this is what I tried so far following an example I found here:

> df = pd.DataFrame(  
> data={  
> “Longitude”: lon,  
> “Latitude”: lat,  
> “Eastward”: ets,  
> “Northward”: nts,  
> “Major”: semimaj,  
> “Minor”: semimin,  
> “azimuth”: direc,  
> }  
> )  
> fig = pygmt.Figure()  
> fig.velo(  
> data=df,  
> spec=“r0.5/0.95”,  
> pen=“red”,  
> uncertaintycolor=“lightblue1”,  
> frame=True,  
> )  
> fig.show()

Thanks.
