You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -207,7 +207,40 @@ <h3><a name="SEC1.2">1.2. The giv files</a></h3>
207
207
208
208
</blockquote>
209
209
210
-
<h3><aname="SEC1.3">1.3. Text annotations</a></h3>
210
+
<h3><aname="SEC1.3">1.3. Lines and Bezier Curves</a></h3>
211
+
212
+
<blockquote>
213
+
After the header of the dataset, follows its data points.
214
+
215
+
giv follows the SVG model of drawing curves. A line is composed of a letter followed by the coordinates. By default the action is lineto, but the following are also supported:
216
+
217
+
<table>
218
+
<tr><thbgcolor=#eeeeff>Letter
219
+
<thbgcolor=#eeeeff>Meaning
220
+
<thbgcolor=#eeeeff>Number parameters
221
+
<thbgcolor=#eeeeff>Comment
222
+
<tr><tdbgcolor=#ffeeeevalign=top>M
223
+
<tdbgcolor=#ffeeeevalign=top>move to
224
+
<tdbgcolor=#ffeeeevalign=top>2
225
+
<tdbgcolor=#ffeeeevalign=top>Implicit for first point
226
+
<tr><tdbgcolor=#fbf2eevalign=top>L
227
+
<tdbgcolor=#fbf2eevalign=top>line to
228
+
<tdbgcolor=#fbf2eevalign=top>2
229
+
<tdbgcolor=#fbf2eevalign=top>Optional
230
+
<tr><tdbgcolor=#ffeeeevalign=top>Z
231
+
<tdbgcolor=#ffeeeevalign=top>line to
232
+
<tdbgcolor=#ffeeeevalign=top>2
233
+
<tdbgcolor=#ffeeeevalign=top>Close path
234
+
<tr><tdbgcolor=#fbf2eevalign=top>C
235
+
<tdbgcolor=#fbf2eevalign=top>curve to
236
+
<tdbgcolor=#fbf2eevalign=top>6
237
+
<tdbgcolor=#fbf2eevalign=top>A cubic Bezier
238
+
</table>
239
+
240
+
</blockquote>
241
+
242
+
243
+
<h3><aname="SEC1.4">1.4. Text annotations</a></h3>
211
244
212
245
<blockquote>
213
246
Text is drawn by adding the letter "T" in front of a line. The "T" may have a number 1-9 appended describing the anchoring of the text. This numbers corresponds to their position on the numerical keyboard. The default alignment is 1, i.e. lower left. To write multiline text add string "\n".
@@ -253,7 +286,7 @@ <h3><a name="SEC1.3">1.3. Text annotations</a></h3>
253
286
The backslash character is used as an escape character, so to get a literal backslash two slashes must be used. "\n" is used to indicate aline break.
254
287
</blockquote>
255
288
256
-
<h3><aname="SEC1.4">1.4. Colors</a></h3>
289
+
<h3><aname="SEC1.5">1.5. Colors</a></h3>
257
290
258
291
<blockquote>
259
292
For all the properties that take colors as arguments the color may be given in several ways:
Instead of explicitly listing all properties for a dataset, this may be done inderectly by the creation of a style. A style is created and has properties added to it through the <tt>$def_style</tt> keyword. Each use of <tt>$def_style</tt> adds one property to the style. A style is then referenced in the beginning of a dataset with the <tt>$style</tt> keyword followed by the style name.
<b>Note:</b> The example above contains just a few points. Giv very easily supports several hundred thousand points. The only limitations are the physical memory and the speed of the CPU.
451
484
</blockquote>
452
485
486
+
<h3><aname="SEC1.8">1.8. Balloons and paths</a></h3>
487
+
488
+
One of the features of giv is that each dataset may have a tooltip popup attached to it. These popups are knows as "balloons". This allows adding auxilliary information to the display that is revealed only when the cursor hovers above the dataset.
489
+
490
+
In addition, a dataset may be given a hiearchical path. This path is referenced in the marks viewer, and may be used to toggle on and off datasets. If no balloon was explicitely set for a dataset, then the dataset name is used for the balloon.
491
+
492
+
Balloons are toggled by the "b" popup.
493
+
453
494
<h2><aname="SEC2">2. Interaction</a></h2>
454
495
455
496
<blockquote>
456
497
<table>
457
498
<tr><thbgcolor=#eeeeff>Option
458
499
<thbgcolor=#eeeeff>Description
459
500
460
-
<tr><tdbgcolor=#ffeeeevalign=top>1
461
-
<tdbgcolor=#ffeeeevalign=top>Sets one image pixel equal to one screen pixel.
462
-
<tr><tdbgcolor=#fbf2eevalign=top>a
463
-
<tdbgcolor=#fbf2eevalign=top>Toggle anti aliasing
464
-
<tr><tdbgcolor=#ffeeeevalign=top>b
465
-
<tdbgcolor=#ffeeeevalign=top>Toggle the balloon popup.
466
-
<tr><tdbgcolor=#fbf2eevalign=top>c
467
-
<tdbgcolor=#fbf2eevalign=top>Reduce contrast. Useful for viewing overlay on binary images.
468
-
<tr><tdbgcolor=#ffeeeevalign=top>i
469
-
<tdbgcolor=#ffeeeevalign=top>Show information window
470
-
<tr><tdbgcolor=#fbf2eevalign=top>f
471
-
<tdbgcolor=#fbf2eevalign=top>Fill data to window
472
-
<tr><tdbgcolor=#ffeeeevalign=top>g
473
-
<tdbgcolor=#ffeeeevalign=top>Toggle the pixel grid. (Only shown at high zoom ratios).
After the header of the dataset, follows its data points.
295
+
296
+
giv follows the SVG model of drawing curves. A line is composed of a letter followed by the coordinates. By default the action is lineto, but the following are also supported:
297
+
298
+
<table>
299
+
<: TR() :><th bgcolor=#eeeeff>Letter
300
+
<th bgcolor=#eeeeff>Meaning
301
+
<th bgcolor=#eeeeff>Number parameters
302
+
<th bgcolor=#eeeeff>Comment
303
+
<:TR():><: td() :>M
304
+
<: td() :>move to
305
+
<: td() :>2
306
+
<: td() :>Implicit for first point
307
+
<:TR():><: td() :>L
308
+
<: td() :>line to
309
+
<: td() :>2
310
+
<: td() :>Optional
311
+
<:TR():><: td() :>Z
312
+
<: td() :>line to
313
+
<: td() :>2
314
+
<: td() :>Close path
315
+
<:TR():><: td() :>C
316
+
<: td() :>curve to
317
+
<: td() :>6
318
+
<: td() :>A cubic Bezier
319
+
</table>
320
+
321
+
</blockquote>
322
+
323
+
292
324
<: subsection("Text annotations") :>
293
325
<blockquote>
294
326
Text is drawn by adding the letter "T" in front of a line. The "T" may have a number 1-9 appended describing the anchoring of the text. This numbers corresponds to their position on the numerical keyboard. The default alignment is 1, i.e. lower left. To write multiline text add string "\n".
@@ -351,6 +383,13 @@ giv. The result is shown in the screenshow below.
351
383
<b>Note:</b> The example above contains just a few points. Giv very easily supports several hundred thousand points. The only limitations are the physical memory and the speed of the CPU.
352
384
</blockquote>
353
385
386
+
<: subsection("Balloons and paths") :>
387
+
One of the features of giv is that each dataset may have a tooltip popup attached to it. These popups are knows as "balloons". This allows adding auxilliary information to the display that is revealed only when the cursor hovers above the dataset.
388
+
389
+
In addition, a dataset may be given a hiearchical path. This path is referenced in the marks viewer, and may be used to toggle on and off datasets. If no balloon was explicitely set for a dataset, then the dataset name is used for the balloon.
390
+
391
+
Balloons are toggled by the "b" popup.
392
+
354
393
<: section("Interaction") :>
355
394
<blockquote>
356
395
<table>
@@ -459,10 +498,14 @@ giv. The result is shown in the screenshow below.
0 commit comments