Skip to content

Commit 70374cf

Browse files
committed
fix typo in multiplot docs
1 parent bec4c21 commit 70374cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/gnuplotrb/multiplot.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def plot(term = nil, multiplot_part: false, **options)
6767
# @param position [Integer] position of plot which you need to update
6868
# (by default first plot is updated)
6969
# @param options [Hash] options to set into updated plot
70-
# @return [Multiplot] - self
70+
# @return [Multiplot] self
7171
# @yieldparam plot [Plot, Splot] a new plot
7272
# @yieldreturn [Plot, Splot] changed plot
7373
# @example
@@ -86,7 +86,7 @@ def update_plot(position = 0, **options)
8686
##
8787
# Destructive version of #update_plot.
8888
#
89-
# @return [Multiplot] - self
89+
# @return [Multiplot] self
9090
# @example
9191
# Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
9292
# mp.update_plot!(title: 'Sin(x) and Exp(x)') { |sinx| sinx.add!('exp(x)') }
@@ -107,7 +107,7 @@ def update_plot!(position = 0, **options)
107107
# @param position [Integer] position of plot which you need to replace
108108
# (by default first plot is replace)
109109
# @param plot [Plot, Splot] replacement
110-
# @return [Multiplot] - self
110+
# @return [Multiplot] self
111111
# @example
112112
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
113113
# mp_with_replaced_plot = mp.replace_plot(Plot.new('exp(x)', title: 'exp instead of sin'))
@@ -121,7 +121,7 @@ def replace_plot(position = 0, plot)
121121
##
122122
# Destructive version of #replace_plot.
123123
#
124-
# @return [Multiplot] - self
124+
# @return [Multiplot] self
125125
# @example
126126
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
127127
# mp.replace_plot!(Plot.new('exp(x)', title: 'exp instead of sin'))
@@ -141,7 +141,7 @@ def replace_plot!(position = 0, plot)
141141
# @param position [Integer] position of plot which you need to replace
142142
# (by default first plot is replace)
143143
# @param plots [Sequence of Plot or Splot] plots you want to add
144-
# @return [Multiplot] - self
144+
# @return [Multiplot] self
145145
# @example
146146
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
147147
# enlarged_mp = mp.add_plots(Plot.new('exp(x)')).layout([3,1])
@@ -158,7 +158,7 @@ def add_plots(*plots)
158158
##
159159
# Destructive version of #add_plots.
160160
#
161-
# @return [Multiplot] - self
161+
# @return [Multiplot] self
162162
# @example
163163
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
164164
# mp.add_plots!(Plot.new('exp(x)')).layout([3,1])
@@ -178,7 +178,7 @@ def add_plots!(*plots)
178178
#
179179
# @param position [Integer] position of plot which you need to remove
180180
# (by default last plot is removed)
181-
# @return [Multiplot] - self
181+
# @return [Multiplot] self
182182
# @example
183183
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
184184
# mp_with_only_cos = mp.remove_plot(0)
@@ -192,7 +192,7 @@ def remove_plot(position = -1)
192192
##
193193
# Destructive version of #remove_plot.
194194
#
195-
# @return [Multiplot] - self
195+
# @return [Multiplot] self
196196
# @example
197197
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
198198
# mp.remove_plot!(0)

0 commit comments

Comments
 (0)