Results 1 to 5 of 5

Thread: plotting just the points not an actual curve

  1. #1
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default plotting just the points not an actual curve

    Hello,
    I have a set of (x,y) coordinates.I've inherited from QwtData to override to x() and y() virtual functions. I then use a QwtPlotCurve and I set its data to my data, set the style to Dots.

    How can I make the dots look bolder?

    regards,

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

    Default Re: plotting just the points not an actual curve

    Increase the width of your curve pen or use symbols.

    Uwe

  3. #3
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: plotting just the points not an actual curve

    Thanks. I do this:
    Qt Code:
    1. pc->setStyle(QwtPlotCurve::Dots);
    2. QPen* pen = new QPen( pc->pen() );
    3. pen->setWidth( pen->width()*4 );
    4. pc->setPen(*pen);
    To copy to clipboard, switch view to plain text mode 

    but the dots look just as small as before,

    is this what you meant?

    regards,

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,234
    Thanked 857 Times in 806 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: plotting just the points not an actual curve

    0 * 4 = 0 !

    Uwe

  5. #5
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: plotting just the points not an actual curve

    I've tried with different numbers of pixels: 4 8 16 256
    pen->setWidth( 4 ); // and 8 and 16 and 256
    I don't see the dots anymore at all.

    regards,

Similar Threads

  1. Deleting points from a curve dynamically
    By maneesh18187 in forum Qwt
    Replies: 2
    Last Post: 9th February 2010, 18:08
  2. Plotting specific points with qwt
    By byb810 in forum Qwt
    Replies: 0
    Last Post: 30th July 2009, 15:42
  3. Plotting points
    By afflictedd2 in forum Qt Programming
    Replies: 8
    Last Post: 26th February 2009, 08:20
  4. Get the points of a fitted curve
    By giusepped in forum Qwt
    Replies: 4
    Last Post: 25th December 2008, 07:42
  5. Plotting part of a curve
    By viridis in forum Qwt
    Replies: 6
    Last Post: 21st July 2008, 08:12

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.