Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QwtPlotZoomer Problems
Forum Updated to NodeBB v4.3 + New Features

QwtPlotZoomer Problems

Scheduled Pinned Locked Moved 3rd Party Software
6 Posts 4 Posters 7.5k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    BettaUseYoNikes
    wrote on last edited by
    #1

    I have a plot that is made using mostly the bode example as a guideline but now I am adding some other functionality in. Currently the user can select from a list of a few different things what they would like the x and y axis' to display. My code works to update and replot the curve perfectly. The problem I am having though is when the user wants to zoom in to the plot, when they right click to zoom back out the plot has some really weird rescaling issues where the axis' are switched back to default of 0-1000 on each one. I have tried a few different solutions such as deleting the zoomer and recreating it every time a replot is done but nothing seems to work, any ideas?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RSousa
      wrote on last edited by
      #2

      I am having the same problem...

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RSousa
        wrote on last edited by
        #3

        Hello, you should apply setZoomBase() after attaching the data

        1 Reply Last reply
        0
        • G Offline
          G Offline
          geus
          wrote on last edited by
          #4

          Excellent!! I was looking for this for some weeks!!

          The only thing, it's that it goes to the zoom base i set, but previously passing through the 0 - 1000 scale!

          Im going to see if i can fix this!

          Cheers

          1 Reply Last reply
          0
          • G Offline
            G Offline
            geus
            wrote on last edited by
            #5

            With this function:
            void QwtPlotZoomer::setZoomStack ( const QStack< QRectF > & zoomStack,
            int zoomRectIndex = -1
            )

            You can manually set the zoom stack which helps you select the zoom base and all the other zooms, or with this:
            void QwtPlotZoomer::setZoomBase ( bool doReplot = true )

            You can set the stack's first value directly!

            Good luck with it!!

            H 1 Reply Last reply
            0
            • G geus

              With this function:
              void QwtPlotZoomer::setZoomStack ( const QStack< QRectF > & zoomStack,
              int zoomRectIndex = -1
              )

              You can manually set the zoom stack which helps you select the zoom base and all the other zooms, or with this:
              void QwtPlotZoomer::setZoomBase ( bool doReplot = true )

              You can set the stack's first value directly!

              Good luck with it!!

              H Offline
              H Offline
              horizonQt
              wrote on last edited by
              #6

              @geus How will we integrate? can you give more info ?

              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