@@ -67,7 +67,7 @@ def plot(term = nil, multiplot_part: false, **options)
67
67
# @param position [Integer] position of plot which you need to update
68
68
# (by default first plot is updated)
69
69
# @param options [Hash] options to set into updated plot
70
- # @return [Multiplot] - self
70
+ # @return [Multiplot] self
71
71
# @yieldparam plot [Plot, Splot] a new plot
72
72
# @yieldreturn [Plot, Splot] changed plot
73
73
# @example
@@ -86,7 +86,7 @@ def update_plot(position = 0, **options)
86
86
##
87
87
# Destructive version of #update_plot.
88
88
#
89
- # @return [Multiplot] - self
89
+ # @return [Multiplot] self
90
90
# @example
91
91
# Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
92
92
# mp.update_plot!(title: 'Sin(x) and Exp(x)') { |sinx| sinx.add!('exp(x)') }
@@ -107,7 +107,7 @@ def update_plot!(position = 0, **options)
107
107
# @param position [Integer] position of plot which you need to replace
108
108
# (by default first plot is replace)
109
109
# @param plot [Plot, Splot] replacement
110
- # @return [Multiplot] - self
110
+ # @return [Multiplot] self
111
111
# @example
112
112
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
113
113
# 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)
121
121
##
122
122
# Destructive version of #replace_plot.
123
123
#
124
- # @return [Multiplot] - self
124
+ # @return [Multiplot] self
125
125
# @example
126
126
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
127
127
# mp.replace_plot!(Plot.new('exp(x)', title: 'exp instead of sin'))
@@ -141,7 +141,7 @@ def replace_plot!(position = 0, plot)
141
141
# @param position [Integer] position of plot which you need to replace
142
142
# (by default first plot is replace)
143
143
# @param plots [Sequence of Plot or Splot] plots you want to add
144
- # @return [Multiplot] - self
144
+ # @return [Multiplot] self
145
145
# @example
146
146
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
147
147
# enlarged_mp = mp.add_plots(Plot.new('exp(x)')).layout([3,1])
@@ -158,7 +158,7 @@ def add_plots(*plots)
158
158
##
159
159
# Destructive version of #add_plots.
160
160
#
161
- # @return [Multiplot] - self
161
+ # @return [Multiplot] self
162
162
# @example
163
163
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
164
164
# mp.add_plots!(Plot.new('exp(x)')).layout([3,1])
@@ -178,7 +178,7 @@ def add_plots!(*plots)
178
178
#
179
179
# @param position [Integer] position of plot which you need to remove
180
180
# (by default last plot is removed)
181
- # @return [Multiplot] - self
181
+ # @return [Multiplot] self
182
182
# @example
183
183
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
184
184
# mp_with_only_cos = mp.remove_plot(0)
@@ -192,7 +192,7 @@ def remove_plot(position = -1)
192
192
##
193
193
# Destructive version of #remove_plot.
194
194
#
195
- # @return [Multiplot] - self
195
+ # @return [Multiplot] self
196
196
# @example
197
197
# mp = Multiplot.new(Plot.new('sin(x)'), Plot.new('cos(x)'), layout: [2,1])
198
198
# mp.remove_plot!(0)
0 commit comments