scopy icon indicating copy to clipboard operation
scopy copied to clipboard

Oscilloscope: Plot labels

Open CJW-1014 opened this issue 4 years ago • 2 comments

Environment:

  • WIn10: [e.g. iOS]
  • v1.2.0 - v1.2.0

Describe the bug The preferences for the oscilloscope has an "Enable labels on the plot" check box. With it checked, I see the voltage of the grid for the last channel enabled but not both. There is room for both to be shown. The grid moves to the right when the second channel labels are shown. How do I get the labels for both channels to be shown? SInce they are of different colors there should be no confusion.

Both channels should have associated labels. It is confusing trying to discover how to make the labels for a specific channel to display.

image

image

CJW-1014 avatar May 01 '21 11:05 CJW-1014

Qwt seems to resize the plot according to the number of axis enabled (with QwtPlot::setAxisVisible method) (demo (cmake helper)). However, when done with scopy: [1] Labels get superposed. And also: [2] We only keep track of the current enabled with DisplayPlot::d_activeVertAxis.

Considering: [1] labels might be set to 0-width somewhere else or the plot might be "squishing" them if set to something like min-width 100%, we would have to check where the issue is (does GammaRay, or some other inspector work with scopy?). [2] we could keep track of more axis in an array and limit to the last three to be visible in the plot; this tracking could happen in the same DisplayPlot::setActiveVertAxis method as d_activeVertAxis.

gastmaier avatar Mar 15 '23 11:03 gastmaier

Yes, Gammaray kinda works with scopy, I managed to attach to the application once it started. I'll investigate the rest of your points and get back at you ..

adisuciu avatar Mar 15 '23 15:03 adisuciu