Tuesday, October 26, 2010

그래프 겹쳐그리기 in python

 

 

 

 

 

 

 

 

1. 그래프 겹쳐그리기에 관한 글을 읽고 python으로 구현 이 글은 2.여기에서 참고함. 링크 1에 가보면 두개의 크기가 다른 벡터가 있다. 이것을 python으로 한 그래프에 표현할려면

import matplotlib.pylab as pl

 

ax1 = pl.subplot(111)

 

t = [1.,2.,3.,4.]

 

aa=[11.4, 12.7, 13.1, 14.56]

 

pl.plot(t, aa, 'b-o',label="aa")

 

pl.text(3,14.7,"<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">",verticalalignment='top', horizontalalignment='left') pl.ylabel('bb')

 

<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">ax2.yaxis.tick_right()

 

<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">pl.show()

<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">

Thursday, October 21, 2010

openoffice powerpoint에 youtube 동영상 삽입하기

파워포인터에 관한 글
을 읽다가 오픈오피스에서는 안될까해서 해보았어요






내 동영상 파일을 ppt에 삽입하는 것은 [ 삽입(I) - 동영상 및 사운드 ]를 선택해서 넣으면 된다.
파일 크기가 100메가 정도되는 파일은 가볍게 실행이된다.
(대체로 영화파일 크기인 700메가 이상은 실행이 안된다.)

그럼 youtube의 동영상을 삽입하는 것은?










그림처럼 [ 삽입(I) - 하이퍼링크 - 새문서 - HTML문서 ]로 들어간다.
미리 만들어둔 foo.html 문서를 [경로선택] 버튼을 눌러서 삽입한다.
foo.html 은 youtube에서 [소스코드]를 누르면 나오는



이런 파일을 foo.html로 저장하면된다.

단, 인터넷이 연결된 상태에만 실행이 가능하다.

Wednesday, October 06, 2010

publishing org file into pdf using org-mode

Using org-mode it is difficult to manage accumulated files.
C-c C-e then you can choose following commands





click for zoomed picture

rs232c using pyserial in linux

http://pyserial.sourceforge.net/pyserial.html#installation

and serial connection posting
rs232c connections in Python