Skip to content
Snippets Groups Projects
Commit 26588ce5 authored by Jon Haitz Legarreta Gorroño's avatar Jon Haitz Legarreta Gorroño
Browse files

STYLE: Fix typo in ElevationBandsWithGlyphs.py function name,

Fix typo in ElevationBandsWithGlyphs.py example function name: change
"WritePMG" to "WritePNG".
parent f8bdb34c
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ import vtk ...@@ -10,7 +10,7 @@ import vtk
SURFACE_TYPE = {"PLANE", "SPHERE", "PARAMETRIC_SURFACE"} SURFACE_TYPE = {"PLANE", "SPHERE", "PARAMETRIC_SURFACE"}
def WritePMG(ren, fn, magnification=1): def WritePNG(ren, fn, magnification=1):
""" """
Save the image as a PNG Save the image as a PNG
:param: ren - the renderer. :param: ren - the renderer.
...@@ -391,5 +391,5 @@ if __name__ == '__main__': ...@@ -391,5 +391,5 @@ if __name__ == '__main__':
iren = DisplaySurface("PARAMETRIC_SURFACE") iren = DisplaySurface("PARAMETRIC_SURFACE")
iren.Render() iren.Render()
iren.Start() iren.Start()
# WritePMG(iren.GetRenderWindow().GetRenderers().GetFirstRenderer(), # WritePNG(iren.GetRenderWindow().GetRenderers().GetFirstRenderer(),
# "ElevationBandsWithGlyphs.png") # "ElevationBandsWithGlyphs.png")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment