kivy-garden / garden.matplotlib

Matplotlib backends using kivy
MIT License
104 stars 50 forks source link

with test_plot.py some erros look below #76

Open kebab03 opened 1 year ago

kebab03 commented 1 year ago

I got the following error:

File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\matplotlib_api__init__.py", line 192, in check_getitem raise ValueError( ValueError: 'bitmap' is not a valid value for output; supported values are 'path', 'agg', 'macosx'

I used matplotlib.use('agg') no result .Please help me.

mp-007 commented 1 year ago

for garden matplotlib used backend_kivy

import matplotlib
matplotlib.use('module://kivy.garden.matplotlib.backend_kivy')

If you want used 'agg' backend, please refer to this project https://github.com/mp-007/kivy_matplotlib_widget