Fri Dec 24 2021 17:50:18 GMT+0000 (Coordinated Universal Time)
Saved by @amogh
def change_width(ax, new_value) : for patch in ax.patches : current_width = patch.get_width() diff = current_width - new_value patch.set_width(new_value) patch.set_x(patch.get_x() + diff * .5)
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments