lib/ctioga2/graphics/styles/plot.rb in ctioga2-0.4 vs lib/ctioga2/graphics/styles/plot.rb in ctioga2-0.5
- old
+ new
@@ -17,11 +17,11 @@
require 'ctioga2/graphics/coordinates'
# This module contains all the classes used by ctioga
module CTioga2
- Version::register_svn_info('$Revision: 370 $', '$Date: 2012-12-28 17:40:18 +0100 (Fri, 28 Dec 2012) $')
+ Version::register_svn_info('$Revision: 432 $', '$Date: 2013-08-23 19:06:36 +0200 (Fri, 23 Aug 2013) $')
module Graphics
module Styles
@@ -469,35 +469,35 @@
EOH
X2Command =
Cmd.new('x2', nil, '--x2', []) do |plotmaker|
plotmaker.interpreter.
- run_commands("xaxis(top)\naxis-style(top,decoration=full)")
+ run_commands("xaxis top\naxis-style top /decoration=full")
end
X2Command.describe("Switches to top axis for subsequent curves",
<<"EOH", AxisGroup)
Switches to using the top axis for X axis for the subsequent curves,
and turns on full decoration for the right axis. Shortcut for:
-# xaxis(top)
-# axis-style(top,decoration=full)
+# xaxis top
+# axis-style top /decoration=full
EOH
Y2Command =
Cmd.new('y2', nil, '--y2', []) do |plotmaker|
plotmaker.interpreter.
- run_commands("yaxis(right)\naxis-style(right,decoration=full)")
+ run_commands("yaxis right\naxis-style right /decoration=full")
end
Y2Command.describe("Switches to right axis for subsequent curves",
<<"EOH", AxisGroup)
Switches to using the right axis for Y axis for the subsequent curves,
and turns on full decoration for the right axis. Shortcut for:
-# yaxis(right)
-# axis-style(right,decoration=full)
+# yaxis right
+# axis-style right /decoration=full
EOH
NewZAxisCommand =
Cmd.new('new-zaxis', nil, '--new-zaxis',
[
@@ -527,17 +527,18 @@
Commands::make_alias_for_option 'label-style', 'alignment', 'align', true
LabelStyleCommand.describe("Sets the style of the given label",
<<"EOH", AxisGroup)
Sets the style of the given label (see the type {type: label} for more
-information).
+information). See {command: define-text-style} for detailed information
+about the meaning of the options.
The option text permits to also set the text of the label (does not
work for ticks).
For tick labels, setting the color option also sets the color for the
lines of the corresponding axis. If you don't want that, you can
-override the color using the /stroke_color option of
+override the color using the @stroke-color@ option of
{command: axis-style}. This will only work with Tioga version 1.11 or
greater.
EOH