# Request for Assistance in Plotting 3D Vector Diagram Using Python

**URL:** <https://discuss.python.org/t/request-for-assistance-in-plotting-3d-vector-diagram-using-python/43294>\
**Category:** Python Help\
**Tags:** help\
**Created:** [January 16, 2024, 8:14am UTC](https://discuss.python.org/t/request-for-assistance-in-plotting-3d-vector-diagram-using-python/43294 "2024-01-16T08:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hongyi-zhao](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/hongyi-zhao/32/1981_2.png) [@hongyi-zhao](https://discuss.python.org/u/hongyi-zhao)\
**Post date:** [January 16, 2024, 8:14am UTC](https://discuss.python.org/t/request-for-assistance-in-plotting-3d-vector-diagram-using-python/43294/1 "2024-01-16T08:14:20Z")

</div>

Dear Python community,

I am attempting to generate a figure in the three-dimensional space using Python, as illustrated in the attached image. In more detail, I need to create a three-dimensional coordinate system and denote the x, y, and z axes. I also wish to plot an arrow representing a vector and mark the angle alpha it makes with the x-y plane and the angle beta it makes with the z-axis.

I have learned that there are libraries such as matplotlib that might assist me in accomplishing my goal, yet I am uncertain about how to employ them to properly construct the image I want, like adding angle annotations and correctly positioning the vector arrow. Please see the reference image of the diagram I aim to create below:

 ![Selection_314](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/5/6/5626033ec7c97280e317f2526b187631b98700f2.jpeg)

Thank you very much for your valuable time and assistance. I am looking forward to your response and to learning more from you.

Best wishes,  
Zhao
