- 작성시간 : 2014/01/07 22:51
- 퍼머링크 : always19.egloos.com/2966107
- 덧글수 : 0
Which python for OS X?
Apple ships with its own python, and many users have had trouble with it. There are several alternative versions of python that can be used. If it is feasible, we recommend that you use the enthought python distribution EPD for OS X (which comes with matplotlib and much more). Also available is MacPython or the official OS X version from python.org.
scatter(px, py, s=3, c='red', lw = 0, alpha=0.1)
scatter(nx, ny, s=3, c='blue', lw = 0, alpha=0.1)
data를 load하기
http://stackoverflow.com/questions/6323737/make-a-2d-pixel-plot-with-matplotlib
http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html
근데, 자꾸 figure 창을 끄고 다시 실행해야 화면이 update가 되네. 왜 그냥 실행하면 갱신이 안되는지 모르겠다.
그 외 간단한 설명

Scatter Plots

Hints
Color is given by angle of (X,Y).
Starting from the code below, try to reproduce the graphic on the right taking care of marker size, color and transparency.
from pylab import *n = 1024X = np.random.normal(0,1,n)Y = np.random.normal(0,1,n)scatter(X,Y)show()
혹시 web에서 쓴다면, google chart api가 좋겠다.




덧글