matplotlib - How to draw bigger points on a Python plot -
i'm trying plot set of points python, using following code:
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy np import pylab pl y = [0.86,0.64,0.96,1.06,1.00,1.17,1.08,1.47,1.93,1.05,2.00,2.22,1.72,1.83] x = [2.165,2.163,0.028,2.4,3.6,2.12,2.160,3.0,2.2,2.514,2.6,3.6,2.171,1.37] pl.plot(x, y, 'rp') pl.title('my points') pl.ylabel('second variable') pl.xlabel('first variable') pl.ylim(0.0, 2.5) pl.xlim(0.0, 4.0) pl.show()
but output graph red points little, , i'd increase area. there easy way this? i'm beginner in python, , haven't been able find help.
one of arguments of plot
markersize
, can example
pl.plot(x, y, 'rp', markersize=14)
Comments
Post a Comment