Results 1 to 3 of 3

Thread: rotating a qwtplot

  1. #1
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default rotating a qwtplot

    Hello everybody,

    I started recently to work with qt/qwt and I would have one question about qwtplot.

    I want to design a widget made of three objects:

    - a QGraphicsObject object that will display the values of a 2D matrix
    - a first qwtplot object at the bottom of the QGraphicsObject that will show a plot of the integration of the matrix over its Y axis
    - a second qwtplot object on the right of the QGraphicsObject that will show a plot of the integration of the matrix over its X axis

    I would like to rotate the second qwtplot (the one on the right) so as its X axis is points to the bottom and its Y axis points to the right.

    Something like:

    ---------------> Y
    |
    |
    |
    |
    V
    X

    Would you have any idea how to achieve this ? I tried to play a bit with QwtScaleEngine but I failed up to now to make it works using that way.

    thanks a lot

    Eric

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

    Default Re: rotating a qwtplot

    X/Y are just names, why not simply swapping the coordinates of the samples ( points ).

    Uwe

  3. #3
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: rotating a qwtplot

    thanks Uwe,

    thanks for the hint. It seemed simpler to me to directly rotate the plot but as this may not be possible under qwt, your solution is definitely one way to go.

    Eric

Similar Threads

  1. Replies: 9
    Last Post: 25th October 2012, 19:55
  2. Rotating QGraphicsTextItem
    By meazza in forum Newbie
    Replies: 4
    Last Post: 2nd August 2011, 12:11
  3. Replies: 6
    Last Post: 14th May 2009, 12:02
  4. Rotating the polygon
    By navi1084 in forum Qt Programming
    Replies: 1
    Last Post: 4th September 2008, 00:41
  5. Rotating a slider...
    By ACFred in forum Newbie
    Replies: 7
    Last Post: 24th February 2008, 15:56

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.