Results 1 to 2 of 2

Thread: Set axis value at one side

  1. #1
    Join Date
    Oct 2015
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Set axis value at one side

    Hello! Is it possible to set axis value at one side? For example, from 10 and maximum value will be set automatically.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Set axis value at one side

    Quote Originally Posted by Cat View Post
    Hello! Is it possible to set axis value at one side? For example, from 10 and maximum value will be set automatically.
    Well, the autoscaler ( paret of the scale engine ) is fed by the bounding intervals of all plot items having the QwtPlotItem::AutoScale flag enabled.

    So you have several options:


    • disable the autoscaler and use setAxisScale instead, where the upper limit is taken from the bounding rectangle of your data
    • insert a dummy QwtPlotItem that paints nothing, but returns a bounding interval of [10,10]
    • inherit from QwtScaleEngine and overload autoscale().


    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Cat (6th December 2017)

Similar Threads

  1. Replies: 2
    Last Post: 30th January 2015, 10:29
  2. Multiple Y-axis on the same side
    By ghm in forum Qwt
    Replies: 0
    Last Post: 10th October 2011, 10:46
  3. side-by-side configuration is incorrect
    By trueqt in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2009, 01:35
  4. Set axis title on the right side
    By pospiech in forum Qwt
    Replies: 1
    Last Post: 14th March 2008, 08:26
  5. Replies: 5
    Last Post: 15th February 2008, 03:54

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.