Results 1 to 5 of 5

Thread: Variability Plot: Custom X Axes

  1. #1
    Join Date
    Aug 2019
    Posts
    3
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Variability Plot: Custom X Axes

    Attachment 13251

    I am looking to create a plot similar to the one above but in QWT. I tried inheriting from the QwtScaleDraw class and then implementing the draw label but that only draws the label for the specified tick mark. I want to have buckets essentially and only the uppermost bucket correspond to the tick mark. I looked and found a post that looked promising but the class that was being referred to does not exist in the current Qwt version nor does any documentation exist for it. The link to the post that could have been potentially helpful is : https://www.qtcentre.org/threads/690...Plot-multiaxes

  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: Variability Plot: Custom X Axes

    The attachment does not work for me, so I'm not sure what your request is about.
    The linked thread is about the multi axes branch, but it does not seem related to the rest of the text. Anyway, you find it here: https://sourceforge.net/p/qwt/code/H...-6.1-multiaxes

    Uwe

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

    haylie.everett (28th August 2019)

  4. #3
    Join Date
    Aug 2019
    Posts
    3
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Variability Plot: Custom X Axes

    https://stackoverflow.com/questions/...-using-ggplot2

    The link above is where I got the image from. This example is derived from JMP. I looked at the example from the link I sent and see that you attach certain curves and data sets to each of the axes you create but I am looking at something similar to the graph produced at the top of the link provided.
    Attached Images Attached Images

  5. #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: Variability Plot: Custom X Axes

    I'm afraid there is no easy way to implement your scales at the bottom and you would have to overwrite:

    • QwtAbstracScaleDraw::draw
    • QwtPlotRenderer::renderScale

    more or less from scratch.

    ciao,
    Uwe

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

    haylie.everett (30th August 2019)

  7. #5
    Join Date
    Aug 2019
    Posts
    3
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Variability Plot: Custom X Axes

    Okay, I tried to overwrite the QwtScaleDraw but I see how I would have to actually do the QwtAbstractScaleDraw. I didn't know about the QwtPlotRenderer so thanks for that as well! I appreciate it!

Similar Threads

  1. Custom plot selection
    By SeanM in forum Qwt
    Replies: 10
    Last Post: 10th May 2020, 14:50
  2. Using QwtPlotMagnifier on plot axes
    By cesroc in forum Qwt
    Replies: 1
    Last Post: 13th May 2013, 14:53
  3. Replies: 5
    Last Post: 3rd October 2012, 16:14
  4. Plot Axes
    By mcarter in forum Qwt
    Replies: 0
    Last Post: 5th December 2009, 00:47
  5. Replies: 2
    Last Post: 4th August 2008, 09:14

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.