Results 1 to 11 of 11

Thread: Strange extra line in my plotting, help please

Hybrid View

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

    Default Re: Strange extra line in my plotting, help please

    You need to understand the meaning of the different layout options - no code.

    Uwe

  2. #2
    Join Date
    Jun 2009
    Location
    AKL | New Zealand
    Posts
    62
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Strange extra line in my plotting, help please

    thanks Uwe, i will read the qwt layout class again.

  3. #3
    Join Date
    Jun 2009
    Location
    AKL | New Zealand
    Posts
    62
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Strange extra line in my plotting, help please

    Hi Uwe,

    I have tried the plotLayout()->setAlignCanvasToScales. Here is my code:
    Qt Code:
    1. ui->qwtPlot->plotLayout()->setAlignCanvasToScales(false);
    2. ui->qwtPlot->plotLayout()->setCanvasMargin(50, -1);
    To copy to clipboard, switch view to plain text mode 

    I got this:


    the length of the scale backbone has been shorted.
    What i really want is to make the scale backbone skinner. The reason is that the screen what i am running my application is only 4.3". I need get more space to display the chart. Therefore, i want to save some scale backbone space (even a little bit) to my chart. I wish the scale backbone will be looks like:



    Is that possible to achieve? Thanks for your help.

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

    Default Re: Strange extra line in my plotting, help please

    Maybe plot->axisWidget(...)->setMargin(0); is what you want. You can also save some pixels by reducing the spacing and you could disable the frame of the canvas. Another idea is to disable the left axis completely and to insert a QwtPlotScaleItem on the canvas instead.

    Uwe

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

    cooper (1st November 2010)

  6. #5
    Join Date
    Jun 2009
    Location
    AKL | New Zealand
    Posts
    62
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Strange extra line in my plotting, help please

    Thanks Uwe,

    after i setup "setMargin(0)" and disable the frame of canvas, I got saved some pixels in my plotting screen.

    Thank for your help

Similar Threads

  1. Qmake Extra Targets
    By ChrisW67 in forum Qt Programming
    Replies: 4
    Last Post: 7th September 2009, 23:13
  2. Replies: 0
    Last Post: 4th August 2009, 15:24
  3. strange extra spacing between checkboxes
    By jamadagni in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2007, 10:13
  4. Qwt - extra axis
    By steg90 in forum Qwt
    Replies: 2
    Last Post: 10th July 2007, 14:41
  5. extra database features available in Qt4 than QT3
    By nimmyj in forum General Discussion
    Replies: 1
    Last Post: 24th November 2006, 22:14

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
  •  
Qt is a trademark of The Qt Company.