home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / jgraph / patch06.1 next >
Encoding:
Text File  |  1991-10-22  |  9.2 KB  |  358 lines

  1. Newsgroups: comp.sources.misc
  2. From: jsp@Princeton.EDU (James Plank)
  3. Subject:  v23i101:  jgraph - A filter for plotting postscript graphs, Patch06.1
  4. Message-ID: <1991Oct22.032229.1553@sparky.imd.sterling.com>
  5. X-Md4-Signature: 5b3efb7b7f87db026cb761dc77c62324
  6. Date: Tue, 22 Oct 1991 03:22:29 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: jsp@Princeton.EDU (James Plank)
  10. Posting-number: Volume 23, Issue 101
  11. Archive-name: jgraph/patch06.1
  12. Environment: UNIX, VMS, postscript
  13. Patch-To: jgraph: Volume 16, Issue 20
  14.  
  15. Sorry -- I found a big bug in 6.0 of jgraph.  Here's the
  16. patch, etc.  
  17.  
  18. Take it easy,
  19.  
  20. Jim
  21. -----
  22. # To unbundle, "sed '1,/^# To unbundle/d' < thisfile | sh"
  23. # Wed Oct  9 11:16:26 EDT 1991
  24. echo PATCH.6.1.README 1>&2
  25. sed 's/^-//' >'PATCH.6.1.README' <<'End of PATCH.6.1.README'
  26. -Sorry, but I found a pretty important bug in draw.c which screwed
  27. -up axes done with nodraw.  Anyway, here's the patch.  As usual,
  28. -the latest release of jgraph is available by anonymous ftp  to
  29. -princeton.edu in the file pub/jgraph.Z.  The patch from version 
  30. -6.0 is in the file patch6.1.
  31. -
  32. -Please alert me to more bugs.
  33. -
  34. -Take it easy,
  35. -
  36. -Jim Plank
  37. -jsp@cs.princeton.edu
  38. End of PATCH.6.1.README
  39. echo patch.6.1 1>&2
  40. sed 's/^-//' >'patch.6.1' <<'End of patch.6.1'
  41. -*** ../work/README    Wed Oct  9 11:08:59 1991
  42. ---- README    Wed Oct  9 11:07:36 1991
  43. -***************
  44. -*** 1,4 ****
  45. -! $Revision: 6.0 $
  46. -  
  47. -  Jgraph takes the description of a graph or graphs in the standard
  48. -  input, and produces a postscript file on the standard output.  Jgraph
  49. ---- 1,4 ----
  50. -! $Revision: 6.1 $
  51. -  
  52. -  Jgraph takes the description of a graph or graphs in the standard
  53. -  input, and produces a postscript file on the standard output.  Jgraph
  54. -***************
  55. -*** 13,20 ****
  56. -  laying them out separately on the page (or pages). 
  57. -  
  58. -  The program is written in C, and shouldn't take anything too fancy
  59. -! or machine-dependent.  It has been tested on VAX mipsel's and mipseb's,
  60. -! sun3's and SPARC's.
  61. -  
  62. -  There is a makefile, a man page (in jgraph.1), source code, and 
  63. -  example graphs.
  64. ---- 13,21 ----
  65. -  laying them out separately on the page (or pages). 
  66. -  
  67. -  The program is written in C, and shouldn't take anything too fancy
  68. -! or machine-dependent.  It has been tested on DECstations, 
  69. -! sun3's, and sparc's (and is being used on many other types
  70. -! of machines).
  71. -  
  72. -  There is a makefile, a man page (in jgraph.1), source code, and 
  73. -  example graphs.
  74. -*** ../work/draw.c    Wed Oct  9 11:09:01 1991
  75. ---- draw.c    Wed Oct  9 11:07:30 1991
  76. -***************
  77. -*** 1,7 ****
  78. -  /* 
  79. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/draw.c,v $
  80. -!  * $Revision: 6.0 $
  81. -!  * $Date: 91/10/08 16:53:43 $
  82. -   * $Author: jsp $
  83. -   */
  84. -  
  85. ---- 1,7 ----
  86. -  /* 
  87. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/draw.c,v $
  88. -!  * $Revision: 6.1 $
  89. -!  * $Date: 91/10/09 11:03:25 $
  90. -   * $Author: jsp $
  91. -   */
  92. -  
  93. -***************
  94. -*** 55,63 ****
  95. -  
  96. -    orientation = (a->is_x) ? 'x' : 'y';
  97. -    setlinewidth(1.0);
  98. -    if (a->draw_axis_line) {
  99. --     comment("Drawing Axis");
  100. --     printf("gsave %f setgray\n", a->gray);
  101. -      printline(0.0, a->draw_at, a->psize, a->draw_at, orientation);
  102. -    }
  103. -    if (a->draw_hash_marks) {
  104. ---- 55,63 ----
  105. -  
  106. -    orientation = (a->is_x) ? 'x' : 'y';
  107. -    setlinewidth(1.0);
  108. -+   comment("Drawing Axis");
  109. -+   printf("gsave %f setgray\n", a->gray);
  110. -    if (a->draw_axis_line) {
  111. -      printline(0.0, a->draw_at, a->psize, a->draw_at, orientation);
  112. -    }
  113. -    if (a->draw_hash_marks) {
  114. -*** ../work/edit.c    Wed Oct  9 11:09:02 1991
  115. ---- edit.c    Wed Oct  9 11:07:30 1991
  116. -***************
  117. -*** 1,7 ****
  118. -  /* 
  119. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/edit.c,v $
  120. -!  * $Revision: 6.0 $
  121. -!  * $Date: 91/10/08 16:53:44 $
  122. -   * $Author: jsp $
  123. -   */
  124. -  
  125. ---- 1,7 ----
  126. -  /* 
  127. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/edit.c,v $
  128. -!  * $Revision: 6.1 $
  129. -!  * $Date: 91/10/09 11:03:26 $
  130. -   * $Author: jsp $
  131. -   */
  132. -  
  133. -***************
  134. -*** 519,525 ****
  135. -        for (i = 0; i < 4; i++) {
  136. -          if (!getfloat(&f)) {
  137. -            error_header();
  138. -!           fprintf("Bbox definition must have four numbers\n");
  139. -            exit(1);
  140. -          } else {
  141. -            the_g->bb[i] = f;
  142. ---- 519,525 ----
  143. -        for (i = 0; i < 4; i++) {
  144. -          if (!getfloat(&f)) {
  145. -            error_header();
  146. -!           fprintf(stderr, "Bbox definition must have four numbers\n");
  147. -            exit(1);
  148. -          } else {
  149. -            the_g->bb[i] = f;
  150. -*** ../work/jgraph.1    Wed Oct  9 11:09:06 1991
  151. ---- jgraph.1    Wed Oct  9 11:07:35 1991
  152. -***************
  153. -*** 1104,1106 ****
  154. ---- 1104,1108 ----
  155. -  own hash labels.  
  156. -  .sp
  157. -  There may well be loads of other bugs.  Send to jsp@princeton.edu.
  158. -+ .sp
  159. -+ This is $Revision: 6.1 $.
  160. -*** ../work/jgraph.c    Wed Oct  9 11:09:07 1991
  161. ---- jgraph.c    Wed Oct  9 11:07:31 1991
  162. -***************
  163. -*** 1,7 ****
  164. -  /* 
  165. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.c,v $
  166. -!  * $Revision: 6.0 $
  167. -!  * $Date: 91/10/08 16:53:48 $
  168. -   * $Author: jsp $
  169. -   */
  170. -  
  171. ---- 1,7 ----
  172. -  /* 
  173. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.c,v $
  174. -!  * $Revision: 6.1 $
  175. -!  * $Date: 91/10/09 11:03:31 $
  176. -   * $Author: jsp $
  177. -   */
  178. -  
  179. -*** ../work/jgraph.h    Wed Oct  9 11:09:08 1991
  180. ---- jgraph.h    Wed Oct  9 11:07:31 1991
  181. -***************
  182. -*** 1,7 ****
  183. -  /* 
  184. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.h,v $
  185. -!  * $Revision: 6.0 $
  186. -!  * $Date: 91/10/08 16:53:50 $
  187. -   * $Author: jsp $
  188. -   */
  189. -  
  190. ---- 1,7 ----
  191. -  /* 
  192. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/jgraph.h,v $
  193. -!  * $Revision: 6.1 $
  194. -!  * $Date: 91/10/09 11:03:33 $
  195. -   * $Author: jsp $
  196. -   */
  197. -  
  198. -*** ../work/list.c    Wed Oct  9 11:09:09 1991
  199. ---- list.c    Wed Oct  9 11:07:32 1991
  200. -***************
  201. -*** 1,7 ****
  202. -  /* 
  203. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.c,v $
  204. -!  * $Revision: 6.0 $
  205. -!  * $Date: 91/10/08 16:53:51 $
  206. -   * $Author: jsp $
  207. -   */
  208. -  
  209. ---- 1,7 ----
  210. -  /* 
  211. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.c,v $
  212. -!  * $Revision: 6.1 $
  213. -!  * $Date: 91/10/09 11:03:34 $
  214. -   * $Author: jsp $
  215. -   */
  216. -  
  217. -*** ../work/list.h    Wed Oct  9 11:09:09 1991
  218. ---- list.h    Wed Oct  9 11:07:32 1991
  219. -***************
  220. -*** 1,7 ****
  221. -  /* 
  222. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.h,v $
  223. -!  * $Revision: 6.0 $
  224. -!  * $Date: 91/10/08 16:53:52 $
  225. -   * $Author: jsp $
  226. -   */
  227. -  
  228. ---- 1,7 ----
  229. -  /* 
  230. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/list.h,v $
  231. -!  * $Revision: 6.1 $
  232. -!  * $Date: 91/10/09 11:03:35 $
  233. -   * $Author: jsp $
  234. -   */
  235. -  
  236. -*** ../work/printline.c    Wed Oct  9 11:09:11 1991
  237. ---- printline.c    Wed Oct  9 11:07:32 1991
  238. -***************
  239. -*** 1,7 ****
  240. -  /* 
  241. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/printline.c,v $
  242. -!  * $Revision: 6.0 $
  243. -!  * $Date: 91/10/08 16:53:54 $
  244. -   * $Author: jsp $
  245. -   */
  246. -  
  247. ---- 1,7 ----
  248. -  /* 
  249. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/printline.c,v $
  250. -!  * $Revision: 6.1 $
  251. -!  * $Date: 91/10/09 11:03:37 $
  252. -   * $Author: jsp $
  253. -   */
  254. -  
  255. -*** ../work/prio_list.c    Wed Oct  9 11:09:11 1991
  256. ---- prio_list.c    Wed Oct  9 11:07:32 1991
  257. -***************
  258. -*** 1,7 ****
  259. -  /* 
  260. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.c,v $
  261. -!  * $Revision: 6.0 $
  262. -!  * $Date: 91/10/08 16:53:55 $
  263. -   * $Author: jsp $
  264. -   */
  265. -  
  266. ---- 1,7 ----
  267. -  /* 
  268. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.c,v $
  269. -!  * $Revision: 6.1 $
  270. -!  * $Date: 91/10/09 11:03:38 $
  271. -   * $Author: jsp $
  272. -   */
  273. -  
  274. -*** ../work/prio_list.h    Wed Oct  9 11:09:12 1991
  275. ---- prio_list.h    Wed Oct  9 11:07:33 1991
  276. -***************
  277. -*** 1,7 ****
  278. -  /* 
  279. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.h,v $
  280. -!  * $Revision: 6.0 $
  281. -!  * $Date: 91/10/08 16:53:56 $
  282. -   * $Author: jsp $
  283. -   */
  284. -  
  285. ---- 1,7 ----
  286. -  /* 
  287. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/prio_list.h,v $
  288. -!  * $Revision: 6.1 $
  289. -!  * $Date: 91/10/09 11:03:39 $
  290. -   * $Author: jsp $
  291. -   */
  292. -  
  293. -*** ../work/process.c    Wed Oct  9 11:09:13 1991
  294. ---- process.c    Wed Oct  9 11:07:33 1991
  295. -***************
  296. -*** 1,7 ****
  297. -  /* 
  298. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/process.c,v $
  299. -!  * $Revision: 6.0 $
  300. -!  * $Date: 91/10/08 16:53:56 $
  301. -   * $Author: jsp $
  302. -   */
  303. -  
  304. ---- 1,7 ----
  305. -  /* 
  306. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/process.c,v $
  307. -!  * $Revision: 6.1 $
  308. -!  * $Date: 91/10/09 11:03:40 $
  309. -   * $Author: jsp $
  310. -   */
  311. -  
  312. -*** ../work/show.c    Wed Oct  9 11:09:14 1991
  313. ---- show.c    Wed Oct  9 11:07:34 1991
  314. -***************
  315. -*** 1,7 ****
  316. -  /* 
  317. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/show.c,v $
  318. -!  * $Revision: 6.0 $
  319. -!  * $Date: 91/10/08 16:53:59 $
  320. -   * $Author: jsp $
  321. -   */ 
  322. -  
  323. ---- 1,7 ----
  324. -  /* 
  325. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/show.c,v $
  326. -!  * $Revision: 6.1 $
  327. -!  * $Date: 91/10/09 11:03:42 $
  328. -   * $Author: jsp $
  329. -   */ 
  330. -  
  331. -*** ../work/token.c    Wed Oct  9 11:09:26 1991
  332. ---- token.c    Wed Oct  9 11:07:35 1991
  333. -***************
  334. -*** 1,7 ****
  335. -  /* 
  336. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/token.c,v $
  337. -!  * $Revision: 6.0 $
  338. -!  * $Date: 91/10/08 16:54:00 $
  339. -   * $Author: jsp $
  340. -   */
  341. -  
  342. ---- 1,7 ----
  343. -  /* 
  344. -   * $Source: /n/fs/vd/jsp/src/jgraph/RCS/token.c,v $
  345. -!  * $Revision: 6.1 $
  346. -!  * $Date: 91/10/09 11:03:43 $
  347. -   * $Author: jsp $
  348. -   */
  349. -  
  350. End of patch.6.1
  351.  
  352. exit 0 # Just in case...
  353. -- 
  354. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  355. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  356. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  357. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  358.