Есть ли способы создать таблицу закругленных углов с помощью matplotlib?
![enter image description here](https://i.stack.imgur.com/Ox51q.png)
![enter image description here](https://i.stack.imgur.com/DipzI.png)
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({
'Name':['alice','bob','charlie','dave','eve','frank','Sum'],
'Age':[14,35,64,7,19,25,164]})[['Name','Age']]
fig, ax = plt.subplots(figsize=(2,2))
ax.axis('off')
ax.axis('tight')
ax.table(cellText=df.values,
colLabels=df.columns,
loc='center',
bbox=[0,0,1,1])
plt.savefig('table.png')
- Запуск в docker контейнере
$ export MPLBACKEND="agg"
$ python3 table.py