Closed dyerrington closed 3 years ago
Since axes are returned from figure object, while not a great solution that may not work for everyone, I've manually adjusted the axis ratios. This snippet will update the aspect of any size plot.
aspect_x, aspect_y = (.6, 1.6) # Update to your liking
update_aspect = lambda ax: (ax['_pdp_x_ax'].set_aspect(aspect_x), ax['_pdp_y_ax'].set_aspect(aspect_y))
map_aspect = np.vectorize(update_aspect)
map_aspect(axes['pdp_inter_ax']);
It's fixed in the next version.
Here is my code to reproduce the problem:
The problem is that in the reference docs you have, these subplots that show the dimensional values to the left and above each class plot, they are aligned with the grid of the figure. They seem to be squished. I can probably figure out how to reference to axis or figure directly and correct them but is this expected? Any easy fix?
Thanks! Great library!