hephy-dd / diode-measurement

IV/CV measurements for silicon sensors.
GNU General Public License v3.0
0 stars 2 forks source link

Datapoints in Graph disappear at very high zoom levels #107

Open prakhub opened 16 hours ago

prakhub commented 16 hours ago

When manually zooming in very close to the data points, they seem to disappear and stop being displayed at a certain zoom level. screenshot_20241106_120910 The first image shows some I-V data at a "normal" zoom level. screenshot_20241106_120930 In the second image, the graph is zoomed in a bit further, however, no data points remain visible (although they should be inside of the axis limits).

At first I thought this was an issue with the axis range being limited to 1 pA, see https://github.com/hephy-dd/diode-measurement/blob/97dfb6b89da59d859213f5d839ec8b87788e5f6e/diode_measurement/view/plots.py#L258 but if I understand correctly, this only matters for the auto-scaling of the graph, not for manual zooming.

Maybe this is an Issue with the PyQt chart? Or some floating point errors?

arnobaer commented 10 hours ago

This is a known issue with QtChart. It can't handle very small float numbers.