Results 1 to 3 of 3

Thread: Changin the place of the grap legend in Qwt

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Changin the place of the grap legend in Qwt

    Hello!

    I'm developing a software that uses Qwt to plot some graph but I needed that the legend of the graph's division stay not under the MaxMajor, but between them. So instead of one having "Max Major + Legend, MaxMinor, MaxMinor, Mas Major + Legend, ...", one would have "Max Major, Legend, Max Minor, Legend, Mas Minor, Legend, Max Major, Legend", and so forth.

    How do I configure this in Qwt?

    Examples:
    - How it is: http://simplestudies.com/repository/...cost_graph.gif
    - how I want: http://www.webopedia.com/FIG/LINEGR.gif

    Thanks!

    Momergil

  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: Changin the place of the grap legend in Qwt

    You are talking about the tick label - the legend is something different.

    Having tick labels between 2 major ticks is not possible - something on my TODO list. But you can try to do the same hack, that is implemented in the friedberg example.

    Uwe

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Changin the place of the grap legend in Qwt

    Quote Originally Posted by Uwe View Post
    You are talking about the tick label - the legend is something different.

    Having tick labels between 2 major ticks is not possible - something on my TODO list. But you can try to do the same hack, that is implemented in the friedberg example.

    Uwe
    Hmm, its a pitty. Well, I'll try to do as in that example and wait till the next Qwt version.

    Thanks,

    Momergil

Similar Threads

  1. QWT legend customization
    By alexmal in forum Qwt
    Replies: 1
    Last Post: 20th May 2011, 08:27
  2. How to enlarge the grap mouse selection
    By matteo.boscolo in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2010, 15:10
  3. Changin the pen width for QGLWidget
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2009, 07:05
  4. Qwt Legend
    By maxpayne in forum Qwt
    Replies: 4
    Last Post: 15th October 2008, 18:17
  5. Changin look of QComboTableItem
    By jseguraj in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2006, 14:35

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.