# elements.rb: all drawable objects # copyright (c) 2009 by Vincent Fourmond # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details (in the COPYING file). require 'ctioga2/graphics/types' require 'ctioga2/graphics/styles' require 'ctioga2/graphics/elements/element' require 'ctioga2/graphics/elements/plot-elements' require 'ctioga2/graphics/elements/containers' require 'ctioga2/graphics/elements/redirecting-container' require 'ctioga2/graphics/elements/subplot' require 'ctioga2/graphics/elements/region' require 'ctioga2/graphics/elements/gradient-region' require 'ctioga2/graphics/elements/curve2d' require 'ctioga2/graphics/elements/histogram' require 'ctioga2/graphics/elements/parametric2d' require 'ctioga2/graphics/elements/xyz-map' require 'ctioga2/graphics/elements/xyz-contour' require 'ctioga2/graphics/elements/primitive' require 'ctioga2/graphics/elements/tangent' require 'ctioga2/graphics/elements/style-lists' require 'ctioga2/graphics/elements/contour' module CTioga2 module Graphics # Now, various commands pertaining to various drawables PlotCoordinatesGroup = CmdGroup.new('coordinates', "Plot coordinates", "Plot coordinates", 2) PlotMarginCommand = Cmd.new("margin",nil,"--margin", [ CmdArg.new('float') ]) do |plotmaker, margin| plotmaker.root_object.current_plot.style.plot_margin = margin end PlotMarginCommand.describe("Leaves a margin around data points", <