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. Qt 3D scatter graph: how can I adjust the scaling of an axis ?
Forum Updated to NodeBB v4.3 + New Features

Qt 3D scatter graph: how can I adjust the scaling of an axis ?

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

    Hi! I'm currently developing a Qt desktop application using the Q3DScatter class. I'm inspecting Qt's 3D Scatter example project and I tried to modify the data item set to plot my own data. The data is plotted except that one axis is not well scaled and my 3D plot looks really messy. I'm looking for a way to adjust this axis. I've tried to change the range and the segment count of the axis, I even tried to set the "AutoAdjustRange" of the axis to true, but nothing seemed to solve the problem.

    Would really appreciate some help.

    PS: Here's a screen capture of what my 3D scatter graph looks like (the "messy" axis is shown with the red arrow)

    0_1492278395501_Capture d’écran 2017-04-15 à 6.43.26 PM.png

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

      I figured this out by creating a CustomFormatter class by subclassing QValue3DAxisFormatter and reimplementing some of its functions (I followed this tutorial). Then I set up my axis formatter to my custom formatter (m_graph->axisZ()->setFormatter(cf);).

      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