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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
Ruby/PGPLOT ver 0.1.3 by Masahiro TANAKA 2006-12-13
=
* PGPLOTRubyȤγĥ饤֥ꡣ
= ɬפʤ
* PGPLOT ver 5.2.x
(http://astro.caltech.edu/~tjp/pgplot/)
* PGPLOTΥɥ饤ФȤ饤֥ (ɬפ˱):
** X11饤֥
** PNG饤֥
** GrWinե饤֥ for MS-Windows (CygwinǤΤưǧ)
(http://spdg1.sci.shizuoka.ac.jp/grwinlib/)
* Ruby ver 1.8.x
* NArray ver 0.5.9
(http://www.ruby-lang.org/en/raa-list.rhtml?name=NArray)
= ȡˡ
* PGPLOT ȡ
- FORTRAN77ɬפǤ (gfortranǤOK)
- C쥤ե饤֥(cpgplot)ɬפޤ
* Ruby, NArray ȡ
* Ruby/PGPLOT ȡ
- Ÿ
- ѥ롦ȡ:
ruby extconf.rb [ץ()]
make
make site-install
(ޤ make install)
- ruby extconf.rb Υץ:
--with-pgplot-include=path : cpgplot.hΥǥ쥯ȥꡣ
--with-pgplot-lib=path : PGPLOT饤֥Υǥ쥯ȥꡣ
--with-x11-dir=path : X11path
--with-grwin : for using GrWin (cygwin/mingw).
--with-sunws : PGPLOTSun WorkShopf77Ȥä
ѥ뤷硣ꤷʤg77
:
ruby extconf.rb --with-x11-dir=/usr/X11R6 \
--with-pgplot-include=/usr/local/pgplot \
--with-pgplot-lib=/usr/local/pgplot
= ˡ
* PGPLOTδĶѿ(csh)
setenv PGPLOT_DIR /usr/local/lib/pgplot/ # pgxwin_server, rgb.txt
setenv PGPLOT_FONT ${PGPLOT_DIR}/grfont.dat
setenv PGPLOT_DEV /xwin
* ĥ饤֥ɤˤ:
require "pgplot"
* ⥸塼̾`Pgplot'Ǥ⥸塼̾άȤ:
include Pgplot
* Pgplot⥸塼ΥåɤϡPGPLOTδؿƱ̾(ʸ)Ǥ
ץåȤϤˤ:
pgbeg('/xwin')
ܺ٤ PGPLOTΥޥ˥奢ȤƲ
ɬFORTRANǤƱǤϤޤ
㤦ؿΥꥹȤϡ"FuncUsage"Ȥեˤޤ
= ưǧ
* Ruby 1.8.5 (2006-08-25) [i686-linux]
* NArray 0.5.9
* gcc/gfortran 4.1.1 20060525 (Red Hat 4.1.1-1)
= ۾
RubyΤƱǤ
̵ݾڤǤ
= ռ
PGPLOTȯRubypgdemo۵Ĥä Tim Pearson
˴դޤRubyȯ˷Ȥäͤ˴դޤ
|