# Cross section projections

**URL:** <https://forum.generic-mapping-tools.org/t/cross-section-projections/4489>\
**Category:** PyGMT Q&A\
**Created:** [December 4, 2023, 7:46pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-projections/4489 "2023-12-04T19:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonino13](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/tonino13/32/1440_2.png) [@tonino13](https://forum.generic-mapping-tools.org/u/tonino13)\
**Post date:** [December 4, 2023, 7:46pm UTC](https://forum.generic-mapping-tools.org/t/cross-section-projections/4489/1 "2023-12-04T19:46:59Z")

</div>

Dear all,

I hope all ok at your side.

I have been trying to plot two cross section from the same map using “pygmt.project”, one vertical (NW-SE) and the other horizontal (NE-SW) cross sections. The projection are Depths Vs Distance.

So far I use one script to plot The NE-SW (A-A’) cross section (output: “231202\_CrossSection\_horizontal.png”) and another script to plot the NW-SW (B-B’) cross section (output: “231202\_CrossSection\_vertical.png”).

I was thinking to use " fig.subplot()" method, but I am not sure if "pygmt.project"will accept to work within the "fig.subplot()"methodology because I get this error (attached the script):  
[two\_projections\_subplot.txt](https://forum.generic-mapping-tools.org/uploads/short-url/i2SWPAb4mDWX9BJtP2X2umn6fuX.txt) (5.6 KB)

```
GMTCLibError: Module 'basemap' failed with status code 72:
basemap [ERROR]: Option -Y given more than once
basemap [ERROR]: Option -Y parsing failure. Correct syntax:
basemap [ERROR]: Offending option -Ya0i

```

The output I’d like to have seems like the example: [subplot\_advanced\_examples](https://www.pygmt.org/v0.3.0/tutorials/subplots.html)

Thank you in advance for any suggestion.

 ![231202_CrossSection_horizontal](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/a/a8150c6f16d7d951db82e890dfedd9d60013040f.png) ![231202_CrossSection_vertical](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/5/56682e5f178a1e42e8eec31fca7b3431aefc0179.png)
