<html><head><base href="x-msg://40/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Steve,<div><br></div><div>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.</div><div><br></div><div>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) </div><div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkChartXY.html">http://www.vtk.org/doc/nightly/html/classvtkChartXY.html</a></div><div><br></div><div>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:</div><div><br></div><div>chart->GetAxis(0)->SetGridVisible(true);</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></span></div><br><div><div>On Feb 2, 2011, at 12:56 PM, Steven Chall wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">Is there any way to display grid lines (preferably major and minor) with vtkXYPlotActor? Thanks.<o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: black; ">-Steve Chall<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: black; "> Senior Research Software Developer<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: black; "> Renaissance Computing Institute (RENCI)<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: black; "> Phone: 919-681-9639<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: black; "> Email:<span class="Apple-converted-space"> </span><a href="mailto:stevec@renci.org" style="color: blue; text-decoration: underline; "><span style="color: blue; ">stevec@renci.org</span></a></span><o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div></div>_______________________________________________<br>Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com" style="color: blue; text-decoration: underline; ">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<a href="http://www.kitware.com/opensource/opensource.html" style="color: blue; text-decoration: underline; ">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at:<a href="http://www.vtk.org/Wiki/VTK_FAQ" style="color: blue; text-decoration: underline; ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" style="color: blue; text-decoration: underline; ">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></blockquote></div><br></div></body></html>