Results 1 to 3 of 3

Thread: How to customize the X axis?

  1. #1
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    3
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to customize the X axis?

    for example:
    x y
    1 1
    2 2
    3 3
    10 10
    20 20
    30 30
    40 40
    50 50

    how to set the X axis scale to be 1 2, where 1 at x=2, and 2 at x=30

    i am new to qwt, please help, thanks!

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

    Default Re: How to customize the X axis?

    If you want to have irregular scales use QwtPlot::setAxisScaleDiv().

    Uwe

  3. #3
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    3
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to customize the X axis?

    thanks, got it.
    Last edited by lvdong; 10th August 2010 at 05:25.

Similar Threads

  1. Customize QListWidgetItem, how to?
    By martinn in forum Qt Programming
    Replies: 24
    Last Post: 12th December 2016, 10:47
  2. Replies: 0
    Last Post: 9th August 2010, 10:46
  3. Customize QErrorMessage
    By doberkofler in forum Qt Programming
    Replies: 1
    Last Post: 19th May 2010, 16:12
  4. Customize QFileDialog
    By Swankee in forum Newbie
    Replies: 10
    Last Post: 25th November 2009, 20:21
  5. How customize my .exe with a icon.
    By jiveaxe in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2007, 18:30

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.