Skip to content

Commit 53c0bcd

Browse files
committed
Add Plot#scale_x and #scale_y
1 parent cd6244c commit 53c0bcd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/nyaplot/plot.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ class Plot
3434
# @return [Numeric] the angle to rotate x label (radian)
3535
# @!attribute rotate_y_label
3636
# @return [Numeric] the angle to rotate y label (radian)
37+
# @!attribute x_scale
38+
# @return [String] the type of scale ("linear", "log" and "pow" are supported.)
39+
# @!attribute y_scale
40+
# @return [String] the type of scale ("linear", "log" and "pow" are supported.)
3741
define_properties(:diagrams, :filter)
38-
define_group_properties(:options, [:width, :height, :margin, :xrange, :yrange, :x_label, :y_label, :bg_color, :grid_color, :legend, :legend_width, :legend_options, :zoom, :rotate_x_label, :rotate_y_label])
42+
define_group_properties(:options, [:width, :height, :margin, :xrange, :yrange, :x_label, :y_label, :bg_color, :grid_color, :legend, :legend_width, :legend_options, :zoom, :rotate_x_label, :rotate_y_label, :x_scale, :y_scale])
3943

4044
def initialize(&block)
4145
init_properties

0 commit comments

Comments
 (0)