python - Making plot in ipython with matplotlib -


i've been trying make scatter plot following code

import matplotlib import matplotlib.pyplot plt fig = plt.figure() ax = fig.add_subplot(111) ax.scatter(x, y) plt.show() 

if type these commands line line ipython console, there no graph displayed after plt.show() command. however, if copy , paste whole code block console, graph displayed.

has had issue before? reason this?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -