<GitHub189>
artiq/ppp2 8cbb60b Robert Jordens: Merge branch 'master' into ppp2...
<cr1901_modern>
rjo: ping
<cr1901_modern>
I read your email. The main reason for me using a canvas- free zoom support- didn't work out. I've still been using a canvas mainly because it gives me free mouse handling/priority support and lets me create graphical objects like markers/num points easily. I've been thinking about going back to subclassing a slider however if I can figure out how to redraw the cursors.
<cr1901_modern>
This is going to be necessay from a UI standpoint to distinguish max and min. Additionally, Qt, for whatever farfetched reason, let's you embed a standard widget into a canvas, so I could go a hybrid route if I so desired.
<rjo>
"cursors" == "movable elements on the slider"?
<cr1901_modern>
TLDR: Something that I'm assuming is an invariant, when converting between pixels to "what's displayed on the spinbox", isn't holding during resize. This includes the resize when the application starts.
<cr1901_modern>
Just to humor me, could you copy/paste the code sample in the linked thread, uncomment line 62, and tell me if you get an assertion failure on start?
<cr1901_modern>
if not, resize until you do
<rjo>
ah. that is probable also the underlying mechanism for the flip-flopping data if you switch between view-to-range and range-to-view
<cr1901_modern>
Yes, that is what I believe as well. Sometimes they do coincide exactly (as they should)
<rjo>
yes. that code asserts on resizing.
<rjo>
for labeling an axis just imagine the case where you are viewing the range [1e12 - 1e-6, 1e12] and want to supply proper ticks and labels without messing everything up.
<rjo>
and remembering that this widget should be very compact.
<cr1901_modern>
Well, rjo, you gave me an idea for displaying ticks
<cr1901_modern>
It's definitely possible w/ scientific notation that each major tick is so close together that with a certain displayed precision, they have the same value
<cr1901_modern>
i.e. 5 major ticks displayed, all with the value 1e12
<rjo>
well. again you may look at matplotlib how they do it. they try to figure out the offset and rewrite the labels accordingly, displaying the offset somewhere in a corner.
rohitksingh has joined #m-labs
<cr1901_modern>
matplotlib does what matlab does IIRC. Which is the major ticks all display the same value :P
<cr1901_modern>
In any case, good to know that it fails on your machine too. At least I know the problem if anything
hozer has quit [Ping timeout: 240 seconds]
fengling__ has joined #m-labs
fengling_ has quit [Ping timeout: 272 seconds]
FabM has joined #m-labs
fengling__ has quit [Quit: WeeChat 1.2]
cr1901_modern has quit [Ping timeout: 260 seconds]
evilspirit has quit [Ping timeout: 272 seconds]
rohitksingh has quit [Ping timeout: 276 seconds]
FabM has quit [Remote host closed the connection]
FabM has joined #m-labs
ylamarre has joined #m-labs
ylamarre has quit [Ping timeout: 240 seconds]
ylamarre has joined #m-labs
evilspirit has joined #m-labs
FabM has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160105164030]]
mumptai has joined #m-labs
<rjo>
cr1901_modern: no. matplotlib writes it as "1e-6 2e-6 3e-6 + 1e12
<rjo>
"
evilspirit has quit [Read error: Connection reset by peer]
ylamarre has quit [Quit: ylamarre]
aeris__ has joined #m-labs
sb0 has joined #m-labs
aeris__ has quit [Remote host closed the connection]
<sb0>
whitequark, why does CompileError need special treatment in worker_impl.py?
<sb0>
can't the worker just "terminate with exception" like it does for all others?
<sb0>
you want to suppress the traceback from inside the compiler?