I would like to use a for loop to assign keyword variables. Instead of inserting all the keyword variables when calling the method
fig, ax = plt.subplots() ax.tick_params(left="off", right="off", top="off", bottom="off")
Instead I would like to create a list and then loop over the list to assign the kwargs:
positions = ['left', 'right', 'top', 'bottom'] for p in position: ax.tick_params[p="off"]
This causes an error, I think because the elements in the list are strings and the kwargs are variable names. Is it possible to make this assignment work somehow?