# 3d plotting datetime, deg, deg

**URL:** <https://community.openastronomy.org/t/3d-plotting-datetime-deg-deg/970>\
**Category:** Astropy\
**Tags:** astropy\
**Created:** [April 29, 2024, 4:49am UTC](https://community.openastronomy.org/t/3d-plotting-datetime-deg-deg/970 "2024-04-29T04:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmaron52](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nmaron52/32/538_2.png) [@nmaron52](https://community.openastronomy.org/u/nmaron52)\
**Post date:** [April 29, 2024, 4:49am UTC](https://community.openastronomy.org/t/3d-plotting-datetime-deg-deg/970/1 "2024-04-29T04:49:11Z")

</div>

I’m sure this is a sadly newbie question. I have generated alt/az against time and want to 3d plot them. I keep getting data conversion type errors when I issue the ax.plot(time, alt, az) routine:

Traceback (most recent call last):  
File “C:\Users\neilm\AppData\Local\Programs\Python\Python311\Lib\site-packages\astropy\units\quantity.py”, line 1658, in \_to\_own\_unit  
\_value = value.to\_value(unit)  
^^^^^^^^^^^^^^  
AttributeError: ‘numpy.ndarray’ object has no attribute ‘to\_value’

During handling of the above exception, another exception occurred:  
…

Can someone point out what I’m not doing or doing wrong.

---

<div class="post-metadata">

**Author:** ![nmaron52](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nmaron52/32/538_2.png) [@nmaron52](https://community.openastronomy.org/u/nmaron52)\
**Post date:** [April 29, 2024, 7:21pm UTC](https://community.openastronomy.org/t/3d-plotting-datetime-deg-deg/970/2 "2024-04-29T19:21:34Z")

</div>

And I found my own answer. I just have to create a new array using the .value or .deg property and then the array is “plottable”.
