I am trying to build a plot using matplotlib.pyplot as plt.
For example plt.hist(df.amount, bins = 30)
But when I hit enter in the console it generates the graph.
I want to apply xlim, ylim and title functions of plt but can't do this.
Anyone familiar with this behavior? Should I change Spyder settings?
Same behavior with Seaborn package.
%matplotlibor%matplotlib qtbefore doingplt.hist(df.amount, bins=30).Ctrl+Enterinstead ofEnterto create a new line instead of executing. That way you can add more code to customize your plot.