2D plotting¶
-
medianshape.viz.plot2d.get_colors(n)[source]¶ Returns a function that maps each index in 0, 1, ... N-1 to a distinct RGB color.
-
medianshape.viz.plot2d.plot_curve2d(mesh, func_path, title=None, color='black', marker=None, linewidth=3, ls='-', label='')[source]¶ Plots a curve in a triangulated mesh.
-
medianshape.viz.plot2d.plot_simplices2d(mesh, simplices, title=None, color='y', label='')[source]¶ Plots 2-simplices, triangles.
-
medianshape.viz.plot2d.plot_curves_approx2d(mesh, points, vertices, paths, title='$Curve$ $approximation$', figname=None, file_doc=None, save=True, lim=5)[source]¶ Plots curves described as points along with corresponding interpolated curves in a trianglulated mesh.
-
medianshape.viz.plot2d.plot_curve_approx2d(mesh, input_points, closest_vertices, path, title=None, color='red', linewidth=3, label='')[source]¶ Plots a curve described as points along with a corresponding interpolated curve in a trianglulated mesh.