display waveform polarity correctly

* cairo's Y axis points downward -> invert phase display
* fix logarithmic view for value.max < 0