[vtkusers] grid lines in vtkXYPlotActor
Steven Chall
stevec at renci.org
Wed Feb 2 14:12:50 EST 2011
Thanks, Eric. I'm using 5.6.1 at the moment. I'll go look at the Charts classes right now.
Steve
-Steve Chall
Senior Research Software Developer
Renaissance Computing Institute (RENCI)
Phone: 919-681-9639
Email: stevec at renci.org<mailto:stevec at renci.org>
From: Eric E. Monson [mailto:emonson at cs.duke.edu]
Sent: Wednesday, February 02, 2011 1:49 PM
To: Steven Chall
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] grid lines in vtkXYPlotActor
Hey Steve,
I can't see a way to do it, but maybe I'm just overlooking something. Someone else can chime in if they know how to do it.
I don't know what version of VTK you're using, but just in case you haven't tried them yet I wanted to also let you know about the newer VTK charting classes. vtkChartXY would be the one you'd use instead of vtkXYPlotActor, and the plots take a table as input. (I only mention the VTK version because the functionality has been improved quite a bit in the development head and upcoming 5.8 release when compared to 5.6.1)
http://www.vtk.org/doc/nightly/html/classvtkChartXY.html
This and the other new Charts classes and 2D API have very good performance for large data sets, are maturing nicely, and should be the future of basic VTK charting. Look at the Tests (rather than the Examples) linked off of that documentation page for how to use them. Grids are part of the axes, so you'll have to call something like this to turn them on:
chart->GetAxis(0)->SetGridVisible(true);
Talk to you later,
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On Feb 2, 2011, at 12:56 PM, Steven Chall wrote:
Is there any way to display grid lines (preferably major and minor) with vtkXYPlotActor? Thanks.
-Steve Chall
Senior Research Software Developer
Renaissance Computing Institute (RENCI)
Phone: 919-681-9639
Email: stevec at renci.org<mailto:stevec at renci.org>
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110202/945f6afd/attachment.htm>
More information about the vtkusers
mailing list