Discussion:
plot tools - range, computations
Pierre Raybaut
2011-04-06 10:08:01 UTC
Permalink
The signal to connect is SIG_RANGE_CHANGED (emitted by the plot):

def callback(range, xmin, xmax):
print range, xmin, xmax

self.connect(plot, SIG_RANGE_CHANGED, callback)

-Pierre
Hi Pierre,
I try to adapt the range tool for my purposes. But I don't understand
the under processes. I look into the code and try out the example
'computations.py'. With change the 'range' the computations are also
updated and displayed as label. Add such a image tool to my
CurveWidget and select a 'range' display also the 'red area' but my
displayed computation is not updated.
Look into the guiqwt code I found no hint, which signals are used, if
signals are used or where is link that my app knows to updated and
refresh the display if I changed the range (red area)?
Could you (anyone) push me to the right direction?
Bet regards
Thomas
Loading...