# Issue with gwpy unable to plot the data

**URL:** <https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816>\
**Category:** Data Analysis\
**Created:** [September 4, 2023, 11:53am UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816 "2023-09-04T11:53:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjeev7881](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sanjeev7881](https://ask.igwn.org/u/sanjeev7881)\
**Post date:** [September 4, 2023, 11:53am UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816/1 "2023-09-04T11:53:42Z")

</div>

Hi everyone,  
I am recently joined in this work and i have gone through the videos and workshop lectures. And i started work by downloading the L1 data from the GWOSC website, i have imported the all required libraries. When i supposed to plot the strain data I’m facing issues (AttributeError: type object ‘LatexInlineDimensional’ has no attribute ‘\_latex\_escape’). Can any one help me to figure out this problem(i tried updating the gwpy). Below I’m attaching the code picture.

 ![Screenshot from 2023-09-04 17-04-59](https://canada1.discourse-cdn.com/flex031/uploads/gwosc/original/1X/b59a286f6966f51cef9bb91a560599f335d7292c.png)

Thanks

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/jonah/32/10_2.png) [@jonah](https://ask.igwn.org/u/jonah)\
**Post date:** [September 8, 2023, 11:17pm UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816/2 "2023-09-08T23:17:21Z")

</div>

Hi @sanjeev7881 !

I’m not really sure, but this looks like an issue related to software version numbers. You should check that the versions of `gwpy`, `astropy`, and `matplotlib` are consistent. For example, you could try to follow the version numbers in one of the conda distributions:

> **[igwn-py39 - IGWN Conda Distribution](https://computing.docs.ligo.org/conda/environments/igwn-py39/)**
>
> IGWN Conda Distribution

---

<div class="post-metadata">

**Author:** ![martinberoiz](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/martinberoiz/32/11_2.png) [@martinberoiz](https://ask.igwn.org/u/martinberoiz)\
**Post date:** [September 8, 2023, 11:32pm UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816/3 "2023-09-08T23:32:06Z")

</div>

Hi,

Check out this other thread with a similar issue:

> [@AttributeError when running google colab notebooks](https://ask.igwn.org/t/attributeerror-when-running-google-colab-notebooks/810):
>
> Hello! I wanted to use again the google colab for "notebook 1.2 open data access with GWpy and to my surprise I got the following error almost at the very beginning of the notebook: AttributeError Traceback (most recent call last) in \<cell line: 1\>() ----\> 1 plot = ldata.plot() 5 frames /usr/local/lib/python3.10/dist-packages/gwpy/plot/units.py in to\_string(cls, unit) 37 if unit.physical\_type not in {None, ‘unknown’, ‘dimensionless’}: 38 ptyp…

---

<div class="post-metadata">

**Author:** ![Lucy](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@Lucy](https://ask.igwn.org/u/Lucy)\
**Post date:** [September 20, 2023, 2:04pm UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816/4 "2023-09-20T14:04:25Z")

</div>

Hi @sanjeev7881. I don’t know if you have solved it. I got the same error again with a google colab notebook, but then it worked by doing the following at the very beginning:  
!pip install --upgrade gwpy

and comment the other lines:  
– Uncomment following line if running in Google Colab  
! pip install -q ‘gwpy==2.0.2’

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![sanjeev7881](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sanjeev7881](https://ask.igwn.org/u/sanjeev7881)\
**Post date:** [September 20, 2023, 2:20pm UTC](https://ask.igwn.org/t/issue-with-gwpy-unable-to-plot-the-data/816/5 "2023-09-20T14:20:48Z")

</div>

Thank you all for your precious comments and i shorted it out now.
