Results 1 to 13 of 13

Thread: Using QwtPlot to plot binary data from file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    1

    Default Re: Using QwtPlot to plot binary data from file

    I have a small question that could be obvious for many of you, but not for me...

    Once you have your data inherited from QwtData
    (e.g. in my case I have float numbers)

    How do you pass it to setData (or setRawData in my case)?

    Here the definitions of setData and setRawData:
    (From qwtplotcurve manual)

    Qt Code:
    1. void QwtPlotCurve::setData ( const double * xData, const double * yData, int size )
    To copy to clipboard, switch view to plain text mode 


    Qt Code:
    1. void QwtPlotCurve::setRawData ( const double * xData, const double * yData, int size )
    To copy to clipboard, switch view to plain text mode 

    I do not see the link in between my YourData (derived from QwtData) and how to "link" it to my QwtPlot...

    Thank you...

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

    Default Re: Using QwtPlot to plot binary data from file

    Qt Code:
    1. void QwtPlotCurve::setData(const QwtData &data);
    To copy to clipboard, switch view to plain text mode 

    All other setData methods are convenience methods creating an internal QwtData object. Passing values to your individual data object needs to be done via the API of your derived data class.

    Uwe

  3. #3
    Join Date
    Oct 2010
    Posts
    58
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    26

    Default Re: Using QwtPlot to plot binary data from file

    Hi, I also want to plot some data from a data file. I have QWT 6.0 and it doesn't include QwtData. Does anyone know where I can get this code, or if there is another way to make a plot from a data file with the tools in qwt 6.0?

    Thanks

  4. #4
    Join Date
    Sep 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using QwtPlot to plot binary data from file

    Hi,
    I just posted a thread about using data from a file to make a plot so I guess it doesn't hurt to ask here too.
    Basically after reading the whole thread and trying to make sense of things, I still don't full understand... >.<

    My main problem is:
    The data is in a file; I want to make a bridge to this data...
    Does this mean a bridge to the data file? or has the data already been read in somewhere. If so, then how?
    somewhere mentioned above is a "bridge to an array", but my data is too big to fit into an array and multi-dimensional arrays dont seem to work (for qwtplot).

    Any help will be appretiated!
    Thanks

Similar Threads

  1. Replies: 15
    Last Post: 27th May 2008, 02:46
  2. Reading binary data
    By vermarajeev in forum Qt Programming
    Replies: 1
    Last Post: 13th August 2007, 10:14
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  4. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 19:10
  5. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 17:17

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.