Results 1 to 2 of 2

Thread: Yet another Qwt curve fitting issue

  1. #1
    Join Date
    May 2015
    Location
    Ekaterinburg, Russia
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Yet another Qwt curve fitting issue

    Dear all,

    please, don't beat me for posting such a topic once again. At the moment I'm trying to implement a typical functionality: to collect thousands of samples from hardware connected to PC and to precisely display it. I chose a Qwt library which is great and totally covers all of my "wishes". Every second a software receives about 1000 samples which are being saved to the HDD. After all samples are collected and sampling process is finished I need to discover what I've received. At this moment I enable the magnify/pan functionality of Qwt. And here is an "issue" that makes me mad a bit:

    1. Magnifying to some interesting area of chart (step 1) is displayed at attached file with name wheel1.jpg

    wheel1.jpg

    2. On the next magnifying step (just one mouse wheel movement with default wheel factor 0.9) I see the following curve:

    wheel2.jpg

    3. Obviously, the shape and detalization of the curve becomes worsened. And that occurs when I tried to zoom in.

    I tried both QwtCurveFitters: QwtWeedingCurveFitter and QwtSplineCurveFitter, but with no result at the moment. A magnifier is used with mostly default settings:

    Qt Code:
    1. QwtPlotMagnifier* magnifier = new QwtPlotMagnifier( ui->chart->canvas() );
    2. magnifier->setMouseButton( Qt::MidButton );
    3. magnifier->setWheelFactor( 0.9 ); // 0.95
    To copy to clipboard, switch view to plain text mode 
    Could you please help to make it behavior to be more predictable and logically clear.

  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: Yet another Qwt curve fitting issue

    From your question it is not clear what you have implemented and what you want to achieve !

    I'm pretty sure, that the magnifier works like expected, when not using any curve fitting. But then you are trying to improve the performance of your plot by introducing some curve fitting algo - and here is where you run into problems, right ?

    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 29th September 2013, 09:12
  2. Qwt curve fitting takes a lot of time
    By StrikeByte in forum Qwt
    Replies: 4
    Last Post: 31st July 2012, 08:33
  3. How to use curve fitting
    By nightroad in forum Qwt
    Replies: 0
    Last Post: 30th June 2011, 13:43
  4. Curve Fitting Not Always Applied
    By Mannion in forum Qwt
    Replies: 3
    Last Post: 16th March 2011, 08:11
  5. Replies: 4
    Last Post: 29th April 2010, 06:11

Tags for this Thread

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.