<cr1901_modern>
rjo: What are the constraints, if any, on the maximum/minimum values a scan can take? I want to implement axis scaling correctly, and the way I do it is different if the maximum/minimum are "can be stored in a typical datatype" versus "unbounded to the amount of memory your computer has"
<cr1901_modern>
Actually, I'm not certain it matters; the "correct" way to implement an infinitely long line in Qt is to set it's length to a very large value (contrast to scaling a line to the size of the view each time it's scaled).
<cr1901_modern>
s/is to/seems to be/
<cr1901_modern>
rjo: Also, I've placed all the potential edge cases as TODOs in my src file, so I'll bring them up as I tackle each.
<sb0>
cr1901_modern, what's complicated with rescaling the line everytime the zoom changes? or excluding the line from the zoomed bit, ie put it on a different layer? how does pyqtgraph does it?
<sb0>
and why use qt's zooming features at all, if they're inappropriate?
_whitelogger has joined #m-labs
<cr1901_modern>
sb0: There's nothing complicated about it; I misread. The situations where zooming isn't appropriate doesn't apply in my case, so scratch that.
fengling_ has joined #m-labs
fengling_ has quit [Ping timeout: 256 seconds]
fengling_ has joined #m-labs
fengling_ has quit [Ping timeout: 256 seconds]
fengling_ has joined #m-labs
<rjo>
cr1901_modern: the quantities usually have units. the values themselves can be anywhere from +-1e-12 (ps) to +-1e15 (THz) but floating point will be sufficient to represent the quantify. no need for arbitrary precision.