Results 1 to 4 of 4

Thread: Changing the scale of axis in a plot

Hybrid View

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

    Default Re: Changing the scale of axis in a plot

    Well, a curve displays a series of points - not values - so I guess your code adds the index as x coordinate. And now you want to use index * 0.3 as x coordinates ?

    Uwe

  2. #2
    Join Date
    Oct 2015
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changing the scale of axis in a plot

    Hi Uwe,

    I think my answer to your question is yes. Let me clarify. I do not want to change the data in the plot, I just want to change the label of the X-axis. I also want to continue to plot the same number of samples.

    Ryan

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

    Default Re: Changing the scale of axis in a plot

    Derive from QwtScaleDraw, overload the label() method and pass it with QwtPlot::setAxisScaleDraw().

    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 11th February 2014, 21:31
  2. Scale Breaks in the QWT plot axis
    By OzQTNoob in forum Qwt
    Replies: 1
    Last Post: 10th May 2012, 09:38
  3. Replies: 0
    Last Post: 18th January 2012, 07:41
  4. Replies: 8
    Last Post: 25th April 2010, 21:19
  5. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10

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
  •  
Qt is a trademark of The Qt Company.