{ "info": { "author": "Dmitry Voronin, Giuseppe Corbelli, Christopher Gilbert, Sergey Salnikov", "author_email": "salsergey@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: X11 Applications :: Qt", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: User Interfaces" ], "description": "# QCustomPlot2-PyQt5\n\n- [Design goals](#design-goals)\n- [Installing](#installing)\n- [Getting started](#getting-started)\n- [Examples](#examples)\n- [Supported compilers](#supported-compilers)\n- [License](#license)\n- [Contact](#contact)\n- [Thanks](#thanks)\n- [Used third-party tools](#used-third-party-tools)\n- [Projects using](#projects-using)\n- [Building](#building)\n\n## Design goals\n\nThere are myriads of Python charting libraries out there, and each may even have its reason to exist. QCustomPlot2 for PyQt5 has the following goals:\n\n- **Performance**. QCustomPlot is written in modern C++ with the excellent Qt library for superior performance over alternative libraries.\n\n- **Flexibility**. QCustomPlot is one of the most customisable libraries available, with a wide range of supported graph types and full control over how the graph is rendered.\n\n\n## Installing\n\n### Linux\n\nYou can find compiled packages for many Linux distributions at [OBS](https://software.opensuse.org//download.html?project=home%3Asergeyopensuse%3Agpxviewer&package=python-qcustomplot2).\n\n### Windows\n\nInstall the package via our favourite package manager:\n\n```sh\n$ pip install QCustomPlot2\n```\n\n\n## Getting started\n\nNow let's take a look at some code:\n\n```python\nfrom PyQt5.QtGui import QPen, QBrush, QColor\nfrom QCustomPlot2 import *\n\ncustomPlot = QCustomPlot()\n\ngraph0 = customPlot.addGraph()\ngraph0.setPen(QPen(Qt.blue))\ngraph0.setBrush(QBrush(QColor(0, 0, 255, 20)))\n\ngraph1 = customPlot.addGraph()\ngraph1.setPen(QPen(Qt.red))\n\nx, y0, y1 = [], [], []\nfor i in range (251):\n x.append(i)\n y0.append(math.exp(-i/150.0)*math.cos(i/10.0)) # exponentially decaying cosine\n y1.append(math.exp(-i/150.0)) # exponential envelope\n\ngraph0.setData(x, y0)\ngraph1.setData(x, y1)\n\ncustomPlot.rescaleAxes()\ncustomPlot.setInteractions(QCPInteractions(QCP.iRangeDrag | QCP.iRangeZoom | QCP.iSelectPlottable))\n```\n\nThat's all!\n\nSome important things:\n\n* QCustomPlot is a QWidget type that can be used the same way as any other widget, added to layouts, etc. However, you can nest multiple graphs in a single QCustomPlot using layouts (see the Advanced Axes demo).\n\n\n## Examples\n\nBeside the examples below, you may want to check the [documentation](https://www.qcustomplot.com/index.php/support/documentation).\n\n\n## Supported compilers\n\nThe following compilers are known to work:\n\n- MSVC 140, 141\n- GCC 4.8\n- Clang 3.4\n\nI would be happy to learn about other compilers/versions.\n\n\n## License\n\n\n\nThis code is licensed under the [MIT License](http://opensource.org/licenses/MIT):\n\nCopyright © 2017-2019 Dmitry Voronin, Christopher Gilbert and [Sergey Salnikov](https://osdn.net/users/salsergey/pf/QCustomPlot2-PyQt5)\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n\n* * *\n\nThis project contains the [QCustomPlot](https://gitlab.com/DerManu/QCustomPlot) library from Emanuel Eichhammer which is licensed under the [GPL Version 3 License](http://opensource.org/licenses/GPLv3). Copyright © 2011-2018 [Emanuel Eichhammer](http://bjoern.hoehrmann.de/) \n\n\n## Contact\n\nIf you have questions regarding the library, I would like to invite you to [open an issue at OSDN](https://osdn.net/users/salsergey/pf/QCustomPlot2-PyQt5/ticket/new). Please describe your request, problem, or question as detailed as possible, and also mention the version of the library you are using as well as the version of your compiler and operating system. Opening an issue at GitHub allows other users and contributors to this library to collaborate.\n\n\n## Thanks\n\nI deeply appreciate the help of the following people.\n\n- [DerManu](https://gitlab.com/DerManu) is the official author and maintainer of the excellent QCustomPlot library.\n- [dimv36](https://github.com/dimv36) is the original author of the Python bindings for QCustomPlot 1.0.0, upon which this project is based.\n- [cowo78](https://github.com/cowo78) and [cjgdev](https://github.com/cjgdev) added support for the QCustomPlot 2.0.0 API.\n\nThanks a lot for helping out! Please [let me know](mailto:salsergey@gmail.com) if I forgot someone.\n\n\n## Used third-party tools\n\nThis library is built, tested, documented, and whatnot using third-party tools and services. Thanks a lot!\n\n- [**SIP**](https://www.riverbankcomputing.com/software/sip) to generate the Python bindings.\n\n\n## Projects using\n\n- [**GPX Viewer**](https://osdn.net/projects/gpxviewer/) --- an application for viewing GPX files as a list of points and tracks.\n\nIf you are using QCustomPlot2-PyQt5 in a project and would like to share with the community, please let me know, or even better, raise a pull request.\n\n\n## Building from sources\n\n### Linux\n\nApt users (Debian, Ubuntu, etc) may follow the instructions below, users of other distributions may adapt the steps below for your own package manager.\n\n```sh\n# Fetch the necessary development tools and libraries\n$ apt-get install build-essential python3-pyqt5 pyqt5-dev-tools qttools5-dev-tools\n\n# Clone the repository and submodules\n$ git clone --recursive https://github.com/cjgdev/QCustomPlot2-PyQt5.git && cd QCustomPlot2-PyQt5\n\n# Build\n$ CFLAGS=-std=c++11 CXXFLAGS=-std=c++11 python setup.py build\n\n# Zzz..\n\n# Install\n$ python setup.py install\n```\n\n\n### Windows\n\nWindows users should install [Qt tools](https://www.qt.io/), appropriate version of [VC compiler](https://visualstudio.microsoft.com/), [Python](https://www.python.org/), [PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) and [SIP](https://www.riverbankcomputing.com/software/sip/download). You may need to build SIP from sources to ensure you have all files necessary for building other software. Then follow the instructions below to build the library, otherwise you will need to adapt the steps for your own environment.\n\n- Download QCustomPlot2 sources from [OSDN](https://osdn.net/users/salsergey/pf/QCustomPlot2-PyQt5). You can use git or download an archive.\n- Launch Qt console and follow instructions there. It will ensure that you have all necessary tools in your PATH variable. Also be sure that python.exe binary is in your PATH.\n- Then follow these instructions:\n\n```cmd\n# Go to QCustomPlot2 folder\ncd <>\n\n# Download submodules if you use git\ngit submodules update --init\n\n# Build\npython setup.py build\n\n# Zzz..\n\n# Install\npython setup.py install\n```\n\n\n### macOS\n\nUsers of macOS using [homebrew](https://brew.sh/) may follow the instructions below to fetch the required packages to build the library, or simply adapt to your own environment.\n\n```sh\n# First ensure Xcode is installed, as homebrew depends on it\n$ xcode-select --install\n\n# Fetch the necessary development tools and libraries\n$ brew install qt --devel sip --without-python@2 pyqt --without-python@2\n\n# Clone the repository and submodules\n$ git clone --recursive https://github.com/cjgdev/QCustomPlot2-PyQt5.git && cd QCustomPlot2-PyQt5\n\n# Build\n$ CFLAGS='-std=c++11 -stdlib=libc++' CXXFLAGS='-std=c++11 -stdlib=libc++' python3 setup.py build\n\n# Zzz..\n\n# Install\n$ python3 setup.py install\n```\n\n\n### Custom build options\n\nIf you need to override the paths for any reason, the way to do that is by modifying setup.cfg to match your environment. You will need to add a section as below, substituting everything between ``<<`` and ``>>`` with the correct paths.\n\n```ini\n[build_ext]\nqmake = <>\\qmake.exe\nqt-include-dir = <>\\include\nqt-library-dir = <>\\lib\nmake = <>\\jom.exe\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://osdn.net/users/salsergey/pf/QCustomPlot2-PyQt5", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "QCustomPlot2", "package_url": "https://pypi.org/project/QCustomPlot2/", "platform": "Linux", "project_url": "https://pypi.org/project/QCustomPlot2/", "project_urls": { "Homepage": "https://osdn.net/users/salsergey/pf/QCustomPlot2-PyQt5" }, "release_url": "https://pypi.org/project/QCustomPlot2/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "QCustomPlot is a Qt widget for plotting and data visualization", "version": "2.0.1" }, "last_serial": 5999256, "releases": { "2.0.1": [ { "comment_text": "", "digests": { "md5": "54a1e2988f63d9fed489057cebcb2fb6", "sha256": "ae44af44392d70775d477760ad5216af9b50bec55ba0c7e201146f74d08ae070" }, "downloads": -1, "filename": "QCustomPlot2-2.0.1a.tar.gz", "has_sig": false, "md5_digest": "54a1e2988f63d9fed489057cebcb2fb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1282833, "upload_time": "2019-10-19T09:02:36", "url": "https://files.pythonhosted.org/packages/36/a6/75202156a1b41937bf4ae88618ad4a0a2733eeca5d430eea62c63a2ed470/QCustomPlot2-2.0.1a.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54a1e2988f63d9fed489057cebcb2fb6", "sha256": "ae44af44392d70775d477760ad5216af9b50bec55ba0c7e201146f74d08ae070" }, "downloads": -1, "filename": "QCustomPlot2-2.0.1a.tar.gz", "has_sig": false, "md5_digest": "54a1e2988f63d9fed489057cebcb2fb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1282833, "upload_time": "2019-10-19T09:02:36", "url": "https://files.pythonhosted.org/packages/36/a6/75202156a1b41937bf4ae88618ad4a0a2733eeca5d430eea62c63a2ed470/QCustomPlot2-2.0.1a.tar.gz" } ] }