Results 1 to 3 of 3

Thread: Broken curve simpleplot

  1. #1
    Join Date
    Jun 2021
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Broken curve simpleplot

    Example simleplot.
    Modify points (2 and 3 set value to NAN).
    points << QPointF( 0.0, 4.4 ) << QPointF( 1.0, 3.0 )
    << QPointF( 2.0, NAN ) << QPointF( 3.0, NAN )
    << QPointF( 4.0, 7.9 ) << QPointF( 5.0, 7.1 );
    I have very strange curve (lines going to the upper left corner. ).
    broken_NAN_set_pen4.png

    If set pen width to 1 - the line looks right.
    broken_NAN_set_pen1.png
    how to make the line correct for a different pen width (as with thickness 1 )?

  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: Broken curve simpleplot

    NAN is no valid coordinate

  3. #3
    Join Date
    Jun 2021
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Broken curve simpleplot

    Quote Originally Posted by Uwe View Post
    NAN is no valid coordinate
    I also want there to be no curves in these coordinates, what value should I put here instead of nan?

Similar Threads

  1. Replies: 2
    Last Post: 23rd October 2017, 21:01
  2. Replies: 1
    Last Post: 29th September 2013, 10:12
  3. Replies: 2
    Last Post: 23rd August 2011, 13:23
  4. Replies: 4
    Last Post: 29th April 2010, 07:11
  5. Replies: 1
    Last Post: 22nd January 2010, 15:34

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.