~ubuntu-branches/ubuntu/oneiric/ctioga2/oneiric

« back to all changes in this revision

Viewing changes to lib/ctioga2/graphics/styles/sets.rb

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-01-24 21:36:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110124213606-9ettx0ugl83z0bzp
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# carrays.rb: 'circular arrays'
 
2
# copyright (c) 2009 by Vincent Fourmond
 
3
  
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2 of the License, or
 
7
# (at your option) any later version.
 
8
  
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details (in the COPYING file).
 
13
 
 
14
require 'ctioga2/utils'
 
15
require 'ctioga2/log'
 
16
 
 
17
# This module contains all the classes used by ctioga
 
18
module CTioga2
 
19
 
 
20
  Version::register_svn_info('$Revision: 161 $', '$Date: 2010-08-03 12:07:49 +0200 (Tue, 03 Aug 2010) $')
 
21
 
 
22
  module Graphics
 
23
 
 
24
    module Styles
 
25
 
 
26
      # Various arrays and hashes suitable for use with CircularArray and
 
27
      # CurveStyleFactory
 
28
      module Sets
 
29
        include Tioga::FigureConstants
 
30
 
 
31
        ColorSets = { 
 
32
          "default" => 
 
33
          [Red, Green, Blue, Cyan, Magenta, Orange],
 
34
          "pastel1" => 
 
35
          [MediumSeaGreen, RoyalBlue, Pumpkin, DarkChocolate, Lilac, Crimson],
 
36
          "colorblind" => 
 
37
          [BrightBlue, Goldenrod, Coral, Lilac, FireBrick, RoyalPurple],
 
38
          "gradient1" => 
 
39
          [DarkMagenta, DarkGreen, OrangeRed, DarkRed, DarkBlue ],
 
40
          "gradient2" => 
 
41
          [LightPlum, PaleGreen, Gold, RedBrown, SkyBlue ],
 
42
 
 
43
        }
 
44
 
 
45
        MarkerSets = { 
 
46
          "default" => 
 
47
          [Bullet, TriangleUp, Square, Plus, Times],
 
48
          "open" => 
 
49
          [BulletOpen, TriangleUpOpen, SquareOpen, PlusOpen, TimesOpen],
 
50
        }
 
51
 
 
52
        LineWidthSets = {
 
53
          'default' => [1.0]
 
54
        }
 
55
 
 
56
        XAxisSets = {
 
57
          'default' => ['x']
 
58
        }
 
59
 
 
60
        YAxisSets = {
 
61
          'default' => ['y']
 
62
        }
 
63
 
 
64
        LineStyleSets = {
 
65
          'default' => [ LineStyles::Solid,
 
66
                         LineStyles::Dots,
 
67
                         LineStyles::Dashes,
 
68
                         LineStyles::Small_Dots,
 
69
                         LineStyles::Dot_Long_Dash,
 
70
                         LineStyles::Dash_Dot_Dot ]
 
71
        }
 
72
      
 
73
      end
 
74
    end
 
75
  end
 
76
end
 
77