home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume9 / draw_jt / part01 / README < prev    next >
Encoding:
Text File  |  1989-12-12  |  3.5 KB  |  100 lines

  1. $Id: README,v 2.3 89/12/11 09:25:07 jta Exp $
  2.  
  3.      This program is free software; you can redistribute it and/or modify
  4.      it under the terms of the GNU General Public License as published by
  5.      the Free Software Foundation; either version 1, or any later version.
  6.  
  7.      This program is distributed in the hope that it will be useful,
  8.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.      file "License" for more details.
  11.  
  12.      You should have received a copy of the GNU General Public License
  13.      along with this program; if not, write to the Free Software
  14.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. What we have here
  17. *****************
  18.  
  19. dr_lib.c :
  20. ----------
  21.  
  22. dr_lib.c is a collection of simple device level graphics drawing
  23. subroutines.  dr_lib.c has several output choises: it will produce HPGL
  24. directly, produce plot(3) code, and use gl_plot(3) library to support EGA,
  25. CGA, HERCULES, IBM graphics printer, Laserjet, etc.  gl_plot was posted in
  26. comp.sources.unix some time ago, and it is made by umix!m-net!dtlewis!lewis,
  27. the rest is made by me.  There is a compile time scwith (see Makefile) to
  28. include code generation for gl_plot().  If you want to include gl_plot()
  29. code, make sure your gl_plot() library works in your system.
  30.  
  31. I once made a quick port of gl_lib to 386 UNIX (Enix), but I have no longer
  32. acces to that system.  My current system is Interactive SVr3.2, and it was
  33. not so easy to port gl_lib here.  I also have X now, and that has Tektronix
  34. emulation.   That is why I implemented the standard *NIX plot(3) library
  35. interface into dr_lib.c (*NIX has also tplot(1)), so this is my current
  36. method to get plots onto screen.
  37.  
  38.  
  39. draw.c :
  40. --------
  41.  
  42. draw.c is intended to be a "front-end" for dr_lib routines.  draw.c makes
  43. use of line and text drawing and pen movement routines to build x-y pictures
  44. with axes, labels, text etc.  Nothing will prevent you from making your own
  45. main program to call directly functions in dr_lib.c, if you like.  Real
  46. [nt]roff-able man page is also included in this kit (draw.1), hope it is up
  47. to date.
  48.  
  49.  
  50. kiero.c :
  51. ---------
  52.  
  53. kiero.c is a fancy demo program that will produce data into its stdout, to
  54. be processed further by draw.  It will also put enough definitions, so that
  55. you can pipe its stdout directly to draw.
  56.  
  57.  
  58. Compiling and Installing :
  59. --------------------------
  60.  
  61. 1) Edit the Makefile to suit your system.  Then say 'make'.  This version of
  62.    draw is developed under Interactive 386/ix SysV 3.2.  draw was born veery
  63.    looong time ago started under BSD 4.x, has also been compiled under
  64.    MosseDos (MSC x), and even VMS.  Porting to these systems should be quite
  65.    easy, send the diffs to me if there is something special.
  66.  
  67. 2) draw will use enviroment variable DRAWDEV to decide what kind of device
  68.    it should work for.  Default value is `ega' for gl_plot() subroutine
  69.    package.  That, again will use GLMODE to choose between EGA, CGA, VGA
  70.    etc.  I have:
  71.     DRAWDEV=plot;    export DRAWDEV    # my default is to pipe to tplot(1)
  72.     GLMODE=256;    export GLMODE    # but specifying -tega, I get it to
  73.                     # my Epson FX-80...
  74.     PLOTDEV=lp;    export PLOTDEV    # ... which is /dev/lp
  75.    in my .profile 
  76.  
  77.  
  78.  
  79. To do :
  80. -------
  81.  
  82. - Real support for X.
  83.  
  84. - Suggestions ?
  85.  
  86.  
  87.    I would like to hear a) experiences in porting this package into
  88.    different systems, b) bugs & new features, so that I can fix and
  89.    include them in next version, if it ever will be made.
  90.  
  91.     jta@sah.vtt.fi    voice: +358 0 4566425
  92.  
  93.     Juha Takala
  94.     VTT/SAH
  95.     PL 34
  96.     02151 Espoo
  97.     Finland
  98.  
  99.  
  100.