Discussion:
"editable" axis
Ben
2012-10-19 20:44:53 UTC
Permalink
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
Pierre Raybaut
2012-11-05 21:01:19 UTC
Permalink
Hi,

Thanks for your interest in guiqwt!
Post by Ben
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.
Excellent idea!
Post by Ben
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
Ok, first, let's create two "Issues" on the guiqwt GoogleCode project website.
One for the Xmin/Xmax double-clicking thing:
http://code.google.com/p/guiqwt/issues/detail?id=37
And the other for the Autoscale entry in the context menu:
http://code.google.com/p/guiqwt/issues/detail?id=38

I was quite lazy lately regarding the guidata/guiqwt open-source
projects management, but I'll process the pending issues in the next
weeks. So I'll get back to you if you need some help coding those
features.

-Pierre

Continue reading on narkive:
Loading...