Results 1 to 6 of 6

Thread: QwtPolarSpectrogram with inverted Radius

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2017
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11

    Question QwtPolarSpectrogram with inverted Radius

    I need to create a PolarSpectrogram for the following scales.
    Azimuth = 0 to 360 in steps of 15 degrees
    Radius = 0 to 90 in steps of 10 degrees.

    I use the following code to have clock-wise scaling for Azimuth.
    Qt Code:
    1. setScale(QwtPolar::Azimuth, 360 , 0 , 30);
    2. setScaleMaxMinor(QwtPolar::Azimuth, 2);
    To copy to clipboard, switch view to plain text mode 

    But the inversion does not work for Radius.
    Qt Code:
    1. setScale(QwtPolar::Radius, 90 , 0 , 20);
    2. setScaleMaxMinor(QwtPolar::Radius, 2);
    To copy to clipboard, switch view to plain text mode 

    While the default 0 to 90 works fine. (see image: I just need the 0 - 90 be 90 - 0 )

    I am using a QwtMatrixRasterData to provide 216 (24 columns and 9 rows) entries for these divisions. The interval for the data is set as
    Qt Code:
    1. setInterval( Qt::XAxis, QwtInterval( 0.0, 360.0 ) );
    2. setInterval( Qt::YAxis, QwtInterval( 0.0,90.0 ) );
    To copy to clipboard, switch view to plain text mode 

    I have tried switching the interval for the data and setting ScaleDiv(1, QwtScaleDiv(90, 0)) for the plot.

    I'd appreciate any help. Thanks!
    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: 5th August 2016, 09:21
  2. Replies: 9
    Last Post: 24th April 2015, 15:39
  3. Replies: 2
    Last Post: 28th January 2015, 14:27
  4. Inverted QTextEdit
    By TMan in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2009, 16:35
  5. QWTdial inverted range
    By jmsbc in forum Qwt
    Replies: 1
    Last Post: 12th January 2009, 21:21

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.