
<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
Python PCA - Plotting Explained Variance Ratio with Matplotlib

<ASSISTANT_TASK:>
Python Code::
import matplotlib.pyplot as plt
plt.figure(figsize=(10,6))
plt.bar(x=range(0,len(X_train.columns)), 
        height=pca.explained_variance_ratio_,
        tick_label=X_train.columns)
plt.title('Explained Variance Ratio')
plt.ylabel('Explained Variance Ratio')
plt.xlabel('Component')
plt.show()

<END_TASK>
