Divine Power

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

Legend 2

Matplotlib 으로 scatter plot 그리기 (점그래프?!)

#!/usr/bin/env python2 from pylab import * params = { 'axes.labelsize': 15, 'text.fontsize': 15, 'legend.fontsize': 15, 'xtick.labelsize': 12, 'ytick.labelsize': 12, #'text.usetex': True, #'figure.figsize': fig_size } rcParams.update(params) def load_data( fname ): f = open( fname ) data = np.loadtxt( f, delimiter=',' ) f.close x, y = zip( *data ) return x, y def plot_kind( k, m, c ): x,y = load..

LaTeX 2011.01.29

Matplotlib 에서 legend 위치 결정하는 방법

http://matplotlib.sourceforge.net/users/legend_guide.html#plotting-guide-legend 여기 그림도 나와있음. bbox_to_anchor를 쓰면 plot 바깥에 legend를 둘 수도 있다. Matplotlib Legend Outside Matplotlib 범례 바깥에 놓기 legend( ncol=1, loc='center right', bbox_to_anchor=(1.3,0.5), scatterpoints=1 ) 필자는 이 명령어로 아래와 같은 결과를 얻었다: :D

LaTeX 2011.01.27
이전
1
다음
더보기
프로필사진

Divine Power

언리미티드 빠와!

  • 분류 전체보기 (1156)
    • thoughts (33)
    • 이것저것 (51)
    • LaTeX (67)
    • cygwin (7)
    • Mac (2)
    • Unix (165)
      • Arch Linux (62)
      • openSUSE (14)
      • CentOS (27)
      • Fedora Core 4 (101)
      • *Nix계통 팁 (65)
      • Gentoo (14)
      • Ubuntu (113)
      • Solaris10 (98)
      • coLinux (13)
      • 유닉스와 디렉토리 (34)
      • Open Solaris (16)
      • Debian (12)
    • 윈도우 (127)
      • 윈도우 '잘'쓰기 (77)
      • Windows Server (3)
      • 비스타 (6)
      • MFC (2)
    • Data science (2)
    • 서버관리 삽질 기록 (23)
    • 링크 (13)
    • 하드웨어 (11)
    • parkoz tips (7)
    • collect (67)
    • 병맛단편 (5)

Tag

하드웨어, 팁, pidgin-nateon, FedoraCore, archlinux, arch linux, opensuse, Linux, Gentoo, VIM, ubuntu, tikz, Python, 리눅스, Windows, Scrap, 설치, latex, 우분투, Solaris,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • SOHEE 서버 관계도
  • 첨부파일에 대해

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바