File: utils-and-no-gui.rkt

package info (click to toggle)
racket 7.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 125,432 kB
  • sloc: ansic: 258,980; pascal: 59,975; sh: 33,650; asm: 13,558; lisp: 7,124; makefile: 3,329; cpp: 2,889; exp: 499; python: 274; xml: 11
file content (302 lines) | stat: -rw-r--r-- 5,736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
#lang typed/racket/base

(require "common/types.rkt")

(provide
 Treeof
 Anchor
 Plot-Color
 Plot-Pen-Style
 Plot-Brush-Style
 Point-Sym
 List-Generator
 Plot-Colors
 Plot-Pen-Styles
 Pen-Widths
 Plot-Brush-Styles
 Alphas
 Labels
 Contour-Levels
 Image-File-Format)

(require "common/math.rkt")

(provide
 (struct-out ivl))

(require "common/axis-transform.rkt"
         (only-in "common/leftover-contracts.rkt"
                  axis-transform/c))

(provide
 (struct-out invertible-function)
 Axis-Transform
 axis-transform/c
 id-function
 invertible-compose
 invertible-inverse
 id-transform
 apply-axis-transform
 make-axis-transform
 axis-transform-compose
 axis-transform-append
 axis-transform-bound
 log-transform
 cbrt-transform
 hand-drawn-transform
 stretch-transform
 collapse-transform)

(require "common/parameters.rkt")

(provide
 plot-deprecation-warnings?
 ;; General plot parameters
 plot-x-axis?
 plot-y-axis?
 plot-z-axis?
 plot-x-far-axis?
 plot-y-far-axis?
 plot-z-far-axis?
 plot-x-tick-labels?
 plot-y-tick-labels?
 plot-z-tick-labels?
 plot-x-far-tick-labels?
 plot-y-far-tick-labels?
 plot-z-far-tick-labels?
 plot-x-tick-label-anchor
 plot-y-tick-label-anchor
 plot-x-far-tick-label-anchor
 plot-y-far-tick-label-anchor
 plot-x-tick-label-angle
 plot-y-tick-label-angle
 plot-x-far-tick-label-angle
 plot-y-far-tick-label-angle
 plot-width plot-height
 plot-foreground
 plot-foreground-alpha
 plot-background
 plot-background-alpha
 plot-line-width
 plot-tick-size
 plot-font-size
 plot-font-face
 plot-font-family
 plot-legend-anchor
 plot-legend-box-alpha
 plot-decorations?
 plot-animating?
 plot3d-samples
 plot3d-angle
 plot3d-altitude
 plot3d-ambient-light
 plot3d-diffuse-light?
 plot3d-specular-light?
 plot-new-window?
 plot-jpeg-quality
 plot-ps/pdf-interactive?
 plot-ps-setup
 plot-title
 plot-x-label
 plot-y-label
 plot-z-label
 plot-x-far-label
 plot-y-far-label
 plot-z-far-label
 plot-x-transform
 plot-x-ticks
 plot-x-far-ticks
 plot-y-transform
 plot-y-ticks
 plot-y-far-ticks
 plot-z-transform
 plot-z-ticks
 plot-z-far-ticks
 plot-d-ticks
 plot-r-ticks
 ;; Renderer parameters
 line-samples
 line-color
 line-width
 line-style
 line-alpha
 interval-color
 interval-style
 interval-line1-color
 interval-line1-width
 interval-line1-style
 interval-line2-color
 interval-line2-width
 interval-line2-style
 interval-alpha
 point-sym
 point-color
 point-size
 point-x-jitter
 point-y-jitter
 point-z-jitter
 point-line-width
 point-alpha
 vector-field-samples
 vector-field-color
 vector-field-line-width
 vector-field-line-style
 vector-field-scale
 vector-field-alpha
 vector-field3d-samples
 error-bar-width
 error-bar-color
 error-bar-line-width
 error-bar-line-style
 error-bar-alpha
 candlestick-width
 candlestick-up-color
 candlestick-down-color
 candlestick-line-width
 candlestick-line-style
 candlestick-alpha
 contour-samples
 contour-levels
 contour-colors
 contour-widths
 contour-styles
 contour-alphas
 contour-interval-colors
 contour-interval-styles
 contour-interval-alphas
 rectangle-color
 rectangle-style
 rectangle-line-color
 rectangle-line-width
 rectangle-line-style
 rectangle-alpha
 rectangle3d-line-width
 discrete-histogram-gap
 discrete-histogram-skip
 discrete-histogram-invert?
 stacked-histogram-colors
 stacked-histogram-styles
 stacked-histogram-line-colors
 stacked-histogram-line-widths
 stacked-histogram-line-styles
 stacked-histogram-alphas
 x-axis-ticks?
 y-axis-ticks?
 z-axis-ticks?
 x-axis-labels?
 y-axis-labels?
 z-axis-labels?
 x-axis-far?
 y-axis-far?
 z-axis-far?
 x-axis-alpha
 y-axis-alpha
 z-axis-alpha
 polar-axes-number
 polar-axes-ticks?
 polar-axes-labels?
 polar-axes-alpha
 label-anchor
 label-angle
 label-alpha
 label-point-size
 surface-color
 surface-style
 surface-line-color
 surface-line-width
 surface-line-style
 surface-alpha
 contour-interval-line-colors
 contour-interval-line-widths
 contour-interval-line-styles
 isosurface-levels
 isosurface-colors
 isosurface-styles
 isosurface-line-colors
 isosurface-line-widths
 isosurface-line-styles
 isosurface-alphas
 ;; Functions
 pen-gap
 animated-samples
 default-contour-colors
 default-contour-fill-colors
 default-isosurface-colors
 default-isosurface-line-colors)

(require "common/date-time.rkt")

(provide
 (struct-out plot-time)
 plot-time->seconds
 seconds->plot-time
 datetime->real)

(require "common/ticks.rkt"
         (only-in "common/leftover-contracts.rkt"
                  ticks-layout/c
                  ticks-format/c))

(provide
 (struct-out pre-tick)
 (struct-out tick)
 (struct-out ticks)
 Ticks-Layout
 Ticks-Format
 ticks-layout/c
 ticks-format/c
 ticks-generate
 24h-descending-date-ticks-formats
 12h-descending-date-ticks-formats
 24h-descending-time-ticks-formats
 12h-descending-time-ticks-formats
 us-currency-scales
 uk-currency-scales
 eu-currency-scales
 us-currency-formats
 uk-currency-formats
 eu-currency-formats
 no-ticks-layout
 no-ticks-format
 no-ticks
 ticks-default-number
 ticks-mimic
 ticks-scale
 ticks-add
 linear-scale
 linear-ticks-layout
 linear-ticks-format
 linear-ticks
 log-ticks-layout
 log-ticks-format
 log-ticks
 date-ticks-formats
 date-ticks-layout
 date-ticks-format
 date-ticks
 time-ticks-formats
 time-ticks-layout
 time-ticks-format
 time-ticks
 bit/byte-ticks-format
 bit/byte-ticks
 currency-ticks-scales
 currency-ticks-formats
 currency-ticks-format
 currency-ticks
 fraction-ticks-format
 fraction-ticks
 collapse-ticks
 contour-ticks
 format-tick-labels)

(require "common/plot-element.rkt"
         "common/nonrenderer.rkt"
         "plot2d/renderer.rkt"
         "plot3d/renderer.rkt")

(provide
 (struct-out plot-element)
 (struct-out nonrenderer)
 (struct-out renderer2d)
 (struct-out renderer3d))