| 1 |
These are some release notes that deal with new features and backward |
| 2 |
compatibility of the plotutils package, on both user and programmer levels. |
| 3 |
|
| 4 |
Release 2.6, dated 9/2009 |
| 5 |
------------------------- |
| 6 |
|
| 7 |
This release fixes a problem lurking in ode/specfun.c for a long time: |
| 8 |
copyrighted code, dating to the days when that file was a modified version |
| 9 |
of the file specfun.c in the gnuplot distribution. The gnuplot folks have |
| 10 |
since rewritten their specfun.c to remove most of the copyright notices. |
| 11 |
(At the cost of introducing new ones, dealing with the Cephes |
| 12 |
library... but I digress.) The plotutils ode/specfun.c has been totally |
| 13 |
rewritten: it is based on published algorithms, cited in the code, and |
| 14 |
contains no non-GNU copyrights. |
| 15 |
|
| 16 |
The SVG compatibility problems mentioned below seem to be going away. In |
| 17 |
the past, outline fonts in libplot's SVG output have not been rendered |
| 18 |
correctly by many SVG viewers, mostly because they are drawn by libplot in |
| 19 |
an intricate way, involving a coordinate reflection. But firefox and |
| 20 |
svgdisplay (part of KDE) now render reflected fonts correctly. The GIMP |
| 21 |
SVG plugin may not yet, but then it has problems with fonts in general. |
| 22 |
inkscape may be improving as well (slowly). Rewriting libplot's SVG export |
| 23 |
code to work around such problems no longer seems necessary. (Horizontal |
| 24 |
and especially vertical justification of text strings are not yet widely |
| 25 |
supported, but when exporting SVG, libplot now does its own justification.) |
| 26 |
|
| 27 |
Release 2.5.1, dated 7/2008 |
| 28 |
--------------------------- |
| 29 |
|
| 30 |
This release fixes a few bugs. However, there are persistent problems with |
| 31 |
text-strings in the SVG output format. Many applications that can view or |
| 32 |
edit SVG files (in particular, inkscape) do not correctly implement the SVG |
| 33 |
1.1 specification. So, they may position text strings incorrectly, and |
| 34 |
even position incorrectly individual characters within a text string. |
| 35 |
|
| 36 |
If you encounter this problem, the fix is to specify a stroked ("Hershey") |
| 37 |
font, such as HersheySerif or HersheySerif-Bold. A list of available |
| 38 |
fonts, in SVG output, is obtained by doing `graph -Tsvg --help-fonts'. |
| 39 |
Each character in any Hershey font is made up of stroked line segments, and |
| 40 |
most SVG viewers can display line segments correctly. |
| 41 |
|
| 42 |
This problem may be worked around in future releases of the SVG output |
| 43 |
driver. |
| 44 |
|
| 45 |
Release 2.5, dated 12/2005 |
| 46 |
-------------------------- |
| 47 |
|
| 48 |
This is primarily a bug fix release, but the number of bug fixes is large. |
| 49 |
The biggest change is to the X11 driver. |
| 50 |
|
| 51 |
The font support in X11 (the X Window System) is in a state of overturn, |
| 52 |
and previous releases of the plotutils package do not produce good-looking |
| 53 |
output (of rotated text strings, especially) on many current X11 displays. |
| 54 |
This is for the following reason. The traditional `core' X fonts stored on |
| 55 |
any X11 display, each of which has a long name (a so-called XLFD name), are |
| 56 |
going away. The new model is for fonts to be stored on the client side, |
| 57 |
and to be rasterized by the FreeType rasterizer via the Xft library. Even |
| 58 |
in advance of this change, X servers such as XFree86 are starting to drop |
| 59 |
support for the more sophisticated features of the core X font subsystem, |
| 60 |
such as its ability to supply rotated or sheared glyphs. |
| 61 |
|
| 62 |
So the libplot library now produces its own rotated and sheared glyphs. It |
| 63 |
still uses the core X fonts, but it no longer requests rotation or shearing |
| 64 |
when retrieving rasterized characters (glyphs) from those fonts. Instead, |
| 65 |
it rotates or shears them itself. The result looks fairly good. For |
| 66 |
example, the output from the `rotating A' sample program in the plotutils |
| 67 |
manual looks as good as it always did, and takes no longer to generate. |
| 68 |
|
| 69 |
The command-line graphics utilities (e.g., `graph') support a `--rotation' |
| 70 |
option, to rotate graphics within their `viewport' or `plotting box'. (For |
| 71 |
X11 output, requested by `-T X', this viewport is simply the popped-up X |
| 72 |
window.) The argument of this option can now be an arbitrary number, |
| 73 |
interpreted as a counterclockwise rotation in degrees. (It used to be |
| 74 |
required to be 0,90,180, or 270.) You can now do this sort of thing: |
| 75 |
|
| 76 |
echo 0 0 1 1 2 0 | graph -T X -C -L 'A Postmodern Plot' -W 0.01 --rotation 45 |
| 77 |
|
| 78 |
The same thing can be done in any other output format (e.g., as requested |
| 79 |
by `-T ps' or `-T svg'.) This enhancement is independent of the rewriting |
| 80 |
of the X11 driver, but was suggested by it. |
| 81 |
|
| 82 |
A bad bug in the output of the PS driver, which prevented its being |
| 83 |
displayed by some versions of ghostscript/ghostview/gv, has been fixed. |
| 84 |
|
| 85 |
The output of the SVG driver has been improved, to be more compatible with |
| 86 |
the SVG parsers in Firefox and the ImageMagick package. Unfortunately, |
| 87 |
font handling in both of them is somewhat broken. If you have trouble |
| 88 |
using the standard builtin `Postscript' fonts (meaning, Adobe's standard |
| 89 |
set of 35 fonts such as Helvetica, Times-Roman, Courier, etc.), you should |
| 90 |
use the builtin Hershey fonts instead. Each character in any Hershey font |
| 91 |
is `stroked': it is made up of line segments. The Hershey fonts look quite |
| 92 |
good in Firefox, for example, due to its anti-aliasing. |
| 93 |
|
| 94 |
To check the drawing of SVG text strings, first do |
| 95 |
|
| 96 |
echo 0 0 1 1 2 0 | graph -T svg -C -L 'A Postmodern Plot' -W 0.01 --rotation 45 > plot.svg |
| 97 |
|
| 98 |
to obtain an SVG plot. To display it using Firefox and the ImageMagick |
| 99 |
package respectively, do |
| 100 |
|
| 101 |
firefox file:${PWD}/plot.svg |
| 102 |
display plot.svg |
| 103 |
|
| 104 |
If there are problems with your copy of Firefox or the `display' |
| 105 |
application, some of the axis labels may be missing or displaced. If so, |
| 106 |
add the option `-F HersheySerif' to the `graph' command, to request the |
| 107 |
HersheySerif font rather than the default font (Helvetica). |
| 108 |
|
| 109 |
Release 2.4.1, dated 7/2000 |
| 110 |
--------------------------- |
| 111 |
|
| 112 |
The `--page-size' option supported by the command-line graphics utilities |
| 113 |
has been extended, to allow precise specification of viewport size and |
| 114 |
location in the output, e.g., on a printed page. For example, |
| 115 |
`--page-size=letter,xsize=5in,ysize=3in,xorigin=1in,yorigin=2in' is now a |
| 116 |
possible command-line option. Previously, only `xoffset' and `yoffset' |
| 117 |
fields were supported. |
| 118 |
|
| 119 |
You can get some interesting visual effects by setting xsize or ysize to a |
| 120 |
negative value. For example, |
| 121 |
|
| 122 |
echo 0 0 1 1 2 0 | graph -Tps --page-size letter,xsize=-8in,ysize=8in |
| 123 |
|
| 124 |
will write to standard output a Postscript graph for a letter-size page. |
| 125 |
The graph will be drawn into a viewport that has the same size as usual |
| 126 |
(8in x 8in), but it will be reflected from left to right. |
| 127 |
|
| 128 |
The ability to specify a custom viewport size should be useful when |
| 129 |
producing SVG or WebCGM graphics for Web pages. When producing SVG or |
| 130 |
WebCGM output, only the xsize,ysize fields are meaningful; xorigin, |
| 131 |
yorigin, xoffset, and yoffset are ignored. |
| 132 |
|
| 133 |
The syntax of the libplot Plotter parameter `PAGESIZE' has been similarly |
| 134 |
extended. |
| 135 |
|
| 136 |
Libplot version number is now 4.1. |
| 137 |
|
| 138 |
Release 2.4, dated 6/2000 |
| 139 |
------------------------- |
| 140 |
|
| 141 |
SVG output is now supported. SVG is a new XML-based vector graphics format |
| 142 |
being developed by the W3 Consortium. |
| 143 |
|
| 144 |
The command-line plotting utilities now support `-T svg --bg-color none' |
| 145 |
and `-T cgm --bg-color none' options, to turn off the background (which by |
| 146 |
default is white) in SVG and WebCGM output. This is useful when generating |
| 147 |
graphics files for use in Web pages. Similarly, in libplot, SVG and CGM |
| 148 |
Plotters now allow the parameter `BG_COLOR' to equal "none". |
| 149 |
|
| 150 |
PNG output is now supported. A PNG driver will be installed in libplot, |
| 151 |
and made available to the command-line plotting utilities, if libpng and |
| 152 |
libz are found at installation time. The version number of libpng must be |
| 153 |
0.95 or larger (libpng 0.95 was released in March 1997). |
| 154 |
|
| 155 |
If the PNG driver is included, you must now include the additional options |
| 156 |
`-lpng -lz' when compiling and linking a program with libplot or |
| 157 |
libplotter. `configure' now supports a `--without-libpng' option to |
| 158 |
disable PNG support. |
| 159 |
|
| 160 |
ReGIS output is now supported, for display on older graphics terminals like |
| 161 |
the VT340 (color), the VT330 (monochrome), and emulators. The ReGIS driver |
| 162 |
contains a blemish: paths that extend beyond the boundary of a ReGIS |
| 163 |
display are never filled, even if filling is requested, because they need |
| 164 |
to be clipped against the boundary, and the required clipping code hasn't |
| 165 |
yet been written. |
| 166 |
|
| 167 |
Colors may now be specified, both on the command line and when using the |
| 168 |
libplot API, by their 24-bit RGB representation, expressed as six |
| 169 |
hexadecimal digits. For example, "#ffffff" is equivalent to "white". |
| 170 |
|
| 171 |
The command-line plotting utilities now support an `--emulate-color yes' |
| 172 |
option, and all Plotters now support a corresponding parameter, |
| 173 |
"EMULATE_COLOR". If emulation is performed, all colors in the output will |
| 174 |
be replaced by grayscale approximations. This is particularly useful when |
| 175 |
producing PCL 5 output to be printed on a monochrome PCL 5 device, such as |
| 176 |
a monochrome LaserJet. Many monochrome PCL 5 devices, on their own, do a |
| 177 |
poor job of emulating color (they print every nonwhite solid color as |
| 178 |
black). |
| 179 |
|
| 180 |
libplot now supports compound paths, i.e. paths that are made up of |
| 181 |
multiple simple paths, so long as the simple paths do not intersect each |
| 182 |
other (they are allowed to intersect themselves). You draw each simple |
| 183 |
path of a compound path in the usual way, but you end each one by calling |
| 184 |
endsubpath(). The compound path is terminated and drawn by calling |
| 185 |
endpath(). Just as when traditional non-compound paths are drawn, the call |
| 186 |
to endpath() can usually be omitted. |
| 187 |
|
| 188 |
So the libplot API has been expanded to include endsubpath(), and |
| 189 |
orientation() too. orientation() specifies the direction in which |
| 190 |
circles/ellipses/boxes are traversed. (Specifying this, for any |
| 191 |
circle/ellipse/box that is a subpath of a compound path, affects the |
| 192 |
filling of the compound path by determining which points are `inside' or |
| 193 |
`outside'.) |
| 194 |
|
| 195 |
Handling of device-resident HP vector fonts ("stick fonts"), when drawing |
| 196 |
text strings in HP-GL/2 output, has been improved. Previously, no account |
| 197 |
was taken of device-resident font kerning. That's appropriate when |
| 198 |
producing PCL 5 output for a LaserJet with an HP-GL/2 emulation module, |
| 199 |
since LaserJets don't do sophisticated kerning of stick fonts, even when |
| 200 |
they support them. But any full-featured HP-GL/2 plotter can do kerning of |
| 201 |
variable-width stick fonts. So when producing HP-GL/2 output, we now take |
| 202 |
that into account when computing the width of text strings. This affects |
| 203 |
the positioning of text strings on an output page. |
| 204 |
|
| 205 |
The StickANK and ArcANK HP vector fonts, which provide JIS ASCII and |
| 206 |
half-width Katakana, are now available when producing HP-GL/2 output. |
| 207 |
|
| 208 |
The miter limit (for line joins) which is placed in any HP-GL/2 or PCL 5 |
| 209 |
output file is now always rounded to the closest integer, downward. That's |
| 210 |
because at least one HP-GL/2 pen plotter (the HP 7550B, which was HP's |
| 211 |
first) had buggy firmware that couldn't parse a non-integer miter limit. |
| 212 |
|
| 213 |
When HPGL_VERSION is set to 1 or 1.5, the filling of solid regions now uses |
| 214 |
cross-hatching, instead of the filling with a single pen color that used to |
| 215 |
be used. This occurs whenever the fill color is not one of the defined pen |
| 216 |
colors. The algorithm employed, for emulating shading by cross-hatching, |
| 217 |
is the one used by HP's HP-GL/2 pen plotters. |
| 218 |
|
| 219 |
A new function, fsetmatrix(), has been added to the libplot/libplotter API, |
| 220 |
as an alternative to space(). It sets the transformation matrix from user |
| 221 |
coordinates to NDC (normalized device coordinates). In NDC space, the |
| 222 |
graphics display, i.e. viewport, has corners (0,0), (1,0), (1,1), (0,1). |
| 223 |
space() and/or fsetmatrix() no longer need to be called at the beginning of |
| 224 |
each page of graphics. |
| 225 |
|
| 226 |
The alabel() function in the libplot/libplotter API now accepts a new |
| 227 |
vertical positioning option, `C', to request alignment of a text string's |
| 228 |
cap line with the present vertical position. |
| 229 |
|
| 230 |
Color drawing on X displays has been speeded up. If the X display uses a |
| 231 |
truecolor `visual', pixel value computations are performed in libplot |
| 232 |
itself, rather than in the X server. This removes the need to call |
| 233 |
XAllocColor() whenever a new pen color or fill color is selected (which |
| 234 |
used to require a round-trip to the server, slowing things down). Also, a |
| 235 |
Plotter parameter `XDRAWABLE_VISUAL' has been added. It should be set by |
| 236 |
the programmer if a non-default colormap is used. libplot can determine |
| 237 |
from it whether or not the visual is of the truecolor class. |
| 238 |
|
| 239 |
Libplot version number is now 4.0. |
| 240 |
|
| 241 |
Release 2.3, dated 10/1999 |
| 242 |
-------------------------- |
| 243 |
|
| 244 |
CGM output is now supported. By default, a CGM Plotter emits |
| 245 |
binary-encoded version-3 CGM format, conforming to the WebCGM profile. |
| 246 |
(For information on WebCGM, see http://www.cgmopen.org .) The CGM format |
| 247 |
version number may be reduced by setting the libplot parameter (or |
| 248 |
environment variable) CGM_MAX_VERSION. Irrespective of version, a |
| 249 |
human-readable CGM file, i.e., one encoded as clear text, may be produced |
| 250 |
by setting CGM_ENCODING to "clear_text". Clear text CGM files are valid |
| 251 |
CGM files, though technically they don't conform to the WebCGM profile |
| 252 |
(a WebCGM file is meant to be binary). |
| 253 |
|
| 254 |
The package is now based on libplot version 3.0, which has new thread-safe |
| 255 |
C and C++ APIs, i.e. APIs which (1) maintain no global state, and (2) are |
| 256 |
pthread-aware. The names of all new thread-safe libplot functions end in |
| 257 |
"_r", for `reentrant' or `revised'. Each of them takes a pointer to an |
| 258 |
opaque plPlotter object as its first argument. |
| 259 |
|
| 260 |
There are new functions in both libplot and libplotter for creating and |
| 261 |
manipulating PlotterParams objects, which store Plotter parameters. |
| 262 |
Parameters are copied from such an object when the Plotter class is |
| 263 |
instantiated. |
| 264 |
|
| 265 |
The old C and C++ API's are still supported, though deprecated. So you can |
| 266 |
still use pl_newpl() and pl_openpl(), etc., instead of pl_newpl_r() and |
| 267 |
pl_openpl_r(), etc. |
| 268 |
|
| 269 |
A new API function, pl_pentype_r(), has been added. If its argument is 0, |
| 270 |
stroking of paths, as opposed to filling, will be turned off. So `edgeless |
| 271 |
polygons' can now be drawn. |
| 272 |
|
| 273 |
Fig and PCL Plotters now position their viewports (i.e. "graphics displays") |
| 274 |
in the center of their pages, like PS Plotters. So the PCL_XOFFSET and |
| 275 |
PCL_YOFFSET parameters have been removed, and PCL_ROTATE too. Similarly, |
| 276 |
HPGL_XOFFSET and HPGL_YOFFSET parameters have been removed, even though tbe |
| 277 |
viewport position for HP-GL Plotters has not changed. |
| 278 |
|
| 279 |
Shifting of the viewport on the page, for PCL, HP-GL, Fig, and PS Plotters, |
| 280 |
is now accomplished through the PAGESIZE parameter. E.g., its value could |
| 281 |
be "letter,xoffset=1in,yoffset=-2cm" or "a4,yoffset=12mm". |
| 282 |
|
| 283 |
A new parameter, ROTATION, has been introduced; it applies to PCL, HP-GL, |
| 284 |
Fig, and PS Plotters. It defines rotation of the viewport on the page, |
| 285 |
which is not the same as what the HPGL_ROTATE parameter, previously |
| 286 |
introduced for HPGL Plotters, defines. Values of ROTATION can be "no", |
| 287 |
"yes", "0", "90", "180", "270". |
| 288 |
|
| 289 |
A new scan-conversion library, called libxmi, is optionally built and |
| 290 |
installed, together with documentation. It contains the scan-conversion |
| 291 |
code that is used by libplot's GIF and PNM drivers, which is based on the |
| 292 |
X11 sample server code. libxmi is also distributed independently. The |
| 293 |
libxmi version number is 1.1. |
| 294 |
|
| 295 |
Release 2.2, dated 3/1999 |
| 296 |
------------------------- |
| 297 |
|
| 298 |
Massive expansion of the C API, with new drivers, and introduction of |
| 299 |
libplotter (C++ class library). Backward compatibility of the C API |
| 300 |
maintained, except that all functions now begin with "pl_". Header file |
| 301 |
"plotcompat.h", if needed, will redefine old function names as new function |
| 302 |
names. Libplot version number is now 2.0. |
| 303 |
|
| 304 |
outfile() function, always more or less deprecated, now declared |
| 305 |
obsolescent. No longer documented. |
| 306 |
|
| 307 |
Release 2.1.6 |
| 308 |
------------- |
| 309 |
|
| 310 |
AI driver added, but libplot API unchanged. Libplot version number is now |
| 311 |
1.6. |
| 312 |
|
| 313 |
Support in plot.h header file for old names for endpath() and filltype(), |
| 314 |
which began in plotutils-2.0 (see below), finally dropped. |
| 315 |
|
| 316 |
Release 2.1.5 |
| 317 |
------------- |
| 318 |
|
| 319 |
PCL 5 driver added. Kerning of device-resident `HP stick fonts' accessible |
| 320 |
to the HP-GL driver, when HPGL_VERSION=1.5, also added. Libplot API |
| 321 |
unchanged, but libplot version number is now 1.5. |
| 322 |
|
| 323 |
|
| 324 |
Release 2.1.2, 2.1.3, 2.1.4 |
| 325 |
--------------------------- |
| 326 |
|
| 327 |
No additions to libplot API, but the semantics of closepl() vs. deletepl() |
| 328 |
have finally changed (programmers were warned about this in the texinfo |
| 329 |
documentation). The libplot version number is now 1.2 (upped to 1.3 for |
| 330 |
release 2.1.3 and 1.4 for 2.1.4). |
| 331 |
|
| 332 |
Plotter output, for non-realtime plotting, is now guaranteed to be emitted |
| 333 |
only when deletepl() is called. I.e., graphic output is not necessarily |
| 334 |
written to the output stream after each page is closed. In practice, this |
| 335 |
affects only Postscript output. Emitting PS only after the final page of a |
| 336 |
multi-page graphics file is closed enables the PS to conform to the DSC |
| 337 |
(Postscript Document Structuring Conventions). |
| 338 |
|
| 339 |
Support for many new stick fonts added (mostly available only if using |
| 340 |
`-T hpgl', with HPGL_VERSION=1.5. `Stick fonts' are HP's device-resident |
| 341 |
vector fonts. |
| 342 |
|
| 343 |
If using `-T hpgl' with HPGL_VERSION=1, circles and rectangles aligned |
| 344 |
with the coordinate axes can now be filled. |
| 345 |
|
| 346 |
Names of many Hershey fonts changed, but old names continue to work. |
| 347 |
|
| 348 |
|
| 349 |
Release 2.1.1 |
| 350 |
------------- |
| 351 |
|
| 352 |
No additions to libplot API, though libplot was improved in various ways. |
| 353 |
The libplot version number is now 1.1. |
| 354 |
|
| 355 |
Release 2.1 |
| 356 |
----------- |
| 357 |
|
| 358 |
No incompatibilities with plotutils release 2.0. But many new command-line |
| 359 |
options added to user-level utilities, and the libplot API was expanded by |
| 360 |
the addition of bgcolor() and bgcolorname(). The libplot version number is |
| 361 |
now 1.0. |
| 362 |
|
| 363 |
Release 2.0 |
| 364 |
----------- |
| 365 |
|
| 366 |
In release 2.0 the idea of separate variants of the `graph', `plot', and |
| 367 |
`tek2plot' programs for each display device was finally done away with. |
| 368 |
There is now only a single instance of each program. The display device is |
| 369 |
specified by the `-T' option. |
| 370 |
|
| 371 |
The merging of the device-specific variants was made possible by the |
| 372 |
merging of the device-specific variants of the libplot library on which |
| 373 |
they were based. There is now only a single library, which is structured |
| 374 |
in an object-oriented way. There are new functions, newpl(), selectpl(), |
| 375 |
openpl(), which allow the creation of an arbitrarily large number of |
| 376 |
`Plotter' objects simultaneously. Each Plotter produces output for one |
| 377 |
display device. |
| 378 |
|
| 379 |
On startup of libplot, a single default Plotter is created and selected, |
| 380 |
namely one that produces GNU metafile format. This is for backward |
| 381 |
compatibility: it allows programs written for earlier versions of GNU |
| 382 |
libplot, and even Unix libplot, to link with it and run as expected. If |
| 383 |
you prefer a different default Plotter type, you should select it at |
| 384 |
installation time. For example, including -DDEFAULT_PLOTTER_TYPE=\"ps\" |
| 385 |
in your CFLAGS option will cause the default Plotter to produce |
| 386 |
Postscript output instead. |
| 387 |
|
| 388 |
The libplot API changed in release 2.0 in a few other ways. |
| 389 |
|
| 390 |
1. falabel() was dropped from the API, and alabel() no longer returns a |
| 391 |
value related to the width of the text string that it renders. If you need |
| 392 |
to get the width of a text string, use flabelwidth() or labelwidth(). |
| 393 |
|
| 394 |
2. The semantics of the arc() primitive have changed. It now draws an arc |
| 395 |
that may be clockwise as well as counterclockwise, but is restricted to |
| 396 |
have opening angle no more than 180 degrees. Also, it moves the graphics |
| 397 |
cursor position to the endpoint of the arc. |
| 398 |
|
| 399 |
3. The box() primitive now moves the graphics cursor to the midpoint of the |
| 400 |
box, rather than to the second-specified vertex. |
| 401 |
|
| 402 |
4. endpoly() has been renamed endpath(), and fill() has been renamed |
| 403 |
filltype(). These last changes are temporarily supported by the plot.h |
| 404 |
include file. |
| 405 |
|
| 406 |
As of release 2.0 of the package, libplot has its own, independent, |
| 407 |
versioning system. The version of libplot distributed with release 2.0 is |
| 408 |
numbered 0.0. Beginning with version 0.0, libplot is installed both as a |
| 409 |
static library and as a shared library (a DLL), on machines that support |
| 410 |
shared libraries. |