Widget to draw a histogram

New Feature

A widget which can be drawn on with the mouse to set up a histogram

Benefits

The %Comfort Editor in simbuto could be complemented by this neat and very flexible method of defining custom histograms for any tolerances.

Downsides/Conflicts

None that I know of.

Technical Requirements

  • create a new Gtk.Widget that probably wraps around a Gtk.DrawingArea
  • draw a matplotlib.*.FigureCanvas into this widget
  • enable drawing points/lines with the mouse into the plot
  • normalize the data points into a proper histogram
    • lowest y value is 0
    • interopolate linearly in gaps
    • normalize with integral area to obtain proper histogram