tioga 1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. data/Tioga_README +372 -0
  2. data/lgpl.txt +504 -0
  3. data/split/Dtable/defs.h +33 -0
  4. data/split/Dtable/dtable.c +1928 -0
  5. data/split/Dtable/dtable_intern.h +144 -0
  6. data/split/Dtable/dvector.h +61 -0
  7. data/split/Dtable/extconf.rb +4 -0
  8. data/split/Dtable/include/dtable.h +35 -0
  9. data/split/Dtable/lib/Dtable_extras.rb +90 -0
  10. data/split/Dtable/namespace.h +47 -0
  11. data/split/Dtable/safe_double.h +104 -0
  12. data/split/Dtable/symbols.c +92 -0
  13. data/split/Dtable/symbols.h +52 -0
  14. data/split/Dvector/defs.h +33 -0
  15. data/split/Dvector/dvector.c +5486 -0
  16. data/split/Dvector/dvector_intern.h +142 -0
  17. data/split/Dvector/extconf.rb +4 -0
  18. data/split/Dvector/include/dvector.h +61 -0
  19. data/split/Dvector/lib/Dvector_extras.rb +328 -0
  20. data/split/Dvector/lib/Numeric_extras.rb +134 -0
  21. data/split/Dvector/namespace.h +47 -0
  22. data/split/Dvector/safe_double.h +104 -0
  23. data/split/Dvector/symbols.c +92 -0
  24. data/split/Dvector/symbols.h +52 -0
  25. data/split/Flate/defs.h +33 -0
  26. data/split/Flate/extconf.rb +19 -0
  27. data/split/Flate/flate.c +156 -0
  28. data/split/Flate/flate_intern.h +97 -0
  29. data/split/Flate/include/flate.h +98 -0
  30. data/split/Flate/namespace.h +47 -0
  31. data/split/Flate/safe_double.h +104 -0
  32. data/split/Flate/symbols.c +92 -0
  33. data/split/Flate/symbols.h +52 -0
  34. data/split/Function/defs.h +33 -0
  35. data/split/Function/dvector.h +61 -0
  36. data/split/Function/extconf.rb +4 -0
  37. data/split/Function/function.c +988 -0
  38. data/split/Function/joint_qsort.c +258 -0
  39. data/split/Function/lib/Function_extras.rb +44 -0
  40. data/split/Function/namespace.h +47 -0
  41. data/split/Function/safe_double.h +104 -0
  42. data/split/Function/symbols.c +92 -0
  43. data/split/Function/symbols.h +52 -0
  44. data/split/Tioga/axes.c +774 -0
  45. data/split/Tioga/defs.h +33 -0
  46. data/split/Tioga/dtable.h +35 -0
  47. data/split/Tioga/dvector.h +61 -0
  48. data/split/Tioga/extconf.rb +4 -0
  49. data/split/Tioga/figures.c +672 -0
  50. data/split/Tioga/figures.h +855 -0
  51. data/split/Tioga/flate.h +98 -0
  52. data/split/Tioga/init.c +524 -0
  53. data/split/Tioga/lib/Arcs_and_Circles.rb +64 -0
  54. data/split/Tioga/lib/ColorConstants.rb +274 -0
  55. data/split/Tioga/lib/Colorbars.rb +10 -0
  56. data/split/Tioga/lib/Colormaps.rb +105 -0
  57. data/split/Tioga/lib/Coordinate_Conversions.rb +194 -0
  58. data/split/Tioga/lib/Creating_Paths.rb +94 -0
  59. data/split/Tioga/lib/Doc.rb +91 -0
  60. data/split/Tioga/lib/Executive.rb +515 -0
  61. data/split/Tioga/lib/FigMkr.rb +2224 -0
  62. data/split/Tioga/lib/FigureConstants.rb +125 -0
  63. data/split/Tioga/lib/Figures_and_Plots.rb +268 -0
  64. data/split/Tioga/lib/Images.rb +278 -0
  65. data/split/Tioga/lib/Legends.rb +190 -0
  66. data/split/Tioga/lib/MarkerConstants.rb +122 -0
  67. data/split/Tioga/lib/Markers.rb +129 -0
  68. data/split/Tioga/lib/Page_Frame_Bounds.rb +567 -0
  69. data/split/Tioga/lib/Rectangles.rb +94 -0
  70. data/split/Tioga/lib/Shading.rb +100 -0
  71. data/split/Tioga/lib/Special_Paths.rb +307 -0
  72. data/split/Tioga/lib/Strokes.rb +129 -0
  73. data/split/Tioga/lib/TeX_Text.rb +454 -0
  74. data/split/Tioga/lib/TexPreamble.rb +358 -0
  75. data/split/Tioga/lib/Titles_and_Labels.rb +306 -0
  76. data/split/Tioga/lib/Transparency.rb +89 -0
  77. data/split/Tioga/lib/Using_Paths.rb +164 -0
  78. data/split/Tioga/lib/Utils.rb +74 -0
  79. data/split/Tioga/lib/X_and_Y_Axes.rb +749 -0
  80. data/split/Tioga/lib/irb_tioga.rb +122 -0
  81. data/split/Tioga/lib/tioga.rb +1 -0
  82. data/split/Tioga/lib/tioga_ui.rb +5 -0
  83. data/split/Tioga/lib/tioga_ui_cmds.rb +793 -0
  84. data/split/Tioga/makers.c +989 -0
  85. data/split/Tioga/mk_tioga_sty.rb +53 -0
  86. data/split/Tioga/namespace.h +47 -0
  87. data/split/Tioga/pdf_font_dicts.c +18253 -0
  88. data/split/Tioga/pdfcolor.c +486 -0
  89. data/split/Tioga/pdfcoords.c +505 -0
  90. data/split/Tioga/pdffile.c +342 -0
  91. data/split/Tioga/pdfimage.c +536 -0
  92. data/split/Tioga/pdfpath.c +914 -0
  93. data/split/Tioga/pdfs.h +229 -0
  94. data/split/Tioga/pdftext.c +443 -0
  95. data/split/Tioga/safe_double.h +104 -0
  96. data/split/Tioga/symbols.c +92 -0
  97. data/split/Tioga/symbols.h +52 -0
  98. data/split/Tioga/texout.c +380 -0
  99. data/split/defs.h +33 -0
  100. data/split/extconf.rb +107 -0
  101. data/split/mkmf2.rb +1612 -0
  102. data/split/namespace.h +47 -0
  103. data/split/safe_double.h +104 -0
  104. data/split/scripts/tioga +4 -0
  105. data/split/symbols.c +92 -0
  106. data/split/symbols.h +52 -0
  107. data/tests/dtable_test.data +6 -0
  108. data/tests/dvector_read_test.data +1 -0
  109. data/tests/dvector_test.data +101 -0
  110. data/tests/tc_Dtable.rb +221 -0
  111. data/tests/tc_Dvector.rb +791 -0
  112. data/tests/tc_FMkr.rb +162 -0
  113. data/tests/tc_Flate.rb +45 -0
  114. data/tests/tc_Function.rb +111 -0
  115. data/tests/ts_Tioga.rb +38 -0
  116. metadata +163 -0
@@ -0,0 +1,358 @@
1
+ # This file is automatically generated from Tioga/tioga.sty.in
2
+ # using the Tioga/mk_tioga_sty.rb script.
3
+ #
4
+ # Please do not modify this file directly as all changes would
5
+ # be lost !!
6
+
7
+ module Tioga
8
+ class FigureMaker
9
+ TEX_PREAMBLE = <<'End_of_preamble'
10
+ \makeatletter
11
+ % Here are some command to ease the use of pictures produced by Tioga
12
+ % within a LaTeX document.
13
+
14
+
15
+ % \tiogafigurefullpage[minwhitespace]{figurename}
16
+ %
17
+ % \tiogafigurefullpage shows a version of the picture scaled to fit the
18
+ % paper size minus the minwhitespace. The minwhitespace is the sum of
19
+ % the margins on both sides, top and bottom or left and right.
20
+ % The minwhitespace defaults to 2 inches.
21
+ %
22
+ \newcommand{\tiogafigurefullpage}[2][2in]{
23
+ \tiogafigurescaledtofit{#2}{\paperwidth - (#1)}{\paperheight - (#1)}}
24
+
25
+
26
+ % \tiogafigurescaledtofit{figurename}{maxwidth}{maxheight}
27
+ %
28
+ % \tiogafigurescaledtofit shows a version of the picture scaled to fit the
29
+ % given width and height while preserving the aspect ratio.
30
+ % The 1st arg is the base name for the pdf and txt files.
31
+ % The 2nd arg determines the maximum figure width.
32
+ % The 3rd arg determines the maximum figure height.
33
+ \newcommand{\tiogafigurescaledtofit}[3]{
34
+ \setkeys{Gin}{keepaspectratio=true}
35
+ \resizebox{#2}{#3}{\tiogafigureshow{#1}}}
36
+
37
+
38
+ % \tiogafigurescaled{figurename}{scalefactor}
39
+ %
40
+ % \tiogafigurescaled shows a scaled version of the picture
41
+ % The 1st arg is the base name for the pdf and txt files.
42
+ % The 2nd arg determines the scale.
43
+ \newcommand{\tiogafigurescaled}[2]{
44
+ \scalebox{#2}{\tiogafigureshow{#1}}}
45
+
46
+
47
+ % \tiogafigurescaledxy{figurename}{xscalefactor}{yscalefactor}
48
+ %
49
+ % \tiogafigurescaledxy shows a scaled version of the picture where you
50
+ % can use different scaling factors in the horizontal and vertical directions.
51
+ % The 1st arg is the base name for the pdf and txt files.
52
+ % The 2nd arg determines the horizontal scale.
53
+ % The 3rd arg determines the vertical scale.
54
+ \newcommand{\tiogafigurescaledxy}[3]{
55
+ \scalebox{#2}[#3]{\tiogafigureshow{#1}}}
56
+
57
+
58
+ % \tiogafiguresized{figurename}{figurewidth}{figureheight}
59
+ %
60
+ % \tiogafiguresized shows a scaled version of the picture, where you
61
+ % can specify the actual size you want. If either length is
62
+ % given as !, the one scale factor is used in both directions.
63
+ % The 1st arg is the base name for the pdf and txt files.
64
+ % The 2nd arg determines the figure width.
65
+ % The 3rd arg determines the figure height.
66
+ \newcommand{\tiogafiguresized}[3]{
67
+ \resizebox{#2}{#3}{\tiogafigureshow{#1}}}
68
+
69
+
70
+ % \tiogaprefix can be used to set a path for the figure pdf and txt files.
71
+ %
72
+ \newcommand{\tiogaprefix}{}
73
+ % The prefix is initialized to an empty string.
74
+ % To change it, use \renewcommand as in the following example:
75
+ % \renewcommand{\tiogaprefix}{plot_out/}
76
+
77
+
78
+ % \tiogafigurecentered{figurename}{targetwidth}{targetheight}
79
+ %
80
+ % \tiogafigurecentered displays an unscaled figure centered within
81
+ % a box of targetwidth *targetheight.
82
+ \newcommand{\tiogafigurecentered}[3]{
83
+ \vbox to #3{%
84
+ \vspace*{\fill}%
85
+ \hbox to #2{\hfill%
86
+ \tiogafigureshow{#1}%
87
+ \hspace*{\fill}}%
88
+ \vspace*{\fill}%
89
+ }}
90
+
91
+ % \tiogafigurecentereddebug{figurename}{targetwidth}{targetheight}
92
+ %
93
+ % \tiogafigurecentereddebug has the same effect as \tiogafigurecentered
94
+ % except that the figure is included in a \fbox, which makes it easier
95
+ % to track problems.
96
+ \newcommand{\tiogafigurecentereddebug}[3]{
97
+ \vbox to #3{%
98
+ \vspace*{\fill}%
99
+ \hbox to #2{\hfill%
100
+ \fbox{\tiogafigureshow{#1}}
101
+ \hspace*{\fill}}%
102
+ \vspace*{\fill}%
103
+ }}
104
+
105
+
106
+ % \tiogafigureshow{figurename}
107
+ %
108
+ % \tiogafigureshow shows the figure and the accompanying text.
109
+ % Inside a box, it first creates a picture that includes the pdf
110
+ % file with the graphics for the figure, then it includes the text.
111
+ % The \tiogaprefix is added at the start of the file names for both.
112
+ \newcommand{\tiogafigureshow}[1]{%
113
+ \mbox{\begin{picture}(0,0)(0,0)%
114
+ \put(0,0){\includegraphics{\tiogaprefix#1_figure.pdf}}%
115
+ \end{picture}%
116
+ \input{\tiogaprefix#1_figure.txt}}}
117
+
118
+ % Commands for text properties:
119
+ % Font size (two parameters)
120
+ % {sz}{line_sp}, 1st is size of font in points,
121
+ % 2nd is line spacing (not used by Tioga)
122
+ \newcommand\tiog@fontsize{{10.0}{10pt}}
123
+ \newcommand\settiogafontsize[2][10pt]{\renewcommand\tiog@fontsize{{#2}{#1}}}
124
+
125
+ % Font family
126
+ % \rmdefault, \sfdefault, \ttdefault -- roman, sans serif, typewriter
127
+ \newcommand\tiog@fontfamily{\rmdefault}
128
+ \newcommand\settiogafontfamily[1]{\renewcommand\tiog@fontfamily{#1}}
129
+
130
+ % Font series
131
+ % \mddefault, \bfdefault -- medium, bold
132
+ \newcommand\tiog@fontseries{\mddefault}
133
+ \newcommand\settiogafontseries[1]{\renewcommand\tiog@fontseries{#1}}
134
+
135
+ % Font shape
136
+ % \updefault, \itdefault, \sldefault, \scdefault -- upright, italic, slant, small caps
137
+ \newcommand\tiog@fontshape{\updefault}
138
+ \newcommand\settiogafontshape[1]{\renewcommand\tiog@fontshape{#1}}
139
+
140
+ % \SetTiogaFontInfo is called from within the figure.txt file with the TeX
141
+ % for the text of the figure. Do not modify this function directly, it
142
+ % is way better to use the previous settiogafont* commands.
143
+ \newcommand\SetTiogaFontInfo{%
144
+ \expandafter\fontsize\tiog@fontsize%
145
+ \fontfamily{\tiog@fontfamily}%
146
+ \fontseries{\tiog@fontseries}%
147
+ \fontshape{\tiog@fontshape}%
148
+ }
149
+
150
+ % This command is used inside the _figure.txt files. You can use it directly
151
+ % as well, if you really want to make sure you get the same fonts. But I
152
+ % personnaly doubt it would really come in useful ;-)...
153
+ \newcommand\tiogasetfont{\reset@font\SetTiogaFontInfo%
154
+ \selectfont}%
155
+ \makeatother
156
+ End_of_preamble
157
+ COLOR_PREAMBLE = <<'End_of_preamble'
158
+ % Color constants, generated from ColorConstants.rb
159
+ \definecolor{LightMustard}{rgb}{1.000,0.800,0.400}
160
+ \definecolor{Chiffon}{rgb}{0.980,0.980,0.824}
161
+ \definecolor{MistyRose}{rgb}{1.000,0.894,0.884}
162
+ \definecolor{FireBrick}{rgb}{0.698,0.132,0.132}
163
+ \definecolor{SalmonRed}{rgb}{1.000,0.400,0.400}
164
+ \definecolor{SteelBlue}{rgb}{0.275,0.510,0.705}
165
+ \definecolor{LightYellow}{rgb}{1.000,1.000,0.880}
166
+ \definecolor{DarkKhaki}{rgb}{0.740,0.716,0.420}
167
+ \definecolor{PaleVioletRed}{rgb}{0.860,0.440,0.576}
168
+ \definecolor{Grey}{rgb}{0.500,0.500,0.500}
169
+ \definecolor{BrickRed}{rgb}{0.645,0.000,0.129}
170
+ \definecolor{MediumPurple}{rgb}{0.576,0.440,0.860}
171
+ \definecolor{DarkSlateGrey}{rgb}{0.185,0.310,0.310}
172
+ \definecolor{RedOrange}{rgb}{0.800,0.200,0.000}
173
+ \definecolor{LightCoral}{rgb}{0.940,0.500,0.500}
174
+ \definecolor{LightSalmon}{rgb}{1.000,0.628,0.480}
175
+ \definecolor{Crimson}{rgb}{0.800,0.000,0.200}
176
+ \definecolor{OldLace}{rgb}{0.992,0.960,0.900}
177
+ \definecolor{GhostWhite}{rgb}{0.972,0.972,1.000}
178
+ \definecolor{Silver}{rgb}{0.752,0.752,0.752}
179
+ \definecolor{Linen}{rgb}{0.980,0.940,0.900}
180
+ \definecolor{DarkOrchid}{rgb}{0.600,0.196,0.800}
181
+ \definecolor{Pink}{rgb}{1.000,0.752,0.796}
182
+ \definecolor{Ivory}{rgb}{1.000,1.000,0.940}
183
+ \definecolor{Avocado}{rgb}{0.600,0.600,0.000}
184
+ \definecolor{Turquoise}{rgb}{0.250,0.880,0.815}
185
+ \definecolor{MediumVioletRed}{rgb}{0.780,0.084,0.520}
186
+ \definecolor{DeepSkyBlue}{rgb}{0.000,0.750,1.000}
187
+ \definecolor{SaddleBrown}{rgb}{0.545,0.270,0.075}
188
+ \definecolor{LightGrassGreen}{rgb}{0.400,1.000,0.400}
189
+ \definecolor{BurlyWood}{rgb}{0.870,0.720,0.530}
190
+ \definecolor{DarkGoldenrod}{rgb}{0.720,0.525,0.044}
191
+ \definecolor{Orchid}{rgb}{0.855,0.440,0.840}
192
+ \definecolor{Gray}{rgb}{0.500,0.500,0.500}
193
+ \definecolor{Smoke}{rgb}{0.950,0.950,0.950}
194
+ \definecolor{LightSlateGray}{rgb}{0.468,0.532,0.600}
195
+ \definecolor{MediumBlue}{rgb}{0.000,0.000,0.804}
196
+ \definecolor{DarkSalmon}{rgb}{0.912,0.590,0.480}
197
+ \definecolor{PurpleBlue}{rgb}{0.400,0.200,0.800}
198
+ \definecolor{LawnGreen}{rgb}{0.488,0.990,0.000}
199
+ \definecolor{BlanchedAlmond}{rgb}{1.000,0.920,0.804}
200
+ \definecolor{WhiteSmoke}{rgb}{0.970,0.970,0.970}
201
+ \definecolor{Moccasin}{rgb}{1.000,0.894,0.710}
202
+ \definecolor{FloralWhite}{rgb}{1.000,0.980,0.940}
203
+ \definecolor{SandyBrown}{rgb}{0.956,0.644,0.376}
204
+ \definecolor{LightOliveGreen}{rgb}{0.600,0.800,0.600}
205
+ \definecolor{Chocolate}{rgb}{0.824,0.410,0.116}
206
+ \definecolor{PapayaWhip}{rgb}{1.000,0.936,0.835}
207
+ \definecolor{Honeydew}{rgb}{0.940,1.000,0.940}
208
+ \definecolor{AliceBlue}{rgb}{0.940,0.972,1.000}
209
+ \definecolor{Tan}{rgb}{0.824,0.705,0.550}
210
+ \definecolor{LightYellowGreen}{rgb}{0.800,0.800,0.200}
211
+ \definecolor{DarkLavender}{rgb}{0.400,0.200,0.600}
212
+ \definecolor{DarkSmoke}{rgb}{0.920,0.920,0.920}
213
+ \definecolor{Rose}{rgb}{1.000,0.400,0.600}
214
+ \definecolor{LightCrimson}{rgb}{0.864,0.080,0.235}
215
+ \definecolor{BrightBlue}{rgb}{0.000,0.400,1.000}
216
+ \definecolor{MediumSeaGreen}{rgb}{0.235,0.700,0.444}
217
+ \definecolor{Olive}{rgb}{0.500,0.500,0.000}
218
+ \definecolor{Gold}{rgb}{1.000,0.844,0.000}
219
+ \definecolor{SkyBlue}{rgb}{0.530,0.808,0.920}
220
+ \definecolor{LightSandyBrown}{rgb}{1.000,0.800,0.600}
221
+ \definecolor{Cyan}{rgb}{0.000,1.000,1.000}
222
+ \definecolor{Plum}{rgb}{0.868,0.628,0.868}
223
+ \definecolor{Khaki}{rgb}{0.940,0.900,0.550}
224
+ \definecolor{Azure}{rgb}{0.940,1.000,1.000}
225
+ \definecolor{Violet}{rgb}{0.932,0.510,0.932}
226
+ \definecolor{Magenta}{rgb}{1.000,0.000,1.000}
227
+ \definecolor{DarkPeriwinkle}{rgb}{0.400,0.400,1.000}
228
+ \definecolor{LightChartreuse}{rgb}{0.800,1.000,0.400}
229
+ \definecolor{LightGray}{rgb}{0.828,0.828,0.828}
230
+ \definecolor{CadetBlue}{rgb}{0.372,0.620,0.628}
231
+ \definecolor{YellowGreen}{rgb}{0.800,0.800,0.000}
232
+ \definecolor{DimGray}{rgb}{0.410,0.410,0.410}
233
+ \definecolor{GrayBlue}{rgb}{0.000,0.400,0.600}
234
+ \definecolor{Snow}{rgb}{1.000,0.980,0.980}
235
+ \definecolor{LightSlateGrey}{rgb}{0.468,0.532,0.600}
236
+ \definecolor{DarkGray}{rgb}{0.664,0.664,0.664}
237
+ \definecolor{PaleGoldenrod}{rgb}{0.932,0.910,0.668}
238
+ \definecolor{PurpleGray}{rgb}{0.600,0.600,0.800}
239
+ \definecolor{LemonChiffon}{rgb}{1.000,0.980,0.804}
240
+ \definecolor{Blue}{rgb}{0.000,0.000,1.000}
241
+ \definecolor{Yellow}{rgb}{1.000,1.000,0.000}
242
+ \definecolor{MediumGreen}{rgb}{0.000,0.600,0.000}
243
+ \definecolor{DarkSeaGreen}{rgb}{0.560,0.736,0.560}
244
+ \definecolor{SeaGreen}{rgb}{0.180,0.545,0.340}
245
+ \definecolor{LightOrchid}{rgb}{0.600,0.400,0.800}
246
+ \definecolor{Coral}{rgb}{1.000,0.498,0.312}
247
+ \definecolor{MustardSeed}{rgb}{0.800,0.600,0.000}
248
+ \definecolor{ForestGreen}{rgb}{0.132,0.545,0.132}
249
+ \definecolor{AntiqueWhite}{rgb}{0.980,0.920,0.844}
250
+ \definecolor{Teal}{rgb}{0.000,0.500,0.500}
251
+ \definecolor{Lilac}{rgb}{0.800,0.600,1.000}
252
+ \definecolor{DarkMagenta}{rgb}{0.545,0.000,0.545}
253
+ \definecolor{PeachPuff}{rgb}{1.000,0.855,0.725}
254
+ \definecolor{HotPink}{rgb}{1.000,0.410,0.705}
255
+ \definecolor{LightCyan}{rgb}{0.880,1.000,1.000}
256
+ \definecolor{BrightPink}{rgb}{1.000,0.400,0.800}
257
+ \definecolor{MediumSlateBlue}{rgb}{0.484,0.408,0.932}
258
+ \definecolor{DarkTurquoise}{rgb}{0.000,0.808,0.820}
259
+ \definecolor{RosyBrown}{rgb}{0.736,0.560,0.560}
260
+ \definecolor{SlateBlue}{rgb}{0.415,0.352,0.804}
261
+ \definecolor{LightSeaGreen}{rgb}{0.125,0.698,0.668}
262
+ \definecolor{DarkBlue}{rgb}{0.000,0.000,0.545}
263
+ \definecolor{OliveDrab}{rgb}{0.420,0.556,0.136}
264
+ \definecolor{GoldenBrown}{rgb}{0.600,0.400,0.000}
265
+ \definecolor{Beige}{rgb}{0.960,0.960,0.864}
266
+ \definecolor{WarmGray}{rgb}{0.678,0.660,0.562}
267
+ \definecolor{Maroon}{rgb}{0.500,0.000,0.000}
268
+ \definecolor{DarkPurpleBlue}{rgb}{0.400,0.000,0.800}
269
+ \definecolor{PowderBlue}{rgb}{0.690,0.880,0.900}
270
+ \definecolor{Lavender}{rgb}{0.900,0.900,0.980}
271
+ \definecolor{LightGreen}{rgb}{0.565,0.932,0.565}
272
+ \definecolor{DimGrey}{rgb}{0.410,0.410,0.410}
273
+ \definecolor{Cement}{rgb}{0.800,0.800,0.600}
274
+ \definecolor{MidnightBlue}{rgb}{0.098,0.098,0.440}
275
+ \definecolor{Saffron}{rgb}{1.000,0.800,0.000}
276
+ \definecolor{Green}{rgb}{0.000,0.500,0.000}
277
+ \definecolor{DarkGreen}{rgb}{0.000,0.392,0.000}
278
+ \definecolor{LightSteelBlue}{rgb}{0.690,0.770,0.870}
279
+ \definecolor{PaleGreen}{rgb}{0.596,0.985,0.596}
280
+ \definecolor{SoftYellow}{rgb}{1.000,1.000,0.400}
281
+ \definecolor{BlueGreen}{rgb}{0.000,0.600,0.400}
282
+ \definecolor{LightBlue}{rgb}{0.680,0.848,0.900}
283
+ \definecolor{DarkSlateBlue}{rgb}{0.284,0.240,0.545}
284
+ \definecolor{MediumOrange}{rgb}{1.000,0.400,0.000}
285
+ \definecolor{Red}{rgb}{1.000,0.000,0.000}
286
+ \definecolor{LightPlum}{rgb}{0.800,0.600,0.800}
287
+ \definecolor{Fuchsia}{rgb}{1.000,0.000,1.000}
288
+ \definecolor{CornflowerBlue}{rgb}{0.392,0.585,0.930}
289
+ \definecolor{NavajoWhite}{rgb}{1.000,0.870,0.680}
290
+ \definecolor{Seashell}{rgb}{1.000,0.960,0.932}
291
+ \definecolor{Aqua}{rgb}{0.000,1.000,1.000}
292
+ \definecolor{IndianRed}{rgb}{0.804,0.360,0.360}
293
+ \definecolor{DarkOliveGreen}{rgb}{0.332,0.420,0.185}
294
+ \definecolor{Lime}{rgb}{0.000,1.000,0.000}
295
+ \definecolor{Periwinkle}{rgb}{0.600,0.000,1.000}
296
+ \definecolor{Thistle}{rgb}{0.848,0.750,0.848}
297
+ \definecolor{Brown}{rgb}{0.648,0.165,0.165}
298
+ \definecolor{LightDullGreen}{rgb}{0.400,1.000,0.600}
299
+ \definecolor{DarkViolet}{rgb}{0.580,0.000,0.828}
300
+ \definecolor{MediumSpringGreen}{rgb}{0.000,0.980,0.604}
301
+ \definecolor{RoyalBlue}{rgb}{0.255,0.410,0.884}
302
+ \definecolor{DarkChocolate}{rgb}{0.400,0.200,0.000}
303
+ \definecolor{LightSienna}{rgb}{0.800,0.400,0.000}
304
+ \definecolor{Goldenrod}{rgb}{0.855,0.648,0.125}
305
+ \definecolor{Orange}{rgb}{1.000,0.648,0.000}
306
+ \definecolor{SlateGray}{rgb}{0.440,0.500,0.565}
307
+ \definecolor{Bisque}{rgb}{1.000,0.894,0.770}
308
+ \definecolor{LavenderBlue}{rgb}{0.400,0.200,1.000}
309
+ \definecolor{DarkRed}{rgb}{0.545,0.000,0.000}
310
+ \definecolor{Mauve}{rgb}{0.800,0.200,0.400}
311
+ \definecolor{Pumpkin}{rgb}{1.000,0.600,0.200}
312
+ \definecolor{Wheat}{rgb}{0.960,0.870,0.700}
313
+ \definecolor{Chartreuse}{rgb}{0.498,1.000,0.000}
314
+ \definecolor{LightGrey}{rgb}{0.828,0.828,0.828}
315
+ \definecolor{DodgerBlue}{rgb}{0.116,0.565,1.000}
316
+ \definecolor{MintCream}{rgb}{0.960,1.000,0.980}
317
+ \definecolor{Salmon}{rgb}{0.980,0.500,0.448}
318
+ \definecolor{DarkGrey}{rgb}{0.664,0.664,0.664}
319
+ \definecolor{LightTurquoise}{rgb}{0.200,1.000,0.800}
320
+ \definecolor{GreenYellow}{rgb}{0.680,1.000,0.185}
321
+ \definecolor{PaleTurquoise}{rgb}{0.688,0.932,0.932}
322
+ \definecolor{SpringGreen}{rgb}{0.000,1.000,0.498}
323
+ \definecolor{DarkSlateGray}{rgb}{0.185,0.310,0.310}
324
+ \definecolor{BlueViolet}{rgb}{0.540,0.170,0.888}
325
+ \definecolor{LightBrightGreen}{rgb}{0.000,0.800,0.200}
326
+ \definecolor{MediumOrchid}{rgb}{0.730,0.332,0.828}
327
+ \definecolor{RedBrown}{rgb}{0.800,0.400,0.200}
328
+ \definecolor{Cornsilk}{rgb}{1.000,0.972,0.864}
329
+ \definecolor{LightRose}{rgb}{1.000,0.600,0.800}
330
+ \definecolor{Gainsboro}{rgb}{0.864,0.864,0.864}
331
+ \definecolor{Navy}{rgb}{0.000,0.000,0.500}
332
+ \definecolor{Sienna}{rgb}{0.628,0.320,0.176}
333
+ \definecolor{DarkOrange}{rgb}{1.000,0.550,0.000}
334
+ \definecolor{Aquamarine}{rgb}{0.498,1.000,0.830}
335
+ \definecolor{Indigo}{rgb}{0.294,0.000,0.510}
336
+ \definecolor{LimeGreen}{rgb}{0.196,0.804,0.196}
337
+ \definecolor{Peru}{rgb}{0.804,0.520,0.248}
338
+ \definecolor{Tomato}{rgb}{1.000,0.390,0.280}
339
+ \definecolor{DeepPink}{rgb}{1.000,0.080,0.576}
340
+ \definecolor{Burgundy}{rgb}{0.600,0.000,0.200}
341
+ \definecolor{LightGold}{rgb}{0.800,0.800,0.400}
342
+ \definecolor{MediumTurquoise}{rgb}{0.284,0.820,0.800}
343
+ \definecolor{RoyalPurple}{rgb}{0.400,0.000,0.600}
344
+ \definecolor{GrassGreen}{rgb}{0.200,0.600,0.000}
345
+ \definecolor{DarkCyan}{rgb}{0.000,0.545,0.545}
346
+ \definecolor{LightSkyBlue}{rgb}{0.530,0.808,0.980}
347
+ \definecolor{OrangeRed}{rgb}{1.000,0.270,0.000}
348
+ \definecolor{SlateGrey}{rgb}{0.440,0.500,0.565}
349
+ \definecolor{DarkRoyalBlue}{rgb}{0.000,0.200,0.800}
350
+ \definecolor{Black}{rgb}{0.000,0.000,0.000}
351
+ \definecolor{LavenderBlush}{rgb}{1.000,0.940,0.960}
352
+ \definecolor{MediumAquamarine}{rgb}{0.400,0.804,0.668}
353
+ \definecolor{Purple}{rgb}{0.500,0.000,0.500}
354
+ \definecolor{White}{rgb}{1.000,1.000,1.000}
355
+
356
+ End_of_preamble
357
+ end
358
+ end
@@ -0,0 +1,306 @@
1
+ # Titles_and_Labels.rb
2
+
3
+ module Tioga
4
+
5
+ # These are the methods and attributes for doing plot titles and axis labels.
6
+
7
+ class Titles_and_Labels < Doc < FigureMaker
8
+
9
+ # If the _text_ argument is +nil+, then the current #title attribute is used instead.
10
+ # If the flag title_visible is +true+ and the text is not +nil+, then calls show_text
11
+ # with the text and the attributes controlling the appearance of the title (title_scale,
12
+ # title_shift, etc.).
13
+ def show_title(text = nil)
14
+ end
15
+
16
+ # If the _text_ argument is +nil+, then the current #xlabel attribute is used instead.
17
+ # If the flag xlabel_visible is +true+ and the text is not +nil+, then calls show_text
18
+ # with the text and the attributes controlling the appearance of the x label (xlabel_position,
19
+ # xlabel_scale, etc.).
20
+ def show_xlabel(text = nil)
21
+ end
22
+
23
+ # If the _text_ argument is +nil+, then the current #ylabel attribute is used instead.
24
+ # If the flag ylabel_visible is +true+ and the text is not +nil+, then calls show_text
25
+ # with the text and the attributes controlling the appearance of the y label (ylabel_position,
26
+ # ylabel_scale, etc.).
27
+ def show_ylabel(text = nil)
28
+ end
29
+
30
+ # Each argument, if it is not +nil+, is shown (using show_title, show_xlabel, or show_ylabel)
31
+ # and it's "visible" flag is set +false+ to stop any later attempts to "reshow" it.
32
+ def do_box_labels(title, xlabel, ylabel)
33
+ end
34
+
35
+ # :call-seq:
36
+ # title_visible
37
+ # title_visible = false
38
+ #
39
+ # If +true+, then it is okay for tioga to show the title of a plot. If +false+,
40
+ # then calls on show_title return immediately.
41
+ # This attribute is "one-way-only" in that it starts +true+ and can be
42
+ # set +false+, but cannot be reset to +true+ except by restoring the
43
+ # graphics state in which is was still +true+. This is intended
44
+ # to help control the behavior of plots when embedded as subplots in a
45
+ # larger configuration. Note that this does not effect calls on show_text;
46
+ # it only applies to calls on show_title.
47
+ def title_visible
48
+ end
49
+
50
+ # :call-seq:
51
+ # xlabel_visible
52
+ # xlabel_visible = false
53
+ #
54
+ # If +true+, then it is okay for tioga to show the x label of a plot. If +false+,
55
+ # then calls on show_xlabel return immediately.
56
+ # This attribute is "one-way-only" in that it starts +true+ and can be
57
+ # set +false+, but cannot be reset to +true+ except by restoring the
58
+ # graphics state in which is was still +true+. This is intended
59
+ # to help control the behavior of plots when embedded as subplots in a
60
+ # larger configuration. Note that this does not effect calls on show_text;
61
+ # it only applies to calls on show_xlabel.
62
+ def xlabel_visible
63
+ end
64
+
65
+ # :call-seq:
66
+ # ylabel_visible
67
+ # ylabel_visible = false
68
+ #
69
+ # If +true+, then it is okay for tioga to show the y label of a plot. If +false+,
70
+ # then calls on show_ylabel return immediately.
71
+ # This attribute is "one-way-only" in that it starts +true+ and can be
72
+ # set +false+, but cannot be reset to +true+ except by restoring the
73
+ # graphics state in which is was still +true+. This is intended
74
+ # to help control the behavior of plots when embedded as subplots in a
75
+ # larger configuration. Note that this does not effect calls on show_text;
76
+ # it only applies to calls on show_ylabel.
77
+ def ylabel_visible
78
+ end
79
+
80
+ # :call-seq:
81
+ # title_shift
82
+ # title_shift = a_float
83
+ #
84
+ # Defines the shift distance away from the frame edge for the reference point of the title measured
85
+ # in units of text heights (default title_shift is 0.7).
86
+ def title_shift
87
+ end
88
+
89
+ # :call-seq:
90
+ # xlabel_shift
91
+ # xlabel_shift = a_float
92
+ #
93
+ # Defines the shift distance away from the frame edge for the reference point of the x label measured
94
+ # in units of text heights (default xlabel_shift is 1.0).
95
+ def xlabel_shift
96
+ end
97
+
98
+ # :call-seq:
99
+ # ylabel_shift
100
+ # ylabel_shift = a_float
101
+ #
102
+ # Defines the shift distance away from the frame edge for the reference point of the y label measured
103
+ # in units of text heights (default ylabel_shift is 1.8).
104
+ def ylabel_shift
105
+ end
106
+
107
+ # :call-seq:
108
+ # title_scale
109
+ # title_scale = a_float
110
+ #
111
+ # Defines the text size scale for the title (default is 1.1).
112
+ def title_scale
113
+ end
114
+
115
+ # :call-seq:
116
+ # xlabel_scale
117
+ # xlabel_scale = a_float
118
+ #
119
+ # Defines the text size scale for the x label (default is 1.0).
120
+ def xlabel_scale
121
+ end
122
+
123
+ # :call-seq:
124
+ # ylabel_scale
125
+ # ylabel_scale = a_float
126
+ #
127
+ # Defines the text size scale for the y label (default is 1.0).
128
+ def ylabel_scale
129
+ end
130
+
131
+ # :call-seq:
132
+ # title_alignment
133
+ # ylabel_alignment = an_alignment
134
+ #
135
+ # Defines the alignment for the title (default is +ALIGNED_AT_BASELINE+).
136
+ def title_alignment
137
+ end
138
+
139
+ # :call-seq:
140
+ # xlabel_alignment
141
+ # xlabel_alignment = an_alignment
142
+ #
143
+ # Defines the alignment for the x label (default is +ALIGNED_AT_BASELINE+).
144
+ def xlabel_alignment
145
+ end
146
+
147
+ # :call-seq:
148
+ # ylabel_alignment
149
+ # ylabel_alignment = an_alignment
150
+ #
151
+ # Defines the alignment for the y label (default is +ALIGNED_AT_BASELINE+).
152
+ def ylabel_alignment
153
+ end
154
+
155
+ # :call-seq:
156
+ # title_justification
157
+ # title_justification = a_justification
158
+ #
159
+ # Defines the justification for the title (default is +CENTERED+).
160
+ def title_justification
161
+ end
162
+
163
+ # :call-seq:
164
+ # xlabel_justification
165
+ # xlabel_justification = a_justification
166
+ #
167
+ # Defines the justification for the x label (default is +CENTERED+).
168
+ def xlabel_justification
169
+ end
170
+
171
+ # :call-seq:
172
+ # ylabel_justification
173
+ # ylabel_justification = a_justification
174
+ #
175
+ # Defines the justification for the y label (default is +CENTERED+).
176
+ def ylabel_justification
177
+ end
178
+
179
+ # :call-seq:
180
+ # title_color
181
+ # title_color = a_color_or_nil
182
+ #
183
+ # If not +nil+, then is used to add a TeX "\textcolor" specification to the title text.
184
+ def title_color
185
+ end
186
+
187
+ # :call-seq:
188
+ # xlabel_color
189
+ # xlabel_color = a_color_or_nil
190
+ #
191
+ # If not +nil+, then is used to add a TeX "\textcolor" specification to the x label text.
192
+ def xlabel_color
193
+ end
194
+
195
+ # :call-seq:
196
+ # ylabel_color
197
+ # ylabel_color = a_color_or_nil
198
+ #
199
+ # If not +nil+, then is used to add a TeX "\textcolor" specification to the y label text.
200
+ def ylabel_color
201
+ end
202
+
203
+ # :call-seq:
204
+ # title_angle
205
+ # title_angle = a_float
206
+ #
207
+ # The angle of the baseline for the title with respect to the side of the frame (default is 0).
208
+ def title_angle
209
+ end
210
+
211
+ # :call-seq:
212
+ # xlabel_angle
213
+ # xlabel_angle = a_float
214
+ #
215
+ # The angle of the baseline for the x label with respect to the side of the frame (default is 0).
216
+ def xlabel_angle
217
+ end
218
+
219
+ # :call-seq:
220
+ # ylabel_angle
221
+ # ylabel_angle = a_float
222
+ #
223
+ # The angle of the baseline for the y label with respect to the side of the frame (default is 0).
224
+ def ylabel_angle
225
+ end
226
+
227
+ # :call-seq:
228
+ # title_side
229
+ # title_side = a_side
230
+ #
231
+ # The side of the frame for the title (default is +TOP+).
232
+ def title_side
233
+ end
234
+
235
+ # :call-seq:
236
+ # xlabel_side
237
+ # xlabel_side = a_side
238
+ #
239
+ # The side of the frame for the x label (default is +BOTTOM+).
240
+ def xlabel_side
241
+ end
242
+
243
+ # :call-seq:
244
+ # ylabel_side
245
+ # ylabel_side = a_side
246
+ #
247
+ # The side of the frame for the y label (default is +LEFT+).
248
+ def ylabel_side
249
+ end
250
+
251
+ # :call-seq:
252
+ # title_position
253
+ # title_position = a_float
254
+ #
255
+ # The fractional position along the edge of the frame for the title reference point.
256
+ # The default title_position is 0.5 with title_justification == +CENTERED+.
257
+ def title_position
258
+ end
259
+
260
+ # :call-seq:
261
+ # xlabel_position
262
+ # xlabel_position = a_float
263
+ #
264
+ # The fractional position along the edge of the frame for the x label reference point.
265
+ # The default xlabel_position is 0.5 with xlabel_justification == +CENTERED+.
266
+ def xlabel_position
267
+ end
268
+
269
+ # :call-seq:
270
+ # ylabel_position
271
+ # ylabel_position = a_float
272
+ #
273
+ # The fractional position along the edge of the frame for the y label reference point.
274
+ # The default ylabel_position is 0.5 with ylabel_justification == +CENTERED+.
275
+ def ylabel_position
276
+ end
277
+
278
+ # :call-seq:
279
+ # title
280
+ # title = text_or_nil
281
+ #
282
+ # The text to be used for the title, or +nil+ indicating no title.
283
+ def title
284
+ end
285
+
286
+ # :call-seq:
287
+ # xlabel
288
+ # xlabel = text_or_nil
289
+ #
290
+ # The text to be used for the x axis label, or +nil+ indicating no label.
291
+ def xlabel
292
+ end
293
+
294
+ # :call-seq:
295
+ # ylabel
296
+ # ylabel = text_or_nil
297
+ #
298
+ # The text to be used for the y axis label, or +nil+ indicating no label.
299
+ def ylabel
300
+ end
301
+
302
+
303
+
304
+
305
+ end # class
306
+ end # module Tioga