Skip to content

Commit 05a89fa

Browse files
committed
update dataset docs
1 parent db3ee36 commit 05a89fa

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

lib/gnuplotrb/plot.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ module GnuplotRB
1919
# Range (xrange: 0..100), or String (yrange: '[0:100]').
2020
# * title - plot's title. Takes String (title: 'Some new plot').
2121
# * polar (parametric) - plot in polar or parametric space. Takes boolean (true).
22-
# * using - choose which columns of input data gnuplot should use. Takes String
23-
# (using: 'xtic(1):2:3'). If Daru::Dataframe passed one can use column names
24-
# instead of numbers (using: 'index:value1:summ' - value1 and summ here are column names).
2522
# * style_data - set style for plotting data. Takes string, possible values: histogram,
2623
# points, lines, linespoints, boxes etc. See gnuplot docs for more.
2724
# * term - select terminal used by gnuplot. Examples: { term: 'png' },

lib/gnuplotrb/staff/dataset.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ module GnuplotRB
44
# Dataset keeps control of Datablock or String (some math functions like
55
# this 'x*sin(x)' or filename) and options related to original dataset
66
# in gnuplot (with, title, using etc).
7+
#
8+
# === Options
9+
# Dataset options are explained in
10+
# {gnuplot docs}[http://www.gnuplot.info/docs_5.0/gnuplot.pdf](pp. 80-101).
11+
# Several common options:
12+
# * with - set plot style for dataset ('lines', 'points', 'impulses' etc)
13+
# * using - choose which columns of input data gnuplot should use. Takes String
14+
# (using: 'xtic(1):2:3'). If Daru::Dataframe passed one can use column names
15+
# instead of numbers (using: 'index:value1:summ' - value1 and summ here are column names).
16+
# * linewidth (lw) - integer line width
17+
# * dashtype (dt) - takes pattern with dash style. Examples: '.. ', '-- ', '.- '.
18+
# * pointtype (pt) - takes integer number of point type (works only when :with option is set to
19+
# 'points'). One can call Terminal::test(term_name)
20+
# or Terminal#test in order to see which point types are supported by terminal.
721
class Dataset
822
include Plottable
923
##

0 commit comments

Comments
 (0)