Source code has been (very) slightly modified into fully object-oriented matplotlib interface. A pseudo-random generator is used with a constant seed to ensure reproducibility when updating in the futre. The original shebang was also removed.
The matplotlib (mpl) version is 1.5.3, with Python 2.7 and numpy 1.10
############ Code for the figure##########"""This generates a 100 points scatter graph."""importmatplotlib.pyplotaspltimportnumpyasnpprng=np.random.RandomState(123)# Set a fix-seed PRNG for reproducibilityfig,ax=plt.subplots()x=prng.rand(100)y=prng.rand(100)ax.scatter(x,y)fig.savefig("matplotlib_scatter.svg")plt.show()##########
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.