Ben
2012-10-19 20:44:53 UTC
Howdy,
I recently came across this excellent library right at the time where I
wanted to start a new project for the lab. My colleges all use Labview and
I wanted to show them there are good alternatives.
The program I started coding some days back is supposed to move motors and
display data from e.g. an oscilloscope, lock-in amplifier or spectrometer
in real time.
So far I managed to start a thread and get the data from a spectrometer
plotted using a CurveWidget. Plots in Labview have a very easy possibility
to change the range of the axis by simply double clicking for example on
the xmin or xmax value and change it. In the context menu of the axis one
has also got the possibility to do an "autorange".
Since there are some nice features implemented, I was wondering if if would
be feasible to code an event handler on the axis for setting the limits and
to extend the context menu in the plot to enable or disable auto scale?
Since I'm new to this library and don't have much experience in gui
programming I would very much appreciate hints or even an example as to how
I could achieve this.
Thank you very much in advance
Ben
I recently came across this excellent library right at the time where I
wanted to start a new project for the lab. My colleges all use Labview and
I wanted to show them there are good alternatives.
The program I started coding some days back is supposed to move motors and
display data from e.g. an oscilloscope, lock-in amplifier or spectrometer
in real time.
So far I managed to start a thread and get the data from a spectrometer
plotted using a CurveWidget. Plots in Labview have a very easy possibility
to change the range of the axis by simply double clicking for example on
the xmin or xmax value and change it. In the context menu of the axis one
has also got the possibility to do an "autorange".
Since there are some nice features implemented, I was wondering if if would
be feasible to code an event handler on the axis for setting the limits and
to extend the context menu in the plot to enable or disable auto scale?
Since I'm new to this library and don't have much experience in gui
programming I would very much appreciate hints or even an example as to how
I could achieve this.
Thank you very much in advance
Ben