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. QBoxPlot - Adding scatter points for outliers
Forum Updated to NodeBB v4.3 + New Features

QBoxPlot - Adding scatter points for outliers

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 814 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.
  • P Offline
    P Offline
    Pfirsicheistee
    wrote on last edited by Pfirsicheistee
    #1

    0_1520587376573_a1f6aae0-0a70-4ba0-a369-6d86fc9df4cd-image.png

    I say hello to the Qt community with my first posting :-)

    I am building some nice charts with the help of Qt Charts these days and now I need some help concerning the Box-and-Whiskers Plot (also called BoxPlot).

    I built it with QBoxPlotSeries and QBoxSet, where I could set the values for the statistical numbers Median, LowerQuartile, UpperQuartile, LowerExtreme, UpperExtreme and Median. The UpperExtreme and the LowerExtreme are the max / min vaule of the data set and mark the ends of the whiskers.

    The interquartile range (IQR) is defined as the distance between the lower quartile and the upper quartile of the data set. Now I want to follow the common definition of the Box-and-Whiskers Plot, where the ends of the whiskers are at maximum 1,5*IQR and values which are further away from the quartiles are plotted as extra scatter points (like in this graphic for example).

    So how could I solve this? I didn't find an option for outliers in the architecure of QBoxPlotSeries / QBoxSet. Now I would calculate the IQR and set it as the max. values for UpperExtreme / LowerExtreme. But how to handle with the outlier points? How can I set them into the chart at the right position additionally?

    Thanks a lot in advance!

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zyannick
      wrote on last edited by
      #2

      Hello,
      I think that you can use this library :
      http://www.qcustomplot.com/index.php/demos/statisticaldemo

      best regards

      P 1 Reply Last reply
      0
      • Z zyannick

        Hello,
        I think that you can use this library :
        http://www.qcustomplot.com/index.php/demos/statisticaldemo

        best regards

        P Offline
        P Offline
        Pfirsicheistee
        wrote on last edited by
        #3

        @zyannick
        Thank you very much. I have already thought about using a different library like qcustomplot. So with Qt Charts alone there is no better way, isn't it?

        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