7 Oct 2009 20:14
Re: calling setPen for each symbol
David Stranz <David_Stranz <at> MassSpec.com>
2009-10-07 18:14:47 GMT
2009-10-07 18:14:47 GMT
Paul, Can you dynamically divide your symbols into subsets by colour, then set the pen for each subset? (That is, use a QwtPlotCurve for each set of like-coloured symbols). This involves no hacking. David _______________________________________________________________ David Stranz, Ph.D. david_stranz <at> MassSpec.com Sierra Analytics, Inc. 5815 Stoddard Road, Suite 601 Modesto, CA 95356 Tel: (209) 545-8508 http://www.massspec.com _______________________________________________________________ Paul Harris wrote: > Hi, > > I'd like to plot a bunch of symbols, but with a spectrum of colours. > > Currently QwtPlotCurve allows you only define 1 pen/brush (ie one > colour) to paint all the symbols. > I was thinking of hacking it a bit to allow me to specify a function > that will reset the pen/brush colour for every symbol. > > But I'm worried about QT's performance, I see notes in the code stating > that its slow to draw lines with a brush set. I'm wondering if it is > also slow to change pens/brushes a lot too? I will check it out via a > quick hack + benchmark, but I'm hoping someone already knows the answer > as it might be different for different QT versions and different platforms. > > thanks, > Paul > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ------------------------------------------------------------------------ > > _______________________________________________ > qwt-interest mailing list > qwt-interest <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qwt-interest ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
RSS Feed