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. QCustomPlot: how to convert data index to axis value and vice versa
Forum Updated to NodeBB v4.3 + New Features

QCustomPlot: how to convert data index to axis value and vice versa

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 233 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.
  • sitesvS Offline
    sitesvS Offline
    sitesv
    wrote on last edited by
    #1

    Hi!
    Trying to explore this title for a few hours...
    Please, explain how to get a visible x-axis value for the data index?
    For example:
    QVector<double>x,y;
    x - has a values from 0 to 1000.
    xAxis has a Range values from -17000 to 17000.

    Don't understand, how to get xAxis value by a value x? What a visible value of x = 223?

    1 Reply Last reply
    0
    • sitesvS Offline
      sitesvS Offline
      sitesv
      wrote on last edited by
      #2
      ui->widget->graph(0)->dataMainKey(index);
      
      1 Reply Last reply
      1

      • Login

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