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 set fixed yaxis range
Qt 6.11 is out! See what's new in the release blog

QCustomPlot set fixed yaxis range

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 274 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.
  • mangekoyuM Offline
    mangekoyuM Offline
    mangekoyu
    wrote on last edited by
    #1

    I'm new in qt and c++. I made a graph with qcustomplot but I need fixed yaxis. It must be stay with 2 range. no need rescale.

    ui -> widgetChart -> yAxis -> setRange(-40, 80);
      ui -> widgetChart -> yAxis2 -> setRange(0, 100);
    

    I tried this but when plot starting axis ranges changing again.
    How can I do this fixed range?

    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