Skip to main content

A configurable Qt widget that displays I-V curves.

Project description

Модуль для просмотра ВАХ

Настраиваемый PyQt-виджет для отображения Вольт-Амперных Характеристик (ВАХ). Виджет умеет выводить несколько ВАХ на график и при необходимости обновлять их.

Установка

Установка возможна только на python версии 3.6!

python3.6 -m pip install ivviewer

Проверка установки

python -m ivviewer 	# при успешной установке создаст окно с графиком 

Пример использования

import sys
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import QApplication
import ivviewer

app = QApplication(sys.argv)
window = ivviewer.Viewer()
window.plot.set_x_axis_title("Название оси X")
window.plot.set_y_axis_title("Название оси Y")
window.plot.set_scale(6.0, 15.0)

x_test = [-2.5, 0, 2.5]
y_test = [-0.005, 0, 0.005]
test_curve = window.plot.add_curve()
test_curve.set_curve(ivviewer.Curve(x_test, y_test))
test_curve.set_curve_params(QColor("red"))

x_ref = [-2.5, 0, 2.5]
y_ref = [-0.003, 0, 0.0033]
reference_curve = window.plot.add_curve()
reference_curve.set_curve(ivviewer.Curve(x_ref, y_ref))
reference_curve.set_curve_params(QColor("green"))

window.resize(600, 600)
window.show()
app.exec()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivviewer-0.1.12.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

ivviewer-0.1.12-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file ivviewer-0.1.12.tar.gz.

File metadata

  • Download URL: ivviewer-0.1.12.tar.gz
  • Upload date:
  • Size: 4.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ivviewer-0.1.12.tar.gz
Algorithm Hash digest
SHA256 c4cd5712c28c7d6eb4c99975853635e9f3af9351f522b904103eee67a3daac8c
MD5 d6ebe8dcd7d978154dfb9068526ea0ef
BLAKE2b-256 9a040629fa3323180a50339a730954c4c87bf923666823253079b6b970cf1262

See more details on using hashes here.

File details

Details for the file ivviewer-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: ivviewer-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ivviewer-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c47e31820631eda3257ce4f90122f516f594d21be149d32f9eb4a43f1bc7dc07
MD5 85fa2bd73cd4fa2d1476a4b43421d8ad
BLAKE2b-256 f388c4181880ef0f07c2037220ba7b48840fa94fb9656ece65eed83fdb2e5fc6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page