元編程參考文件

筆記本輸出

12 個節點

本頁內容 12

圖表

函數

A chart of one or more series, drawn by the page.

簽名
圖表 -> Notebook Chart
    種類: 文字
    標題: 文字
    資料系列: Notebook Series 陣列
    X 軸標籤: 文字
    Y 軸標籤: 文字
NotebookChart Chart(
    string kind,
    string title,
    NotebookSeries[] series,
    string xLabel = "",
    string yLabel = "")

參數

名稱型別預設值說明
種類文字—line, scatter, bar, area or histogram.
標題文字—
資料系列Notebook Series 陣列—
X 軸標籤文字—
Y 軸標籤文字—

返回

結果Notebook Chart
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

程式碼

函數

Show source code.

簽名
程式碼(程式碼: 文字, 語言: 文字) -> Notebook Code
NotebookCode Code(string code, string language = "")

參數

名稱型別預設值說明
程式碼文字—
語言文字—For highlighting: csharp, python, json…; empty for none.

返回

結果Notebook Code
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

下載

函數

Offer a file for download.

簽名
下載(路徑: 文字, 檔名: 文字) -> Notebook Download
NotebookDownload Download(string path, string fileName = "")

參數

名稱型別預設值說明
路徑文字—
檔名文字—

返回

結果Notebook Download
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

HTML

函數

Show an HTML fragment.

簽名
HTML(HTML: 文字) -> Notebook Html
NotebookHtml Html(string html)

參數

名稱型別預設值說明
HTML文字—

返回

結果Notebook Html
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

HTML 頁面

函數

Show a whole HTML page, in a frame of its own.

簽名
HTML 頁面(HTML: 文字) -> Notebook Html Page
NotebookHtmlPage HtmlPage(string html)

參數

名稱型別預設值說明
HTML文字—

返回

結果Notebook Html Page
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

折線圖

函數

A line chart of one run of numbers.

簽名
折線圖(標題: 文字, X: 數字陣列, Y: 數字陣列) -> Notebook Chart
NotebookChart LineChart(string title, double[] x, double[] y)

參數

名稱型別預設值說明
標題文字—
X數字陣列—
Y數字陣列—

返回

結果Notebook Chart
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

Markdown 文字

函數

Show text as Markdown.

簽名
Markdown 文字(文字: 文字) -> Notebook Markdown
NotebookMarkdown Markdown(string text)

參數

名稱型別預設值說明
文字文字—

返回

結果Notebook Markdown
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

圖片

函數

Show a picture file with a caption.

簽名
圖片(路徑: 文字, 標題: 文字) -> Notebook Picture
NotebookPicture Picture(string path, string caption = "")

參數

名稱型別預設值說明
路徑文字—
標題文字—

返回

結果Notebook Picture
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

繪製函數

函數

A line chart of a function, sampled across a range: what to return to show how something varies, without building the numbers first.

簽名
繪製函數 -> Notebook Chart
    標題: 文字
    起點: 數字
    終點: 數字
    函數: Func<數字, 數字>
    樣本: 整數
    X 軸標籤: 文字
    Y 軸標籤: 文字
NotebookChart PlotFunction(
    string title,
    double from,
    double to,
    Func<double, double> function,
    int samples = 101,
    string xLabel = "",
    string yLabel = "")

參數

名稱型別預設值說明
標題文字—
起點數字—
終點數字—
函數Func<數字, 數字>—The function to draw - a Function graph from a number to a number, made with Edit Function on this pin.
樣本整數101How many points to draw it with, from 2 to 2000.
X 軸標籤文字—
Y 軸標籤文字—

返回

結果Notebook Chart
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

帶參數繪製

函數

A line chart of a function of a number and a parameter, sampled across a range with the parameter held: what to return when an input moves the curve, such as a slider setting where its peak is.

簽名
帶參數繪製 -> Notebook Chart
    標題: 文字
    起點: 數字
    終點: 數字
    參數: 數字
    函數: Func<數字, 數字, 數字>
    樣本: 整數
    X 軸標籤: 文字
    Y 軸標籤: 文字
NotebookChart PlotWithParameter(
    string title,
    double from,
    double to,
    double parameter,
    Func<double, double, double> function,
    int samples = 101,
    string xLabel = "",
    string yLabel = "")

參數

名稱型別預設值說明
標題文字—
起點數字—
終點數字—
參數數字—
函數Func<數字, 數字, 數字>—The function to draw, of the sampled number and the parameter - a Function graph made with Edit Function on this pin.
樣本整數101How many points to draw it with, from 2 to 2000.
X 軸標籤文字—
Y 軸標籤文字—

返回

結果Notebook Chart

備註

The parameter is passed rather than stored and read back because the order a Function graph runs its unconnected nodes in is not defined: a data member set in the same function as the chart might be set after the chart has already been sampled.

所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

散點圖

函數

A scatter chart of points.

簽名
散點圖(標題: 文字, X: 數字陣列, Y: 數字陣列) -> Notebook Chart
NotebookChart ScatterChart(string title, double[] x, double[] y)

參數

名稱型別預設值說明
標題文字—
X數字陣列—
Y數字陣列—

返回

結果Notebook Chart
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本

資料系列

函數

A named run of numbers for NotebookOutputs.Chart.

簽名
資料系列 -> Notebook Series
    名稱: 文字
    X: 數字陣列
    Y: 數字陣列
NotebookSeries Series(string name, double[] x, double[] y)

參數

名稱型別預設值說明
名稱文字—
X數字陣列—Empty when only the order of the values matters.
Y數字陣列—

返回

結果Notebook Series
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
筆記本輸出
所屬包
元編程筆記本