Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes
Binary file added hello_qwidget.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 27 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@
A matplotlib backend always base on the latest QT for Python, no compatible will be care
A matplotlib mini backend always base on the latest QT for Python, no compatible will be care

Focus on Qt 6 for Python and QML way for the first release
Focus on Qt 6 (will always point to the latest) for Python and QML/QWidget as main user case, only desktop application will be care

The first version mainly base on https://github.com/jmitrevs/matplotlib_backend_qtquick
Mainly base on:

The module can run itself which will run a demo application.
1. https://github.com/jmitrevs/matplotlib_backend_qtquick
2. https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_qt5.py
3. https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_qt5agg.py

The module can run as qml demo application itself, like:

```bash
python -m matplotlibqml
```

A standalone classic QWidget sample(pure QWidget) is provided too, like:

```bash
python -m matplotlibqml.widgetdemo
```

# 你好

![](https://raw.githubusercontent.com/medlab/matplotlibqml/main/hello.gif)
![](https://raw.githubusercontent.com/medlab/matplotlibqml/main/hello_qml.gif)
![](https://raw.githubusercontent.com/medlab/matplotlibqml/main/hello_qwidget.gif)

Why
=================

QT keep improving and changing, and compatibility will kill flexibility, especially when upstream not so stable

Credit:
=================
1. https://github.com/fcollonval/matplotlib_qtquick_playground
2. https://github.com/jmitrevs/matplotlib_backend_qtquick
3. Some weekend play for fun self Python project
3. https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_qt5.py
4. https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_qt5agg.py
5. Some weekend play for fun self Python project
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='matplotlibqml',
version='0.91',
version='0.92',
description='Matplotlib Mini QML Backend',
long_description=open('readme.md').read(),
long_description_content_type='text/markdown',
Expand Down
Loading