1
/* This file is part of hp2ps, a graph drawer for memory profiles.
2
Copyright (C) 2002 The University Court of the University of Glasgow.
3
This program is governed by the license contained in the file LICENSE. */
8
#include "Dimensions.h"
14
static void Caret PROTO((floatish, floatish, floatish));
22
for (i = 0; i < nmarks; i++) {
23
m = ((markmap[i] - samplemap[0]) / xrange) * graphwidth;
24
Caret(xpage(m), ypage(0.0), 4.0);
30
* Draw a small white caret at (x,y) with width 2 * d
35
floatish x; floatish y; floatish d;
37
fprintf(psfp, "%f %f moveto\n", x - d, y);
38
fprintf(psfp, "%f %f rlineto\n", d, -d);
39
fprintf(psfp, "%f %f rlineto\n", d, d);
40
fprintf(psfp, "closepath\n");
42
fprintf(psfp, "gsave\n");
43
fprintf(psfp, "1.0 setgray\n");
44
fprintf(psfp, "fill\n");
45
fprintf(psfp, "grestore\n");
46
fprintf(psfp, "stroke\n");