| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5d92b70 commit ee3a4f0
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,19 @@ | |||
| 1 | + 2012-05-02 Ethan A Merritt <merritt@u.washington.edu> | ||
| 2 | + | ||
| 3 | + * src/datafile.c (df_readascii): CHANGE long-standing program action to | ||
| 4 | + check every input data line individually for number of data columns. | ||
| 5 | + Instead, whatever number of columns are found in the first record, that | ||
| 6 | + same number is expected for the rest of the input file. | ||
| 7 | + This is not ideal, because plot 'foo' with points will now fail if 'foo' | ||
| 8 | + has 4 or more entries on the first line but only 3 on subsequent lines. | ||
| 9 | + On the other hand, it fixes the unexpected behavior that | ||
| 10 | + 3 NaN | ||
| 11 | + in record 5, for example, would be treated as (5,3) DEFINED | ||
| 12 | + rather than as (3,NaN) UNDEFINED. | ||
| 13 | + | ||
| 14 | + * docs/gnuplot.doc docs/figure_missing.pdf: Documentation and example | ||
| 15 | + for above change. | ||
| 16 | + | ||
| 1 | 17 | 2012-04-30 Ethan A Merritt <merritt@u.washington.edu> | |
| 2 | 18 | ||
| 3 | 19 | * src/term.c (do_arc): A bug in the new wedge/nowedge option left a | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,8 @@ New features, changes and fixes since gnuplot version 4.6 | |||
| 9 | 9 | * CHANGE 'set [xyz]axis ... reverse' affects only auto-scaling | |
| 10 | 10 | * CHANGE Revised handling of NaN in input data stream | |
| 11 | 11 | * CHANGE Remove the BACKWARDS_COMPATIBLE build option (deprecated since v4.0) | |
| 12 | + * CHANGE The number of valid columns in the first line of a data line | ||
| 13 | + is used to decide the interpretation of all lines in the file. | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | 16 | New features, changes and fixes in gnuplot version 4.6 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - C RCS $Id: gnuplot.doc,v 1.729 2012/04/20 19:36:02 sfeam Exp $ | ||
| 1 | + C RCS $Id: gnuplot.doc,v 1.730 2012/04/23 19:25:15 sfeam Exp $ | ||
| 2 | 2 | C | |
| 3 | 3 | C Copyright (C) 1986 - 1993, 1998, 1999, 2000, 2001, 2004 Thomas Williams, Colin Kelley et al. | |
| 4 | 4 | C | |
@@ -203,9 +203,14 @@ C | |||
| 203 | 203 | ||
| 204 | 204 | 2 New features | |
| 205 | 205 | ?new-features | |
| 206 | - This section lists major additions since version 4.6. | ||
| 206 | + This section lists major additions and changes since version 4.6. | ||
| 207 | 207 | For a more exhaustive list, see the NEWS file. | |
| 208 | - 3 NOTHING HERE YET | ||
| 208 | + | ||
| 209 | + * New coordinate system (Degrees, Minutes, Seconds). See `set xdata geographic`. | ||
| 210 | + | ||
| 211 | + * New support for 32-bit Alpha channel + RGB colors #AARRGGBB. See `colorspec`. | ||
| 212 | + | ||
| 213 | + * Changed handling of NaN or other unexpected input data. See `missing`. | ||
| 209 | 214 | ||
| 210 | 215 | 2 Deprecated syntax | |
| 211 | 216 | ?deprecated syntax | |
@@ -2107,8 +2112,6 @@ Ffigure_newsyntax | |||
| 2107 | 2112 | ?tc | |
| 2108 | 2113 | ?textcolor | |
| 2109 | 2114 | Many commands allow you to specify a linetype with an explicit color. | |
| 2110 | - Terminal-independent color choice is only possible for terminals that support | ||
| 2111 | - RGB color or pm3d palettes. | ||
| 2112 | 2115 | ||
| 2113 | 2116 | Syntax: | |
| 2114 | 2117 | ||
@@ -2119,6 +2122,7 @@ Ffigure_newsyntax | |||
| 2119 | 2122 | ||
| 2120 | 2123 | rgbcolor "colorname" | |
| 2121 | 2124 | rgbcolor "#RRGGBB" | |
| 2125 | + rgbcolor "#AARRGGBB" | ||
| 2122 | 2126 | rgbcolor variable # color is read from input file | |
| 2123 | 2127 | palette frac <val> # <val> runs from 0 to 1 | |
| 2124 | 2128 | palette cb <value> # <val> lies within cbrange | |
@@ -2136,6 +2140,13 @@ Ffigure_newsyntax | |||
| 2136 | 2140 | be represented by #FF00FF, which is the hexadecimal representation of | |
| 2137 | 2141 | (255 << 16) + (0 << 8) + (255). | |
| 2138 | 2142 | ||
| 2143 | + "#AARRGGBB" represents an RGB color with an alpha channel (transparency) | ||
| 2144 | + value in the high bits. An alpha value of 0 represents a fully opaque color; | ||
| 2145 | + i.e., "#00RRGGBB" is the same as "#RRGGBB". An alpha value of 255 (FF) | ||
| 2146 | + represents full transparency. `Note`: This convention for the alpha channel | ||
| 2147 | + is backwards from that used by the "with rgbalpha" image plot mode in earlier | ||
| 2148 | + versions of gnuplot. | ||
| 2149 | + | ||
| 2139 | 2150 | The color palette is a linear gradient of colors that smoothly maps a | |
| 2140 | 2151 | single numerical value onto a particular color. Two such mappings are always | |
| 2141 | 2152 | in effect. `palette frac` maps a fractional value between 0 and 1 onto the | |
@@ -7469,17 +7480,22 @@ Ffigure_mapcontours | |||
| 7469 | 7480 | ?show datafile missing | |
| 7470 | 7481 | ?set missing | |
| 7471 | 7482 | ?missing | |
| 7472 | - The `set datafile missing` command allows you to tell `gnuplot` what character | ||
| 7473 | - string is used in a data file to denote missing data. Exactly how this missing | ||
| 7474 | - value will be treated depends on the `using` specifier of the `plot` or `splot` | ||
| 7475 | - command. | ||
| 7483 | + The `set datafile missing` command tells `gnuplot` there is a special string | ||
| 7484 | + used in input data files to denote a missing data entry. There is no default | ||
| 7485 | + character for `missing`, but in many cases any non-parsible string of | ||
| 7486 | + characters found where a numerical value is expected will cause the line to be | ||
| 7487 | + treated as missing data. There is a distinction between missing data and | ||
| 7488 | + invalid data (e.g. "NaN", 1/0.). Invalid data causes a gap in the line drawn | ||
| 7489 | + through the points; missing data does not. | ||
| 7490 | + | ||
| 7476 | 7491 | Syntax: | |
| 7477 | - set datafile missing {"<string>"} | ||
| 7492 | + set datafile missing "<string>" | ||
| 7478 | 7493 | show datafile missing | |
| 7479 | 7494 | unset datafile | |
| 7480 | - Example: | ||
| 7481 | - # Ignore entries containing IEEE NaN ("Not a Number") code | ||
| 7482 | - set datafile missing "NaN" | ||
| 7495 | + | ||
| 7496 | + `Note`: The treatment of certain cases has changed in this version of gnuplot. | ||
| 7497 | + The example below shows the difference. | ||
| 7498 | + Ffigure_missing | ||
| 7483 | 7499 | Example: | |
| 7484 | 7500 | set style data linespoints | |
| 7485 | 7501 | plot '-' title "(a)" | |
@@ -7500,32 +7516,28 @@ Ffigure_mapcontours | |||
| 7500 | 7516 | plot '-' using 1:2 title "(c)" | |
| 7501 | 7517 | 1 10 | |
| 7502 | 7518 | 2 20 | |
| 7503 | - 3 ? | ||
| 7519 | + 3 NaN | ||
| 7504 | 7520 | 4 40 | |
| 7505 | 7521 | 5 50 | |
| 7506 | 7522 | e | |
| 7507 | 7523 | plot '-' using 1:($2) title "(d)" | |
| 7508 | 7524 | 1 10 | |
| 7509 | 7525 | 2 20 | |
| 7510 | - 3 ? | ||
| 7526 | + 3 NaN | ||
| 7511 | 7527 | 4 40 | |
| 7512 | 7528 | 5 50 | |
| 7513 | 7529 | e | |
| 7514 | 7530 | ||
| 7515 | - The first `plot` will recognize only the first datum in the "3 ?" line. It | ||
| 7516 | - will use the single-datum-on-a-line convention that the line number is "x" | ||
| 7517 | - and the datum is "y", so the point will be plotted (in this case erroneously) | ||
| 7518 | - at (2,3). | ||
| 7519 | - | ||
| 7520 | - The second and third `plot` commands will correctly ignore the middle line. | ||
| 7521 | - The plotted line will connect the points at (2,20) and (4,40). | ||
| 7531 | + Plot (a) differs because the third line contains only one valid number. | ||
| 7532 | + Old gnuplot versions switched to a single-datum-on-a-line convention that the | ||
| 7533 | + line number is "x" and the datum is "y", erroneously placing the point at(2,3). | ||
| 7522 | 7534 | ||
| 7523 | - The fourth `plot` will also correctly ignore the middle line, but the plotted | ||
| 7524 | - line will not connect the points at (2,20) and (4,40). | ||
| 7535 | + Both the old and new gnuplot versions handle the same data correctly if the | ||
| 7536 | + '?' character is designated as a marker for missing data (b). | ||
| 7525 | 7537 | ||
| 7526 | - There is no default character for `missing`, but in many cases any | ||
| 7527 | - non-parsible string of characters found where a numerical value is expected | ||
| 7528 | - will be treated as missing data. | ||
| 7538 | + Old gnuplot versions handled NaN differently depending of the form of the | ||
| 7539 | + `using` clause, as shown in plots (c) and (d). Gnuplot now handles NaN the | ||
| 7540 | + same whether the input column was specified as N or ($N). | ||
| 7529 | 7541 | ||
| 7530 | 7542 | 4 set datafile separator | |
| 7531 | 7543 | ?set datafile separator | |
@@ -7550,23 +7562,21 @@ Ffigure_mapcontours | |||
| 7550 | 7562 | 4 set datafile commentschars | |
| 7551 | 7563 | ?set datafile commentschars | |
| 7552 | 7564 | ?commentschars | |
| 7553 | - The `set datafile commentschars` command allows you to tell `gnuplot` what | ||
| 7554 | - characters are used in a data file to denote comments. Gnuplot will ignore | ||
| 7555 | - rest of the line behind the specified characters if either of them is the | ||
| 7556 | - first non-blank character on the line. | ||
| 7565 | + The `set datafile commentschars` tells `gnuplot` what characters are used in a | ||
| 7566 | + data file to begin comment lines. If the first non-blank character on a line is | ||
| 7567 | + one of the specified characters then the rest of the input line is ignored. | ||
| 7568 | + Default value of the string is "#!" on VMS and "#" otherwise. | ||
| 7557 | 7569 | ||
| 7558 | 7570 | Syntax: | |
| 7559 | 7571 | set datafile commentschars {"<string>"} | |
| 7560 | 7572 | show datafile commentschars | |
| 7561 | 7573 | unset commentschars | |
| 7562 | 7574 | ||
| 7563 | - Default value of the string is "#!" on VMS and "#" otherwise. | ||
| 7564 | - | ||
| 7565 | 7575 | Then, the following line in a data file is completely ignored | |
| 7566 | 7576 | # 1 2 3 4 | |
| 7567 | 7577 | but the following | |
| 7568 | 7578 | 1 # 3 4 | |
| 7569 | - produces rather unexpected plot unless | ||
| 7579 | + produces a rather unexpected plot unless | ||
| 7570 | 7580 | set datafile missing '#' | |
| 7571 | 7581 | is specified as well. | |
| 7572 | 7582 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: datafile.c,v 1.218 2012/04/17 22:42:52 sfeam Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: datafile.c,v 1.219 2012/05/02 04:21:58 sfeam Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - datafile.c */ | |
@@ -1954,6 +1954,14 @@ df_readascii(double v[], int max) | |||
| 1954 | 1954 | || output == df_no_use_specs | |
| 1955 | 1955 | || output == max); | |
| 1956 | 1956 | ||
| 1957 | + /* | ||
| 1958 | + * EAM Apr 2012 - If there is no using spec, then whatever we found on | ||
| 1959 | + * the first line becomes the expectation for the rest of the input file. | ||
| 1960 | + * THIS IS A CHANGE! | ||
| 1961 | + */ | ||
| 1962 | + if (df_no_use_specs == 0) | ||
| 1963 | + df_no_use_specs = output; | ||
| 1964 | + | ||
| 1957 | 1965 | return output; | |
| 1958 | 1966 | ||
| 1959 | 1967 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments