Results 1 to 2 of 2

Thread: How to plot my own data set in polar spectrogram example

  1. #1
    Join Date
    May 2017
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default How to plot my own data set in polar spectrogram example

    Hello,

    I am fairly new to Qt and Qwt. I am trying to plot my data that is in a 2d matrix onto the polar spectrogram plot, but i have no idea how the plot is suppose to be setup to accept that kind of data and if there is a proper way to feed that data to the plot. I have been trying to read the documentation but i am struggling to follow it.

    I was messing around and was able to create a QwtMatrixRasterData object that has dummy data stored in a QVector<double>, but was not able to get it to successfully display any of the data i feed to the plot using the setdata() function.

    I don't know if I was going in the right direction, but any help on this would be greatly appreciated and thank you in advance for any help given.

    -Mohamed Lahlou

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

    Default Re: How to plot my own data set in polar spectrogram example

    Yes using QwtRasterData - QwtMatrixRasterData is derived from it - is the right way to pass your data. Maybe have a look at the spectrogram example.

    Uwe

Similar Threads

  1. Replies: 6
    Last Post: 9th March 2016, 08:55
  2. Replies: 8
    Last Post: 12th February 2015, 05:27
  3. Rendering a qwt plot spectrogram
    By moijhd in forum Qwt
    Replies: 4
    Last Post: 23rd July 2013, 12:06
  4. Replies: 2
    Last Post: 27th May 2011, 14:03
  5. Replies: 7
    Last Post: 22nd September 2008, 23:05

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.