Wykres commitów

28 Commity (9f95d73da658e0cf5c6096561b045cee07714497)

Autor SHA1 Wiadomość Data
Patrick Coleman 32f88eba31 getPlotable, cast return values to int
Closes #500

NanoVNA-saver crashes per below when getPlotable returns a float.
getPlotable is always followed by a call to drawLine(self, int, int,
int, int), so it needs to return ints.

Cast getPlotable return values to int in all cases.

Traceback (most recent call last):
  File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/Frequency.py", line 447, in paintEvent
    self.drawValues(qp)
  File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/VSWR.py", line 144, in drawValues
    self.drawData(qp, self.data, Chart.color.sweep)
  File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/Frequency.py", line 641, in drawData
    qp.drawLine(prevx, prevy, new_x, new_y)
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'int'
  drawLine(self, QLine): argument 1 has unexpected type 'int'
  drawLine(self, int, int, int, int): argument 3 has unexpected type 'numpy.float64'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'int'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'int'
Aborted
2022-07-19 14:10:15 +01:00
Holger Mueller 2821f4d08c enable to zoom out (not perfect yet) 2022-05-28 21:48:13 +02:00
Holger Müller 3f4a262abe
Feature/linting 220514 (#503)
* Unified Chart Code
* New Defauls class for persistance of settings - fixes #491
* Removed non-interactive update checks
2022-05-24 17:05:59 +02:00
Holger Müller 6aa7aaa051
Feature/linting 220402 (#499)
* added .flatpak-builder to .gitingnore
* GroupDelay Chart simplified
* allow numpy > 1.21 fixes #456
* Added flatpak manifest
2022-05-14 11:00:34 +02:00
Mauro Gaioni a457d9c688 closes #438
use more digit in format frequency
when span is narrow
2022-05-05 12:34:21 +02:00
Holger Müller 03cc490a66 Refactoring Display settings 2021-07-06 17:01:20 +02:00
Holger Müller f9222a0ab5 Refactoring Charts 2021-07-05 11:37:48 +02:00
Holger Müller f95f223656 Y Axis changes in charts 2021-07-02 19:25:46 +02:00
Holger Müller 08c4a6dc2a data axis input setting parsing 2021-07-02 19:10:39 +02:00
Holger Müller 52d0068571 Update copyright notice 2021-06-30 07:21:14 +02:00
Holger Müller 80bb4a0936 Charts: removed duplicate code 2021-06-27 19:28:29 +02:00
Holger Müller 3794a86c12 refactoring: removed duplicate code in charts 2021-06-27 11:45:22 +02:00
Holger Müller ae88b7ca4d Refactoring Charts 2021-06-27 10:59:07 +02:00
Holger Müller 6315bd06d6 refactored chart dimensions 2021-06-27 00:55:43 +02:00
Holger Müller 80418b5739 refactor settings and fixed no else after return 2021-06-27 00:16:58 +02:00
Holger Müller 91baa22a14 chart refactoring 2021-06-26 23:08:56 +02:00
Holger Müller c6cd52afb2 order of min and max in context menu 2021-06-25 20:17:01 +02:00
Holger Müller dd81aa875b Freq chart fixed axis settings
Fixes: #404
2021-06-25 20:13:10 +02:00
Holger Müller aeed3744ba tidy up chart code a little bit 2021-06-22 23:23:39 +02:00
Roel Jordans 9c7f6a80f7 Adding support for plotting |Z| on logarithmic scale 2021-02-21 21:52:00 +01:00
Holger Müller 1608a9261f Use String values in Bands to edit vals > 2e31 2020-10-25 16:53:01 +01:00
Holger Müller 9e629f0350 Updated copyright headers 2020-06-25 19:52:30 +02:00
Holger Müller cb1c1a99f5 Pylint ... 2020-06-21 20:54:23 +02:00
Holger Müller 38a54e801c refactored parseFrequency 2020-06-21 19:54:00 +02:00
Holger Müller 44cea8ddba Linting: line length and unnecessary "else" 2020-06-15 13:27:00 +02:00
Holger Müller 2a13f7063e Linting and f-strings instead of + concat 2020-06-12 22:16:26 +02:00
Holger Mueller 1e19967dda Changes content in separated file 'Frequency.py'. 2020-05-18 20:58:17 +02:00
Holger Mueller 8d1adeade5 Adds separate file for 'Frequency.py'. 2020-05-18 20:58:17 +02:00