From: Shigeharu T. <sh...@ie...> - 2004-06-29 11:43:02
|
shige 06/29 2004 ---------------- I found a problem of gnuplot-4.0.0: gnuplot> set arrow from 1,2 rto 0.5,0.5 gnuplot> set arrow from 1,2 to 0.5,0.5 gnuplot> show arrow arrow 1, linetype 1, linewidth 1.000 nofilled back from (1, 2, 0) to (0.5, 0.5, 0) arrow 2, linetype 1, linewidth 1.000 nofilled back from (1, 2, 0) to (0.5, 0.5, 0) that is, the behavior for "rto" is the same as for "to". The following small patch may fix it. ----- From here ----- *** gnuplot-org/src/set.c Wed May 5 01:58:01 2004 --- gnuplot/src/set.c Tue Jun 29 20:25:58 2004 *************** *** 675,686 **** /* get end or relative end position */ if (equals(c_token, "to") || equals(c_token,"rto")) { if (set_end) { duplication = TRUE; break; } c_token++; if (END_OF_COMMAND) int_error(c_token, "end coordinates expected"); /* get coordinates */ get_position(&epos); ! relative = (equals(c_token,"rto")) ? TRUE : FALSE; set_end = TRUE; continue; } --- 675,687 ---- /* get end or relative end position */ if (equals(c_token, "to") || equals(c_token,"rto")) { if (set_end) { duplication = TRUE; break; } + relative = (equals(c_token,"rto")) ? TRUE : FALSE; c_token++; if (END_OF_COMMAND) int_error(c_token, "end coordinates expected"); /* get coordinates */ get_position(&epos); ! /* relative = (equals(c_token,"rto")) ? TRUE : FALSE; */ set_end = TRUE; continue; } ----- To here ----- +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |