Running fit_transform before plot_pca only when...

the classifier is a pipeline.