Results 1 to 6 of 6

Thread: Draw each curve scale inside plot/canvas

  1. #1
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Draw each curve scale inside plot/canvas

    I have a plot with many curves. Is it possible to draw each curve's scale in canvas and possible with different colors ?

  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: Draw each curve scale inside plot/canvas

    What are "curve scales" in your context ?
    But anyway - maybe QwtPlotScaleItem is what you are looking for.

    Uwe

  3. #3
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Draw each curve scale inside plot/canvas

    Quote Originally Posted by Uwe View Post
    What are "curve scales" in your context ?
    But anyway - maybe QwtPlotScaleItem is what you are looking for.

    Uwe
    With curve's scale I mean just drawing of scales of each curve in the plot (or outside) so that it's easy to see each curves value. In my program the curves are all visible in the same plot and I've done it by applying a proper factor for y value.

    EDIT: does QwtPlotScaleItem draw also numbers along with scale ?

    EDIT2: curve 1 has min,max 0-100, curve 2 0-5, curve 3 0-1000. They are all visible in the same plot and I want to draw scales of each curve


    Added after 26 minutes:


    Maybe I can use QwtScaleWidget and set QwtScaleDiv from curve's data. Y axis is the one that I need
    Last edited by phenoboy; 15th January 2016 at 09:55.

  4. #4
    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: Draw each curve scale inside plot/canvas

    Or maybe you are looking for
    Qt Code:
    1. svn export https://svn.code.sf.net/p/qwt/code/branches/qwt-6.1-multiaxes
    To copy to clipboard, switch view to plain text mode 
    Uwe

  5. #5
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Draw each curve scale inside plot/canvas

    Quote Originally Posted by Uwe View Post
    Or maybe you are looking for
    Qt Code:
    1. svn export https://svn.code.sf.net/p/qwt/code/branches/qwt-6.1-multiaxes
    To copy to clipboard, switch view to plain text mode 
    Uwe
    Thanks Uwe!

    Ok, looks like this is what I need. Is this is sync with latest svn 6.1 release and contains only patches to enable multiaxes ?

  6. #6
    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: Draw each curve scale inside plot/canvas

    It is in sync with the code from the 6.1 svn - what differs from the 6.1.2 release by some bug fixes.

    Uwe

Similar Threads

  1. How to plot scale on the canvas
    By baoxuefei771 in forum Qwt
    Replies: 2
    Last Post: 29th May 2013, 20:59
  2. QwtPlot offset between Canvas and Scale
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 14:31
  3. Replies: 1
    Last Post: 27th April 2011, 15:13
  4. Replies: 0
    Last Post: 4th May 2010, 10:45
  5. Replies: 1
    Last Post: 22nd January 2010, 15:34

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.