Results 1 to 5 of 5

Thread: QWT plot with different colored backgrounds

  1. #1

    Default QWT plot with different colored backgrounds

    Hello, I'm hoping someone can help with plotting a linegraph with different backgrounds that represent phases of a plot. Please see the attached, is something like this possible with QWT? I can see how to change the overall background color, but not have phases with different colors. Note I will be plotting this realtime as well, and the phases will move and grow as they are progressed through, so I can't just make a bitmap for the background. They will also vary depending on configuration.
    Any help is greatly appreciated! Plotting.jpg

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QWT plot with different colored backgrounds

    Hi, you could try to generate a background bitmap on-the-fly, but I don't know how that would behave performance-wise. Maybe there's a nicer solution in Qwt, but I have no experience with that lib.

    Ginsengelf

  3. #3

    Default Re: QWT plot with different colored backgrounds

    Thank you and I appreciate you looking at it and responding, but my phases grow and shrink, and need to be aligned with the data. I don't think the bitmap is a viable solution.

  4. #4
    Join Date
    Sep 2019
    Posts
    4
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QWT plot with different colored backgrounds

    Hi, this seems like it could be done with QwtPlotZoneItem.

  5. #5

    Default Re: QWT plot with different colored backgrounds

    Quote Originally Posted by jhosek View Post
    Hi, this seems like it could be done with QwtPlotZoneItem.
    Thank you, I overlooked this in the documentation, I agree this seems like just what I want.

Similar Threads

  1. Replies: 5
    Last Post: 18th March 2012, 23:18
  2. Replies: 4
    Last Post: 11th May 2011, 20:15
  3. Replies: 0
    Last Post: 15th May 2009, 16:38
  4. Widgets on Graphicsview backgrounds
    By pherthyl in forum Qt Programming
    Replies: 4
    Last Post: 29th July 2008, 19:02
  5. Colored cursor
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 15th May 2008, 13:16

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.