Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qwt Plot: Hide axis
QtWS25 Last Chance

Qwt Plot: Hide axis

Scheduled Pinned Locked Moved General and Desktop
qwtplothide-axis
1 Posts 1 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cherple
    wrote on last edited by
    #1

    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.

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved