# "Graphic mode in Baserow" with python-baserow-client, plotly

**URL:** https://community.baserow.io/t/graphic-mode-in-baserow-with-python-baserow-client-plotly/3265
**Category:** Made with Baserow
**Created:** [August 17, 2023, 6:42pm UTC](https://community.baserow.io/t/graphic-mode-in-baserow-with-python-baserow-client-plotly/3265 "2023-08-17T18:42:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![anon59363363](https://community.baserow.io/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@anon59363363](https://community.baserow.io/u/anon59363363)
#### Post date: [August 19, 2023, 1:30am UTC](https://community.baserow.io/t/graphic-mode-in-baserow-with-python-baserow-client-plotly/3265/3 "2023-08-19T01:30:51Z")

</div>

> [@olgatrykush](#):
>
> Hello @solarsbeans, wow, thank you for the contribution! It looks super useful, and building graphs using the Baserow data is a highly requested functionality. I believe a lot of people would benefit from this solution. 🫶

I’m happy with your feedback. Something I noticed in the previous example is that the code I submitted is very simplified. Then, I recreated this same example, and use more stuff. For example, here I made an example from scratch without any external libraries.

```python
import requests
import json 
import matplotlib.pyplot as plt

def Connect(add_id_table, add_token_baserow):
  return requests.get("https://api.baserow.io/api/database/rows/table/"+add_id_table+"/?user_field_names=true", headers={"Authorization": "Token "+add_token_baserow})

def listDatabase(add_property_name):
  viewList = json.loads(json.dumps(Connect('add_id_table','add_token_baserow').json()))
  return viewList[add_property_name]

def dataList(value):
  return enumerate(value)

testTitleName = []
testTitleLastName = []
for index, item in dataList(listDatabase('add_property_name')):
  testTitleName.append(item['testTitleName'])
  testTitleLastName.append(item['testTitleLastName']) 

plt.plot(testTitleName, testTitleLastName)
plt.xlabel('title')
plt.ylabel('dataTitle')
plt.title('My first graph with baserow-api, matplotlib, json, requests!')
plt.show()

```

| Data I used were these | This can generate something like |
| --- | --- |
| ![](https://community.baserow.io/uploads/default/original/2X/9/9471742b89adead9bfa7dd14e50ebbce5356292b.png) | ![](https://community.baserow.io/uploads/default/original/2X/3/3d1040b22d4765278fead22c2f1a4fe79188445f.png) |

**Don’t forget that the free plan has limitations**  
Please, see this: [Baserow free tier limits](https://community.baserow.io/t/baserow-free-tier-limits/211)  
**1.1** Maximum of 3.000 rows per group/workspace in free plan(Baserow)  
**1.2** Maximum of 2GB of storage in free plan(Baserow)  
**1.3** Maximum of 1.000 monthly API requests in free plan(Baserow)  
**1.4** Support via the community, tutorials, FAQ, user docs in free plan(Baserow)

---

_[View the full topic](https://community.baserow.io/t/graphic-mode-in-baserow-with-python-baserow-client-plotly/3265)._
