Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/gnuplot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/plothistogram.md')
-rw-r--r--doc/plothistogram.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/plothistogram.md b/doc/plothistogram.md
new file mode 100644
index 0000000..ac1d06a
--- /dev/null
+++ b/doc/plothistogram.md
@@ -0,0 +1,16 @@
+<a name="gnuplot.histogram.dok"></a>
+## Histograms ##
+
+Given a tensor, the distribution of values can be plotted using
+`gnuplot.hist` function.
+
+<a name="gnuplot.hist"></a>
+### gnuplot.hist(x, [nbins, min, max]) ###
+
+Plot the histogram of values in `N-D` tensor `x`, optionally using `nbins`
+number of bins and only using values between `min` and `max`.
+
+```lua
+gnuplot.hist(torch.randn(100000),100)
+```
+![](plot_hist.png)