File: ctiogarc.rb

package info (click to toggle)
ctioga 1.10-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,052 kB
  • ctags: 953
  • sloc: ruby: 9,306; sh: 504; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
def ctioga_init(t)
  # Uncomment this option to set the output dir to other than the current
  # t.save_dir = "dir"
  
  # We set the aspect ratio for everything to be 2
  t.set_aspect_ratio(2)

  # Here, we tweak a bit ctioga's internals: we set @viewer to 'xpdf',
  # meaning that ctioga will launch automatically xpdf at the end of the plot:
  @viewer = "xpdf"
end

# Remember that the function ctioga_default will be executed only if it
# is in a configuration file, that is .ctiogarc or $HOME/.ctiogarc but
# not when included with --include.
def ctioga_default
  # Style specification have to be in this function, they would not be
  # taken into account in ctioga_init

  # turns markers on by default:
  @markers.reset
  # The following would set markers to Bullets
  # @markers.set_static_value(Tioga::FigureConstants::Bullet)
end