The DynamicallyPlotWidget
is a custom widget designed for creating dynamic or real-time plots in your application.
We started building this plugin by following this guide.
These instructions will guide you on how to install and use the DynamicallyPlotWidget
.
- Python 3.x
- Qt Creator
- PySide2
- Plotly (optional for plotting)
- Clone the repository or download the source code.
- Navigate to the project directory.
- Install the required Python packages using pip:
pip install -r requirements.txt
The DynamicallyPlotWidget can be used as follows:
# Import the DynamicallyPlotWidget
from your_module import DynamicallyPlotWidget
# Create an instance of the widget
plot_widget = DynamicallyPlotWidget()
# Use the widget in your application
# ...
The development of this widget involved creating a UI with Qt Creator, converting it to Python, and then adding functionality.
- Open Qt Creator and create a new project.
- Design your UI by dragging and dropping widgets from the widget box onto the form.
- Save your UI as a
.ui
file.
- Use the
pyside2-uic
tool to convert the.ui
file to a Python script:
pyside2-uic mainwindow.ui > ui_mainwindow.py
- Import the generated Python script into your main Python file.
- Create a new class that inherits from both
QMainWindow
and your UI class. - Implement the functionality in this new class.
This project is licensed under the MIT License - see the LICENSE.md file for details