Skip to content

v0.12.0

Compare
Choose a tag to compare
@PierreRaybaut PierreRaybaut released this 16 Feb 10:26
· 102 commits to master since this release

Version 0.12.0

  • 30% performance improvement (measured by qwt.tests.test_loadtest) by optimizing
    the QwtAbstractScaleDraw.tickLabel method:
    • Suppressed an unnecessary call to QFont.textSize (which can be quite slow)
    • Cached the text size with the label QwtText object
  • Added support for margins in QwtPlot (see Issue #82):
    • Default margins are set to 0.05 (5% of the plot area) at each side of the plot
    • Margins are adjustable for each plot axis using QwtPlot.setAxisMargin (and
      QwtPlot.axisMargin to get the current value)
  • Added an additional margin to the left of ticks labels: this margin is set to one
    character width, to avoid the labels to be truncated while keeping a tight layout
  • Slighly improved the new flat style (see V0.7.0) by selecting default fonts
  • API breaking change: QwtLinearColorMap.colorStops now returns a list of ColorStop
    objects instead of the list of stop values