Module implementing the MicroPython graph widget.
None |
MicroPythonGraphWidget | Class implementing the MicroPython graph widget. |
None |
Class implementing the MicroPython graph widget.
None |
None |
MicroPythonGraphWidget | Constructor |
__addData | Private method to add a tuple of values to the graph. |
__handleMaxXChanged | Private slot handling a change of the max. |
hasData | Public method to check, if the chart contains some valid data. |
isDirty | Public method to check, if the chart contains unsaved data. |
on_saveButton_clicked | Private slot to save the raw data to a CSV file. |
preferencesChanged | Public slot to apply changed preferences. |
processData | Public slot to process the raw data. |
saveData | Public method to save the dialog's raw data. |
None |
Constructor
Private method to add a tuple of values to the graph.
It ensures there are the required number of line series, adds the data to the line series and updates the range of the chart so the chart displays nicely.
Private slot handling a change of the max. X spin box.
Public method to check, if the chart contains some valid data.
Public method to check, if the chart contains unsaved data.
Private slot to save the raw data to a CSV file.
Public slot to apply changed preferences.
Public slot to process the raw data.
It takes raw bytes, checks the data for a valid tuple of ints or floats and adds the data to the graph. If the the length of the bytes data is greater than 1024 then a dataFlood signal is emitted to ensure eric can take action to remain responsive.
Public method to save the dialog's raw data.