def plot_parts(parts, figsize=(10, 4), view_angles=(40, 90)):
    """Create a simple 3D plot to show the location of loaded parts in space

    Parameters
    ----------
    parts : list of `Mesh` or `Part`
        The parts to plot
    figsize : tuple, optional
        The figsize (in inches) which will be passed to matplotlib
    viewangles : tuple, optional
        The viewing angle of the 3D plot in degrees, will be passed to
        matplotlib

    Requires that matplotlib is installed
    """
    import matplotlib.pyplot as plt
    from mpl_toolkits.mplot3d import Axes3D
    fig = plt.figure(figsize=figsize)
    ax = fig.add_subplot(111, projection='3d')
    for part in parts.iter_single():
        mesh = part.mesh
        for edge in mesh.get_edges():
            nodes = part.nodes[edge]
            ax.plot(nodes[:, (0)], nodes[:, (1)], nodes[:, (2)], 'k')
    ax.view_init(*view_angles)
    ax.autoscale()
    plt.show()
