前の画面〕 〔クリックポイント〕 〔最新の一覧〕 〔全て読んだことにする〕〔全て読んだことにして終了〕 〔終了

943 re(12):pgnuplot(角藤さん版)での日本語表示について
2005/8/30(火)17:43 - you - gw.j-phone.com - 682 hit(s)

引用する
現在のパスワード


すみません、書きもれです。

plotコマンドの後に、set output も記述しております。

---------------------------------------------------------------------------------
3.perlからパイプ経由で以下のソースを記述
  【ソース】
     $gnuplot='../gnuplot/pgnuplot';
     open (GP, "|$gnuplot") or die "no gnuplot";
     print GP << "TST";

     set term png transparent size 500,400 font "c:/winnt/fonts/msgothic.ttc" 7
   @ set title "日本"

   A set output "$output_png"
     plot sin(x)
     set output
---------------------------------------------------------------------------------
  【tst.txtソース(コマンドプロンプトから >wgnuplot "c:/tst.txt")】
   set term png font "c:/winnt/fonts/msgothic.ttc"
   set title "日本"
   set output "c:/tst.png"
   plot sin(x)
   set output
---------------------------------------------------------------------------------

ところで、set titleの前にset output "出力ファイル" を記述しないと、
実行後のPNGファイが出力されないようです。
上記3のソースで、@とAを入れ替えたら、
set title "日本" でもPNGファイルが作成されるようになりました。
(3のソースのままだと、PNGファイルさえも作成されない)
ただ、PNGファイルが作成されても、日本語を通すと中身は空っぽですが。。。



〔ツリー構成〕

【922】 pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)16:10 you (1057)
┣【923】 re(1):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)16:27 kakuto (229)
┣【925】 re(2):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)16:42 you (333)
┣【926】 re(1):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)17:48 竹の (471)
┣【927】 re(2):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)18:37 you (1266)
┣【928】 re(3):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)18:48 竹の (851)
┣【929】 re(4):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)19:12 you (396)
┣【930】 re(5):pgnuplot(角藤さん版)での日本語表示について 2005/8/29(月)20:26 竹の (1918)
┣【932】 re(6):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)10:15 you (1626)
┣【933】 re(7):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)11:18 you (138)
┣【934】 re(8):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)12:40 you (649)
┣【935】 re(9):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)13:10 竹の (461)
┣【936】 re(7):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)13:15 竹の (447)
┣【937】 re(8):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)14:08 you (314)
┣【938】 re(9):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)15:50 you (613)
┣【940】 re(10):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)16:44 竹の (450)
┣【941】 re(11):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)17:23 you (2018)
┣【942】 re(12):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)17:41 竹の (415)
┣【943】 re(12):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)17:43 you (1263)
┣【944】 re(13):pgnuplot(角藤さん版)での日本語表示について 2005/8/30(火)18:32 you (1375)

前の画面〕 〔クリックポイント〕 〔最新の一覧〕 〔全て読んだことにする〕〔全て読んだことにして終了〕 〔終了

※ 『クリックポイント』とは一覧上から読み始めた地点を指し、ツリー上の記事を巡回しても、その位置に戻ることができます.