Results 1 to 15 of 15

Thread: QwtPlotMarker and scaling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    6

    Default Re: QwtPlotMarker and scaling

    I thought that algorithm will be next ( if I correctly understand about what conflicts you are talking ):
    I have for example three point where I want to display my markers:
    (2, 5), (4,5), (10,5).
    So if we have the width of marker, we can check:
    So I have interval (2, 2 + width) and I check with other X's of markers (4,10, etc ) and If some X's is in interval (2, 2 + width), so we have overlapping and i want to resolve this conflict in next for example way: the X value of second point [(4,5)] we set to 2 + width + 1...


    Or I have some massive that contains value of Y and vector of X's that correspond to value Y:
    In example above: 5 -> 2, 4, 10....
    and then we need to display our markers in points: (2,5) (2+1*width, 5) (2 + 2*width, 5)


    And so on for all markers...

    Mb U have better solution?

    Yours,
    carhun
    Last edited by carhun; 5th July 2012 at 10:38.

Similar Threads

  1. QwtPlotMarker example
    By banita in forum Qwt
    Replies: 1
    Last Post: 24th May 2012, 13:19
  2. Cannot move QwtPlotMarker
    By eehmke in forum Qwt
    Replies: 1
    Last Post: 20th February 2012, 07:30
  3. QwtPlotMarker QwtPlotPicker
    By bss in forum Qwt
    Replies: 1
    Last Post: 15th June 2011, 12:55
  4. Replies: 5
    Last Post: 11th January 2011, 06:37
  5. Scaling Painter without scaling the coordinate sytem
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 7th January 2008, 21:30

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.