lib/ctioga2/graphics/styles/background.rb in ctioga2-0.12 vs lib/ctioga2/graphics/styles/background.rb in ctioga2-0.13
- old
+ new
@@ -93,10 +93,10 @@
BackgroundColorCmd =
Cmd.new('background', nil, '--background',
[ CmdArg.new('color-or-false') ]) do |plotmaker, color|
PlotStyle.current_plot_style(plotmaker).
- background.background_color = color
+ background.style.background_color = color
end
BackgroundColorCmd.describe("Background color for the plot",
<<"EOH", BackgroundGroup)
Sets the background color for the current (and subsequent?) plot.