Results 1 to 2 of 2

Thread: Display only first an last value on axis

  1. #1
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    27
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Display only first an last value on axis

    Is there a possibility to display only the first and the last value on an x-axis?
    And there is another special need: these values are date / time values, which should be displayed in the lines.

    I also thought about using the y-axis labels. But I don't know how to place these labels under the axis.
    See my attached screenshot for an example, how the first x-value should be displayed. The last value should look accordingly to this.

    axis-problem.JPG

  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: Display only first an last value on axis

    Assuming you mean tick labels, when you talk about values: tick labels are displayed for major ticks only.

    So a simple solution is to set your scale with QwtPlot::setAxisScaleDiv(), where you set major ticks to the beginning and the end only.

    Uwe

    PS: Don't use the default constructor of QwtScaleDiv() - the other constructors are o.k.

Similar Threads

  1. Replies: 9
    Last Post: 3rd May 2011, 21:21
  2. QwtPlot fixed X-axis display
    By micc13 in forum Qwt
    Replies: 2
    Last Post: 3rd December 2010, 12:28
  3. Replies: 0
    Last Post: 9th August 2010, 10:46
  4. qwt custom log axis
    By kpv in forum Qwt
    Replies: 1
    Last Post: 16th April 2009, 16:21
  5. Qwt - extra axis
    By steg90 in forum Qwt
    Replies: 2
    Last Post: 10th July 2007, 14:41

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.