home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume28 / jgraph / patch07.1 < prev    next >
Text File  |  1992-02-03  |  8KB  |  302 lines

  1. Newsgroups: comp.sources.misc
  2. From: jsp@Princeton.EDU (James Plank)
  3. Subject:  v28i007:  jgraph - A filter for plotting postscript graphs, Patch07.1
  4. Message-ID: <1992Feb2.033217.25138@sparky.imd.sterling.com>
  5. X-Md4-Signature: 6cb31a4a1a47822c7b63641e409c4bd1
  6. Date: Sun, 2 Feb 1992 03:32:17 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: jsp@Princeton.EDU (James Plank)
  10. Posting-number: Volume 28, Issue 7
  11. Archive-name: jgraph/patch07.1
  12. Environment: UNIX, VMS, postscript
  13. Patch-To: jgraph: Volume 16, Issue 20
  14.  
  15. Jgraph Patch 7.1: Thu Jan 23 16:24:20 EST 1992
  16.  
  17. Sorry, but an important bug has been found in jgraph (at least for 
  18. some decstations -- others as well as suns and sparcs seem to be
  19. unaffected).  Thanks to Matt Blumrich for spotting it. Anyway,
  20. here's the patch file from version 7.0:
  21.  
  22.  
  23. *** ../work/README    Thu Jan 23 16:05:12 1992
  24. --- README    Thu Jan 23 16:00:07 1992
  25. ***************
  26. *** 1,4 ****
  27. ! $Revision: 7.0 $
  28.   
  29.   Jgraph takes the description of a graph or graphs in the standard
  30.   input, and produces a postscript file on the standard output.  Jgraph
  31. --- 1,4 ----
  32. ! $Revision: 7.1 $
  33.   
  34.   Jgraph takes the description of a graph or graphs in the standard
  35.   input, and produces a postscript file on the standard output.  Jgraph
  36. *** ../work/draw.c    Thu Jan 23 16:05:15 1992
  37. --- draw.c    Thu Jan 23 15:59:54 1992
  38. ***************
  39. *** 1,7 ****
  40.   /* 
  41.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/draw.c,v $
  42. !  * $Revision: 7.0 $
  43. !  * $Date: 92/01/23 11:09:46 $
  44.    * $Author: jsp $
  45.    */
  46.   
  47. --- 1,7 ----
  48.   /* 
  49.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/draw.c,v $
  50. !  * $Revision: 7.1 $
  51. !  * $Date: 92/01/23 15:57:48 $
  52.    * $Author: jsp $
  53.    */
  54.   
  55. *** ../work/edit.c    Thu Jan 23 16:05:16 1992
  56. --- edit.c    Thu Jan 23 15:59:55 1992
  57. ***************
  58. *** 1,7 ****
  59.   /* 
  60.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/edit.c,v $
  61. !  * $Revision: 7.0 $
  62. !  * $Date: 92/01/23 11:09:47 $
  63.    * $Author: jsp $
  64.    */
  65.   
  66. --- 1,7 ----
  67.   /* 
  68.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/edit.c,v $
  69. !  * $Revision: 7.1 $
  70. !  * $Date: 92/01/23 15:57:49 $
  71.    * $Author: jsp $
  72.    */
  73.   
  74. *** ../work/jgraph.1    Thu Jan 23 16:05:21 1992
  75. --- jgraph.1    Thu Jan 23 16:00:06 1992
  76. ***************
  77. *** 1185,1188 ****
  78.   .sp
  79.   There may well be loads of other bugs.  Send to jsp@princeton.edu.
  80.   .sp
  81. ! This is $Revision: 7.0 $.
  82. --- 1185,1188 ----
  83.   .sp
  84.   There may well be loads of other bugs.  Send to jsp@princeton.edu.
  85.   .sp
  86. ! This is $Revision: 7.1 $.
  87. *** ../work/jgraph.c    Thu Jan 23 16:05:22 1992
  88. --- jgraph.c    Thu Jan 23 15:59:57 1992
  89. ***************
  90. *** 1,7 ****
  91.   /* 
  92.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.c,v $
  93. !  * $Revision: 7.0 $
  94. !  * $Date: 92/01/23 11:09:52 $
  95.    * $Author: jsp $
  96.    */
  97.   
  98. --- 1,7 ----
  99.   /* 
  100.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.c,v $
  101. !  * $Revision: 7.1 $
  102. !  * $Date: 92/01/23 15:57:54 $
  103.    * $Author: jsp $
  104.    */
  105.   
  106. *** ../work/jgraph.h    Thu Jan 23 16:05:23 1992
  107. --- jgraph.h    Thu Jan 23 15:59:58 1992
  108. ***************
  109. *** 1,7 ****
  110.   /* 
  111.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.h,v $
  112. !  * $Revision: 7.0 $
  113. !  * $Date: 92/01/23 11:09:54 $
  114.    * $Author: jsp $
  115.    */
  116.   
  117. --- 1,7 ----
  118.   /* 
  119.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.h,v $
  120. !  * $Revision: 7.1 $
  121. !  * $Date: 92/01/23 15:57:56 $
  122.    * $Author: jsp $
  123.    */
  124.   
  125. *** ../work/list.c    Thu Jan 23 16:05:24 1992
  126. --- list.c    Thu Jan 23 15:59:58 1992
  127. ***************
  128. *** 1,7 ****
  129.   /* 
  130.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.c,v $
  131. !  * $Revision: 7.0 $
  132. !  * $Date: 92/01/23 11:09:55 $
  133.    * $Author: jsp $
  134.    */
  135.   
  136. --- 1,7 ----
  137.   /* 
  138.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.c,v $
  139. !  * $Revision: 7.1 $
  140. !  * $Date: 92/01/23 15:57:57 $
  141.    * $Author: jsp $
  142.    */
  143.   
  144. *** ../work/list.h    Thu Jan 23 16:05:24 1992
  145. --- list.h    Thu Jan 23 15:59:59 1992
  146. ***************
  147. *** 1,7 ****
  148.   /* 
  149.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.h,v $
  150. !  * $Revision: 7.0 $
  151. !  * $Date: 92/01/23 11:09:55 $
  152.    * $Author: jsp $
  153.    */
  154.   
  155. --- 1,7 ----
  156.   /* 
  157.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.h,v $
  158. !  * $Revision: 7.1 $
  159. !  * $Date: 92/01/23 15:57:58 $
  160.    * $Author: jsp $
  161.    */
  162.   
  163. *** ../work/printline.c    Thu Jan 23 16:05:26 1992
  164. --- printline.c    Thu Jan 23 15:59:59 1992
  165. ***************
  166. *** 1,7 ****
  167.   /* 
  168.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/printline.c,v $
  169. !  * $Revision: 7.0 $
  170. !  * $Date: 92/01/23 11:09:57 $
  171.    * $Author: jsp $
  172.    */
  173.   
  174. --- 1,7 ----
  175.   /* 
  176.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/printline.c,v $
  177. !  * $Revision: 7.1 $
  178. !  * $Date: 92/01/23 15:58:00 $
  179.    * $Author: jsp $
  180.    */
  181.   
  182. *** ../work/prio_list.c    Thu Jan 23 16:05:27 1992
  183. --- prio_list.c    Thu Jan 23 16:00:00 1992
  184. ***************
  185. *** 1,7 ****
  186.   /* 
  187.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.c,v $
  188. !  * $Revision: 7.0 $
  189. !  * $Date: 92/01/23 11:09:58 $
  190.    * $Author: jsp $
  191.    */
  192.   
  193. --- 1,7 ----
  194.   /* 
  195.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.c,v $
  196. !  * $Revision: 7.1 $
  197. !  * $Date: 92/01/23 15:58:01 $
  198.    * $Author: jsp $
  199.    */
  200.   
  201. *** ../work/prio_list.h    Thu Jan 23 16:05:27 1992
  202. --- prio_list.h    Thu Jan 23 16:00:01 1992
  203. ***************
  204. *** 1,7 ****
  205.   /* 
  206.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.h,v $
  207. !  * $Revision: 7.0 $
  208. !  * $Date: 92/01/23 11:10:00 $
  209.    * $Author: jsp $
  210.    */
  211.   
  212. --- 1,7 ----
  213.   /* 
  214.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.h,v $
  215. !  * $Revision: 7.1 $
  216. !  * $Date: 92/01/23 15:58:02 $
  217.    * $Author: jsp $
  218.    */
  219.   
  220. *** ../work/process.c    Thu Jan 23 16:05:28 1992
  221. --- process.c    Thu Jan 23 16:00:01 1992
  222. ***************
  223. *** 1,7 ****
  224.   /* 
  225.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/process.c,v $
  226. !  * $Revision: 7.0 $
  227. !  * $Date: 92/01/23 11:10:01 $
  228.    * $Author: jsp $
  229.    */
  230.   
  231. --- 1,7 ----
  232.   /* 
  233.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/process.c,v $
  234. !  * $Revision: 7.1 $
  235. !  * $Date: 92/01/23 15:58:03 $
  236.    * $Author: jsp $
  237.    */
  238.   
  239. ***************
  240. *** 536,545 ****
  241.             x = c->l->x - g->legend->midspace - g->legend->linelength / 2.0;
  242.           } else x = c->l->x - g->legend->midspace;
  243.           if (c->marktype != 'n') {
  244. !           g->yminval = MIN(g->yminval, y - abs(c->marksize[1])/2.0);
  245. !           g->ymaxval = MAX(g->ymaxval, y + abs(c->marksize[1])/2.0);
  246. !           g->xminval = MIN(g->xminval, x - abs(c->marksize[0])/2.0);
  247. !           g->xmaxval = MAX(g->xmaxval, x + abs(c->marksize[0])/2.0);
  248.           }
  249.           process_label_extrema(c->l, g);
  250.         }
  251. --- 536,545 ----
  252.             x = c->l->x - g->legend->midspace - g->legend->linelength / 2.0;
  253.           } else x = c->l->x - g->legend->midspace;
  254.           if (c->marktype != 'n') {
  255. !           g->yminval = MIN(g->yminval, y - fabs(c->marksize[1])/2.0);
  256. !           g->ymaxval = MAX(g->ymaxval, y + fabs(c->marksize[1])/2.0);
  257. !           g->xminval = MIN(g->xminval, x - fabs(c->marksize[0])/2.0);
  258. !           g->xmaxval = MAX(g->xmaxval, x + fabs(c->marksize[0])/2.0);
  259.           }
  260.           process_label_extrema(c->l, g);
  261.         }
  262. *** ../work/show.c    Thu Jan 23 16:05:29 1992
  263. --- show.c    Thu Jan 23 16:00:04 1992
  264. ***************
  265. *** 1,7 ****
  266.   /* 
  267.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/show.c,v $
  268. !  * $Revision: 7.0 $
  269. !  * $Date: 92/01/23 11:10:04 $
  270.    * $Author: jsp $
  271.    */ 
  272.   
  273. --- 1,7 ----
  274.   /* 
  275.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/show.c,v $
  276. !  * $Revision: 7.1 $
  277. !  * $Date: 92/01/23 15:58:06 $
  278.    * $Author: jsp $
  279.    */ 
  280.   
  281. *** ../work/token.c    Thu Jan 23 16:05:40 1992
  282. --- token.c    Thu Jan 23 16:00:05 1992
  283. ***************
  284. *** 1,7 ****
  285.   /* 
  286.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/token.c,v $
  287. !  * $Revision: 7.0 $
  288. !  * $Date: 92/01/23 11:10:05 $
  289.    * $Author: jsp $
  290.    */
  291.   
  292. --- 1,7 ----
  293.   /* 
  294.    * $Source: /n/fs/vd/jsp/src/jgraph/RCS/token.c,v $
  295. !  * $Revision: 7.1 $
  296. !  * $Date: 92/01/23 15:58:07 $
  297.    * $Author: jsp $
  298.    */
  299.   
  300.  
  301. exit 0 # Just in case...
  302.