Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QwtPlot changes size by disabling left Y axis



  • hi
    I have installed Qt and now start programming.
    I wrote a program to draw graph by QwtPlot.
    so I dropped two QwtPlot widget on the form and separated them by vertical spacer, as I need to separate grid of different sizes to draw different curve.
    I introduced some points to be drawn and it looks ok when the x and y axis are enabled.
    but I like to disable the x and y axis ui.qwtPlot1->enableAxis(QwtPlot::yLeft,false); and that makes the height of plot according to the highest y value of given point and keeps changing as I change the points y value.
    how can I keep the grid and plotting area of each widget constant?
    many thanks
    jafarian


Log in to reply