rubix_cube.plot_cube_2d module¶
2-D Rubix Cube
plot rendering Module.
Module Description¶
plot_cube_2D()
method for plotting theRubix Cube
on amatplotlib Axes
.
Module Contents¶
-
rubix_cube.plot_cube_2d.
plot_cube_2D
(ax: matplotlib.axes._axes.Axes, cube: rubix_cube.cube.Cube)[source]¶ Plots the
Rubix Cube
on amatplotlib Axes
on a flattened 2-D representation.- Parameters
ax (plt.Axes) – The
matplotlib Axes
on which the plotting will be done.cube (Cube) –
Rubix Cube
that will be plotted in a flattened 2-D representation of all 6 sides.
- Returns
None.