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. [Solved] Qwt: Arrows pointing to data outside of current range
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qwt: Arrows pointing to data outside of current range

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.4k 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.
  • S Offline
    S Offline
    SeniorSpielbergo
    wrote on last edited by
    #1

    Hi,

    I am currently developing an application that plots data with Qwt and today I got an idea how to improve the usability.
    I want to limit the range of data that is displayed from -2 to 2 on the x and y axis as this is the important part of the data.
    Currently I am doing this with following code:

    @
    this->plot->setAxisScale(QwtPlot::xBottom, -2, 2, 0);
    this->plot->setAxisScale(QwtPlot::yLeft, -2, 2, 0);
    @

    But as there might be data outside of the range I had the idea to provide an arrow pointing in the dircetion of the points that are outside of my range, so the user is aware of these points.
    I have drawn an image to illustrate my idea (see attachment). The orange box should display the range, the black dots the data points, and the red arrows should point in the direction of the points that are outside of my range.

    !http://www.david-wille.de/example.png(example)!

    Does anybody already use something like this or knows by any chance a nice way how to implement something like this.

    Any help on this is realy appreciated!

    Thanks in advance,

    David

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SeniorSpielbergo
      wrote on last edited by
      #2

      Solved: After solving the problem how to insert an image into the plot it was not that hard to implement.

      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