While working on my work related project, I have learned that many GUI related topics of this awesome library are not well documented to allow an interactive program.

After many hours of collecting information and debugging, I have decided to share the following findings:

1. How to place buttons below the plot area.
2. How to declare handlers for both buttons and mouse clicks.
3. How to know if a click happened at the upper plot, lower plot, or in one of the buttons.
4. How to use the same button click handler for several buttons.
5. How to position the window of the plot.

I'm sure this will help other programmers!