# Pygmt profile draw

**URL:** <https://forum.generic-mapping-tools.org/t/pygmt-profile-draw/5840>\
**Category:** PyGMT Q&A\
**Created:** [April 14, 2025, 7:48pm UTC](https://forum.generic-mapping-tools.org/t/pygmt-profile-draw/5840 "2025-04-14T19:48:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammetnergizci](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/muhammetnergizci/32/2086_2.png) [@muhammetnergizci](https://forum.generic-mapping-tools.org/u/muhammetnergizci)\
**Post date:** [April 14, 2025, 7:48pm UTC](https://forum.generic-mapping-tools.org/t/pygmt-profile-draw/5840/1 "2025-04-14T19:48:56Z")

</div>

Hi, I would like to draw and analyze a profile on a map using PyGMT. Is there a way to plot a profile line directly on the map, similar to how it’s done in GMT using this command?

```auto
echo 35 35 | gmt plot -SJ20/10/250 -W0.8p

```

In this command, the center point is at latitude 35, longitude 35, the azimuth is 20°, the profile width is 10 km, and the total length is 250 km. How can I replicate this in PyGMT?
