Results 1 to 3 of 3

Thread: plot with hor. lines and text

  1. #1
    Join Date
    Oct 2007
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default plot with hor. lines and text

    Hi,

    I have to plot system uptimes. Dates on the y axis, tod on the x axis.
    Each horizontal line must have the system id.

    I am just beginning with qwt. What is the best way of doing this?

    attached is what it looks like in the app that I am converting to qwt.

    Hugo
    Attached Images Attached Images

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

    Default Re: plot with hor. lines and text

    Have a look at QwtPlotHistogram from SVN trunk. In Lines mode it should be close to what you are looking for. To draw the text labels you have to overload YourHistogram::drawSeries. It might help to look at the implementation of QwtPlotMarker how to align and draw a text at a specific position.

    Uwe

  3. #3
    Join Date
    Oct 2007
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plot with hor. lines and text

    Thanks Uwe. That's what I'll do. I'll let you know when it's finished.

    Hugo

Similar Threads

  1. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  2. Replies: 1
    Last Post: 10th February 2009, 06:21
  3. Replies: 7
    Last Post: 22nd September 2008, 22:05
  4. I want to get lines of text
    By newplayer in forum Qt Programming
    Replies: 11
    Last Post: 29th July 2008, 09:03
  5. Replies: 4
    Last Post: 25th May 2008, 20:01

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.