Results 1 to 3 of 3

Thread: how to display bartitle under axis in qwtPlotBarChart?

  1. #1
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to display bartitle under axis in qwtPlotBarChart?

    Hi all,

    Despite my research in qwt documentation and using Google, I have not found a way to display bar titles below the X axis (instead of the numbers 0, 1 ...) in a bar chart. To make it a bit more clear, here is what a barchart looks like in the examples of qwt:
    Untitled.png
    Under the X axis there is only numbers and the legend contains the bar titles (Bar 0, Bar 1 and Bar 2)
    barchartdemo.png
    Here is what I would like to achieve. Under the bars we can read country names.

    If anyone has a clue how to do that I would be grateful if he or she can share his/her knowledge.

    Corsairr

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

    Default Re: how to display bartitle under axis in qwtPlotBarChart?

    Have a look at DistroScaleDraw in the distrowatch example. It is a different type of bar chart, but the way how to set the tick labels is the same.

    Uwe

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

    corsairr (2nd September 2013)

  4. #3
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display bartitle under axis in qwtPlotBarChart?

    Thank you very much Uwe, that is exactly what I was looking for !

Similar Threads

  1. Replies: 4
    Last Post: 17th July 2012, 12:38
  2. Replies: 2
    Last Post: 26th January 2012, 15:31
  3. Display only first an last value on axis
    By Markus_AC in forum Qwt
    Replies: 1
    Last Post: 2nd November 2011, 10:40
  4. Replies: 9
    Last Post: 3rd May 2011, 21:21
  5. QwtPlot fixed X-axis display
    By micc13 in forum Qwt
    Replies: 2
    Last Post: 3rd December 2010, 12:28

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.