Qwt Plot: Hide axis

  • I'm trying to hide the axis of my Qwt Plot widget. I did the following:
    QwtPlot::enableAxis(xBottom, false);
    QwtPlot::enableAxis(yLeft, false);

    The bottom axis disappears nicely, and although my left axis disappears as well, my plot become squished. My plot used to be in a square, but after removing my left axis it becomes squished into a thin horizontal bar. I searched online but everyone's saying to use enableAxis, but why is my plot being squished? And how do I overcome this? I only want to remove the axis without my plot changing its shape.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.