KekLib.OurGeomdl#
OurGeomdl.py
modified from geomdl/visualization/VisMPL.VisSurface
- class VisSurface(config=<geomdl.visualization.VisMPL.VisConfig object>, **kwargs)#
Bases:
VisAbstract
Matplotlib visualization module for surfaces.
Wireframe plot for the control points and triangulated plot (using
plot_trisurf
) for the surface points. The surface is triangulated externally usingutilities.make_triangle_mesh()
function.- animate(**kwargs)#
Animates the surface.
This function only animates the triangulated surface. There will be no other elements, such as control points grid or bounding box.
- Keyword Arguments:
colormap (*) – applies colormap to the surface
Colormaps are a visualization feature of Matplotlib. They can be used for several types of surface plots via the following import statement:
from matplotlib import cm
The following link displays the list of Matplolib colormaps and some examples on colormaps: https://matplotlib.org/tutorials/colors/colormaps.html
- render(**kwargs)#
Plots the surface and the control points grid.
- Keyword Arguments:
colormap (*) – applies colormap to the surface
Colormaps are a visualization feature of Matplotlib. They can be used for several types of surface plots via the following import statement:
from matplotlib import cm
The following link displays the list of Matplolib colormaps and some examples on colormaps: https://matplotlib.org/tutorials/colors/colormaps.html