PlotPyStack / PythonQwt

Qt plotting widgets for Python (pure Python reimplementation of Qwt C++ library)
https://pypi.org/project/PythonQwt/
Other
86 stars 25 forks source link

plot_curve failure with PythonQwt 0.8 #56

Closed twillis449 closed 3 years ago

twillis449 commented 3 years ago

I've been using your python qwt code to get a pure python version of qwt. Unfortunately, something seems to have gone astray in pythonQwt 0.8 I'm attaching two plots good_display bad_display The first plot shows a canvas where I'm plotting 16 channels of simulated radio astronomy data as a function of time using pythonQwt0.5, The data shows the output from 16 antennas of a radio astronomy telescope array. The data appears as I expect it to look. The second plot shows the output when I switch to using PythonQwt 0.8. As you can see, garbage appears. I'm not sure exactly where things are going wrong but I suspect the culprit is in the function array2d_to_qpolygonf which seems quite expanded from the equivalent work done entirely in the series_to_polyline function in PythonQwt 0.5

twillis449 commented 3 years ago

Additional comment: If I replace the series_to_polyline function in v0.08 by the version from v0.05 then everything works OK.

twillis449 commented 3 years ago

Yet another comment - I downloaded the latest version here from github. That seems to be working, so I'm closing the issue. :)