<div dir="ltr">Here is a script that builds an empty plot, this should be a good starting point.<br><br>#!/usr/bin/env python<br>import vtk<br><br>chart = vtk.vtkChartXY()<br>plot = vtk.vtkPlotPoints()<br>chart.AddPlot(plot)<br><br>view = vtk.vtkContextActor()<br>view.GetScene().AddItem(chart)<br><br>renderer = vtk.vtkRenderer()<br>renderer.AddActor(view)<br>renderer.SetBackground(0.5,0.5,0.5)<br><br>window = vtk.vtkRenderWindow()<br>window.SetSize(500, 500)<br>window.AddRenderer(renderer)<br><br>interactor = vtk.vtkRenderWindowInteractor()<br>interactor.SetRenderWindow(window)<br>interactor.Initialize()<br><br>window.Render()<br>interactor.Start()<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 26, 2018 at 10:04 AM, mafiaskafia <span dir="ltr"><<a href="mailto:tsilveira1993@gmail.com" target="_blank">tsilveira1993@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, I would like to know if it's possible to have a gridline as the<br>
background of the vtkRenderer (instead of a blank color) like this:<br>
  <<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__vtk.1045678.n5.nabble.com_file_t342418_halpaa.png&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=TLZky1NKFTXcRhpwzuI0rtCdYor9i-XOTRQT_tXZTls&e=" rel="noreferrer" target="_blank">https://urldefense.<wbr>proofpoint.com/v2/url?u=http-<wbr>3A__vtk.1045678.n5.nabble.com_<wbr>file_t342418_halpaa.png&d=<wbr>DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=<wbr>TLZky1NKFTXcRhpwzuI0rtCdYor9i-<wbr>XOTRQT_tXZTls&e=</a>> . <br>
I'm doing a program that does a 2D cross-section analysis using FEM (gives<br>
its centroid, inertias, etc), so i would need a gridline to display, for<br>
example, the centroids more efficiently. Is this possible with vtk?<br>
<br>
Thanks in advance,<br>
<br>
Cheers<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__vtk.1045678.n5.nabble.com_VTK-2DUsers-2Df1224199.html&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=vqQZY9HpqApGkjO-xUu9-bSVQyT9CuBb_nbJGELav54&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__vtk.<wbr>1045678.n5.nabble.com_VTK-<wbr>2DUsers-2Df1224199.html&d=<wbr>DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=<wbr>vqQZY9HpqApGkjO-xUu9-<wbr>bSVQyT9CuBb_nbJGELav54&e=</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=bm9lMiY6joExtUXYwzqpu7xPGz7LiO51nameV0Yj-iQ&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>kitware.com_opensource_<wbr>opensource.html&d=DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=<wbr>bm9lMiY6joExtUXYwzqpu7xPGz7LiO<wbr>51nameV0Yj-iQ&e=</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=udQgCHTjRSQUvCf1nmOocbHzgTS2Z5EB13hWSWkydnE&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.vtk.<wbr>org_Wiki_VTK-5FFAQ&d=DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=<wbr>udQgCHTjRSQUvCf1nmOocbHzgTS2Z5<wbr>EB13hWSWkydnE&e=</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=ojtBttbLzoXPQuYZStnqlpuBAJhO_tK3LH4yON5Fn10&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__<wbr>markmail.org_search_-3Fq-<wbr>3Dvtkusers&d=DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=<wbr>ojtBttbLzoXPQuYZStnqlpuBAJhO_<wbr>tK3LH4yON5Fn10&e=</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__public.kitware.com_mailman_listinfo_vtkusers&d=DwICAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=oXz2Jh2vN4kLzvKkknrbCJz0YhnBRGhw5Oytmjuqv4Q&s=qH_Xrf6LTnD1ebDxNhFzLVSD_n-BF-4pJOHa1Z6uOTk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__public.<wbr>kitware.com_mailman_listinfo_<wbr>vtkusers&d=DwICAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=h7heP8xwI1i_<wbr>HikChvhFbEBurKirgfOCdwgBxB9lM8<wbr>c&m=<wbr>oXz2Jh2vN4kLzvKkknrbCJz0YhnBRG<wbr>hw5Oytmjuqv4Q&s=qH_<wbr>Xrf6LTnD1ebDxNhFzLVSD_n-BF-<wbr>4pJOHa1Z6uOTk&e=</a><br>
</blockquote></div><br></div>