kivy-matplotlib-widget


Namekivy-matplotlib-widget JSON
Version 0.13.1 PyPI version JSON
download
home_pagehttps://github.com/mp-007/kivy_matplotlib_widget
SummaryA Matplotlib interactive widget for kivy
upload_time2025-02-13 16:12:22
maintainerNone
docs_urlNone
authormp-007
requires_python>=3.7
licenseMIT License Copyright (c) 2022 mp-007 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords android python3 kivy matplotlib
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # kivy_matplotlib_widget
A fast matplotlib rendering for Kivy based on Kivy_matplotlib project (https://github.com/jeysonmc/kivy_matplotlib) and kivy scatter. Hover option is also based on the algorithm from mplcursors project (https://github.com/anntzer/mplcursors). Matplotlib used 'agg' backend

# Documentation (new)
See documentation at https://mp-007.github.io/kivy_matplotlib_widget/
  
# How to use
install with pip install (just import module in your header to register all the widgets in your kivy Factory: import kivy_matplotlib_widget)
```
pip install kivy-matplotlib-widget
```
You can also copy the needed widget in project

See examples for more informations

# Available tool
convert any matplotlib figure into kivy interactive graph with only 2 lines in your ipython console
```
from kivy_matplotlib_widget.tools.interactive_converter import interactive_graph_ipython

interactive_graph_ipython(fig) #fig is your matplotlib figure instance
```
See interactive_converter folder in the examples for more details.

# key features
 - zoom with 2 fingers or mouse scroll
 - pan with 1 finger or mouse left click
 - zoom box like plotly library
 - reset axis on double-click (home button)
 - fast rendering mode (axis not updated for faster draw)
 - use only 2 packages (kivy + matplotlib) and no additional backend
 - matplotlib cursor and kivy hover option (touch or desktop mode)
 - legend widget like plotly library
 - interactive axis like plotly library
 - min/max touch option to easily change axis limit
 - autoscale option
 - several selectors widget (rectangle, lasso, ellipse and span)

![image](https://github.com/mp-007/kivy_matplotlib_widget/assets/19823482/7709886e-0891-4fb7-a95d-eee790a6c57c)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mp-007/kivy_matplotlib_widget",
    "name": "kivy-matplotlib-widget",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "android, python3, kivy, matplotlib",
    "author": "mp-007",
    "author_email": "mp-007 <current.address@unknown.invalid>, T-Dynamos <anshdadwal298@mail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2e/8e/11e8ca7f80ffd8277630df2dfcc44f3276440842e54d0b802f01bb029eb3/kivy_matplotlib_widget-0.13.1.tar.gz",
    "platform": null,
    "description": "# kivy_matplotlib_widget\r\nA fast matplotlib rendering for Kivy based on Kivy_matplotlib project (https://github.com/jeysonmc/kivy_matplotlib) and kivy scatter. Hover option is also based on the algorithm from mplcursors project (https://github.com/anntzer/mplcursors). Matplotlib used 'agg' backend\r\n\r\n# Documentation (new)\r\nSee documentation at https://mp-007.github.io/kivy_matplotlib_widget/\r\n  \r\n# How to use\r\ninstall with pip install (just import module in your header to register all the widgets in your kivy Factory: import kivy_matplotlib_widget)\r\n```\r\npip install kivy-matplotlib-widget\r\n```\r\nYou can also copy the needed widget in project\r\n\r\nSee examples for more informations\r\n\r\n# Available tool\r\nconvert any matplotlib figure into kivy interactive graph with only 2 lines in your ipython console\r\n```\r\nfrom kivy_matplotlib_widget.tools.interactive_converter import interactive_graph_ipython\r\n\r\ninteractive_graph_ipython(fig) #fig is your matplotlib figure instance\r\n```\r\nSee interactive_converter folder in the examples for more details.\r\n\r\n# key features\r\n - zoom with 2 fingers or mouse scroll\r\n - pan with 1 finger or mouse left click\r\n - zoom box like plotly library\r\n - reset axis on double-click (home button)\r\n - fast rendering mode (axis not updated for faster draw)\r\n - use only 2 packages (kivy + matplotlib) and no additional backend\r\n - matplotlib cursor and kivy hover option (touch or desktop mode)\r\n - legend widget like plotly library\r\n - interactive axis like plotly library\r\n - min/max touch option to easily change axis limit\r\n - autoscale option\r\n - several selectors widget (rectangle, lasso, ellipse and span)\r\n\r\n![image](https://github.com/mp-007/kivy_matplotlib_widget/assets/19823482/7709886e-0891-4fb7-a95d-eee790a6c57c)\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 mp-007  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Matplotlib interactive widget for kivy",
    "version": "0.13.1",
    "project_urls": {
        "Homepage": "https://github.com/mp-007/kivy_matplotlib_widget"
    },
    "split_keywords": [
        "android",
        " python3",
        " kivy",
        " matplotlib"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e8e11e8ca7f80ffd8277630df2dfcc44f3276440842e54d0b802f01bb029eb3",
                "md5": "10a4d27b44c4515d6dea99561c397b40",
                "sha256": "3982045400ebc0899e57e9fc8c2810760a98b6348d9b76c950ed321d87549494"
            },
            "downloads": -1,
            "filename": "kivy_matplotlib_widget-0.13.1.tar.gz",
            "has_sig": false,
            "md5_digest": "10a4d27b44c4515d6dea99561c397b40",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 254204,
            "upload_time": "2025-02-13T16:12:22",
            "upload_time_iso_8601": "2025-02-13T16:12:22.080111Z",
            "url": "https://files.pythonhosted.org/packages/2e/8e/11e8ca7f80ffd8277630df2dfcc44f3276440842e54d0b802f01bb029eb3/kivy_matplotlib_widget-0.13.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-13 16:12:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mp-007",
    "github_project": "kivy_matplotlib_widget",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "kivy-matplotlib-widget"
}
        
Elapsed time: 1.03992s