グラフ作成ライブラリNPlot

イメージ 1

グラフが作成できるBSDライクなライセンスのライブラリを発見しました!

ずっと探してたのに見つからなかったんですが,関係ないものを探してたらひょっこりと
現れてくれました。


.Net Framework用のライブラリです。
| ライセンスは独自のものですが,下の文字列をクレジットやドキュメントに
| 入れることを条件にバイナリのみの配布を認めていますので、
| ほぼBSDライセンスと同じ扱いで問題なさそうです。
| "This product includes software developed as
| part of the NPlot library project available
| from: http://www.nplot.com/";
| (This product の部分は適宜変更してOKだそうです)
[追記]現在、バージョンは0.9.10.0です。0.9.9.2 => 0.9.10.0 の変更の際に、
ライセンスがBSDライセンスに変更された模様です。


とりあえずちょっと試してみたのでスクリーンショットを載せておきます。
|バージョンは現在の最新版と思われる 0.9.9.2 で試しました。
[追記]現在、最新バージョンは0.9.10.0です。

ソースは↓(VC# 2005 Expressで作成しました。)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace nplot_practice {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
NPlot.PointPlot pointPlot1 = new NPlot.PointPlot();
pointPlot1.DataSource = new int { 3, 1, 2, 3, 4, 3, 5, 2, 1, 1 };
this.plotSurface2D1.Add(pointPlot1);

NPlot.LinePlot linePlot1 = new NPlot.LinePlot();
// Excelの散布図のような使い方もできる
// ☆を描いてみました
linePlot1.AbscissaData = new int
{ 1, 5, 2, 3, 4, 1}; // 横軸
linePlot1.OrdinateData = new int[] { 3, 3, 1, 4, 1, 3}; // 縦軸
this.plotSurface2D1.Add(linePlot1);
this.plotSurface2D1.Refresh();
}
}
}




もっちーの小部屋 自作のソフトを公開してます。
http://www.geocities.jp/mocchi_2003/index.html