xref: /csrg-svn/lib/libplot/grn/label.c (revision 48511)
1*48511Sbostic /*-
2*48511Sbostic  * Copyright (c) 1980, 1986 The Regents of the University of California.
3*48511Sbostic  * All rights reserved.
4*48511Sbostic  *
5*48511Sbostic  * %sccs.include.proprietary.c%
629811Ssklower  */
729811Ssklower 
829811Ssklower #ifndef lint
9*48511Sbostic static char sccsid[] = "@(#)label.c	6.2 (Berkeley) 04/22/91";
10*48511Sbostic #endif /* not lint */
1129811Ssklower 
1229811Ssklower #include "grnplot.h"
1329811Ssklower 
1429811Ssklower /*---------------------------------------------------------
1529811Ssklower  *	This routine places a label starting at the current
1629811Ssklower  *	position.
1729811Ssklower  *
1829811Ssklower  *	Results:	None.
1929811Ssklower  *
2029811Ssklower  *	Side Effects:
2129811Ssklower  *	The string indicated by s starting at (curx, cury).
2229811Ssklower  *	The current position is NOT updated.
2329811Ssklower  *---------------------------------------------------------
2429811Ssklower  */
2529811Ssklower label(s)
2629811Ssklower char *s;
2729811Ssklower {
2829811Ssklower 	if (!ingrnfile) erase();
2929811Ssklower 	endvector();
3029811Ssklower 	printf("BOTLEFT\n");
3129811Ssklower 	outcurxy();
3229811Ssklower 	printf("*\n%d %d\n%d %s\n",FONTSTYLE,FONTSIZE,strlen(s)-1,s);
3329811Ssklower }
34