I am using a for loop to plot scatterplots of x_i and y for each xi by looping. I would like to set the xlabel (within the for loop) in such a manner:
plt.xlabel( 'Predictor x_i', X[i] )
Here X[i] should give the variable name of the ith element in the list X.
However this gives more than one argument to plt.xlabel. Is there some way to implement this idea? Thank you in advance.