Closed ljchang closed 8 months ago
Thanks @ljchang, this is a great idea! I expanded on this slightly and made a few minor tweaks:
cube_kwargs
to plot_wireframe
instead of just color & linewidth to allow customizing other properties (linestyles, alpha, zorder, etc.) as wellcube_kwargs
into plot_square()
to allow customizing the square drawn around 2D plots (kwargs get forwarded to matplotlib.patches.Rectangle()
in this case)cube_kwargs
➡️ frame_kwargs
so it more generally refers to the "frame" drawn around either a 2D or 3D plot frame_kwargs
to values stored in the returned DataGeometry
object so that its plot()
method reproduces the original plot with no additional arguments.frame_kwargs
Merging this in!
I wasn't able to find any tutorials for customizing colors of plots.
Most of the matplotlib properties can be easily accessed via the DataGeometry class. However, the wireframe properties are more deeply embedded in the hypertools plotting functions.
This suggested change incorporate
cube_kwargs
that propagates into theplot_cube()
function.Not sure if this functionality is of interest to anyone else, but thought I would share just in case.