Patches for gnuplot-3.7.1. Unless noted otherwise, use the -p1 option of patch to apply these diffs. =============================================================================== acosh_acos_fix.20000427 Apply without -p1! Patch by HBB to fix incorrect acosh calculation for complex arguments with negative imaginary part. boxwidth The command 'plot "datafile" with boxes' does not take the width of boxes from the third column of the data file. (It always follows the pre-assignment by 'set boxwidth' or auto-scaling.) Patch by MASUDA Kooiti . =============================================================================== command-substitution Original patch by James R. Van Zandt to allow command substitution in quoted strings, ported to 3.7.1. Does not work within single quoted strings. =============================================================================== contour-clipping.991202 Attempt at fixing the old contour clipping bug. By HBB. =============================================================================== contour.c.fix.991130 Fix segfault in contour handling. From HBB's post to bug-gnuplot: The problem was a slightly incorrect way to merge two linked lists described by head and tail pointers, each of which might be empty (both pointers NULL) at the time of the merge. It didn't correctly account for the case of the second list (p_edge2, pe_tail2) being empty, as well. Second time this point of the code was hit, in the example case, it'd try to write through a NULL pointer. Patch attached. =============================================================================== dynamic-contour-levels Original patch by James R. Van Zandt to remove fixed limit for contour levels. =============================================================================== fbsd-sigfpe.patch.2 Patch to disable floating point exceptions on FreeBSD. A more general solution should be found, so this patch is not going to make it into the gnuplot source tree. =============================================================================== figtext (see also Debian bug#61972). With the latest transfig release, "Special" LaTeX text is not included in the bounding box anymore. As the fig driver marks all text as "special", fig2dev truncates its output. The patch sets SPECIAL_TEXT in the generated fig file only if the text string actually includes a LaTeX command, and 0 otherwise. =============================================================================== gif-font Options parser didn't recognise the "giant" font option. =============================================================================== hpgl.diff Extensive upgrades by Jeremy Brenes: * Modified February 99 by Jeremy Brenes to give PCL5 terminal optional * multi-pen support (6 pen default), a default 34" plotting width for * use with large color plotters such as the HP Designjet 750C, * various alternative plot sizes, and variable fontsizes; * Also decreased the HPGL terminal's fixed fontsize to make it more * reasonable when plots get scaled to 34" * Modified July 99 by Jeremy Brenes to make extended plot area smaller; * added solid/dashed lines option, additional font types, mixed fonts * Modified November 99 by Jeremy Brenes to add a postscript pointtypes * option, special purpose negative pointtypes, and a pointsize function =============================================================================== hidden3d-endlessloop Fix an endless loop in the hidden3d code. From HBB's post to bug-gnuplot: There's a loop-end condition that seems to be overly strict in hidden3d.c routine in_front() (around line 2140, in 3.7.1). Result of that is that hidden3d gets into exactly that type of endless loop which that very condition was originally set up to untie. The problem only happens if there actually is a cyclic overlap of polygons -- each is partly hidden by the next one in the cycle, so none can be drawn before all the others, without introducing display error -- and furthermore, none of them can be split along the plane of one of its neighbours in the cycle, in order to break the deadlock. The problem is a bit worse than that, as there are no safe actions left, at the time of this test. All other cases are covered, already, so there's only one thing left to do: produce known-incorrect output. That's why, by default, the other branch of that test is an error message. I've disabled that message for non-debugging compilation (DEBUG not defined), so the program will now (quietly!) produce incorrect output, if nothing else helped. =============================================================================== hpux-obscure-bug Older patch to work around a bug in cc on HP-UX 9.10, HP9000/300. =============================================================================== key-below-clipping Key entries are clipped against the wrong x range. This patch was accidentally left out of 3.7.1. =============================================================================== png-web216.4 Major update to the png driver: o now shares web216-palette subset with gif driver (currently 99 colours) o transparency option added o now allows specification of explicit RGB colour specs Acknowledgments: original changes by Eric S. Raymond, updates and fixes by Hartmut Freihofer and HBB. This patch includes and supersedes the png-invalid-sbit patch previously found here (libpng warning: Invalid sBIT depth specified). Revision 3 includes the latest bugfixes, revision 4 adds a patch by Gary Johnson to issue the "too many colours" warning only once. =============================================================================== post-oblique Patch by Thomas Henlich : Provides an oblique symbol font, e.g. set xlabel 'b' "Symbol-Oblique" gives an oblique (slanted) beta character. =============================================================================== pslatex.trm.fix Patch by Pieter-Tjerk de Boer to fix another segfault in pslatex.trm. =============================================================================== rl_term Patch by Jeff Spirko , suggested by Peter Maunz , to allow terminal dependent configuration of readline features. =============================================================================== save-position Patch by Jeff Spirko : In gnuplot-3.7.1 and gnuplot-3.8a, the strings used in save_position() to save the scale appropriate for given coordinates ("first_axes", "second axes", "graph", "screen") are incompatable with what get_position() is looking to match ("first", "second", "graph", "screen"). The result is that a plot with coordinates referenced to second axes (or sometimes the first) cannot be loaded. =============================================================================== specfun.patch The gamma, inverse normal, and inverse error function have been removed in 3.7.2 and cvs due to a non-commercial use clause, thereby allowing gnuplot to be distributed with Debian Linux. The effect of this removal is that these functions are not available anymore on platforms wothout a native implementation. The patch re-adds these functions. =============================================================================== splot_keybelow.fix.20000412 The key sample was being clipped to the graph box (2D rectangle around the 3D plotting area), even if the key had explicitly been requested to be outside that area. Patch by HBB. =============================================================================== table-format.2 The documentation for the table terminal says that the data format is determined by the format of the axis labels (see `set format`), the formats are all hard coded to "%g". Original patch by Don Taber, improvements by Lucas Hart and Lars Hecking. =============================================================================== vector-clip.2 From: Shusuke Nisiyama Subject: vector clipping patch +'vector' plots are clipped as 'line' (set clip {one|two} also affect) +tics marks on axis are put on ture axis (ZERO is not 0 but 1e-8) +axes positons are not calculated when it is out of borders (if drawing area is far away form x-axis, map_x(0) becomes too large to cast into int) Revised by Shusuke Nisiyama and Mori Kouji , on Fri, 4 Feb 2000. =============================================================================== win-mono-ls The linestyles of point symbols are not solid in monochrome mode on a Windows-terminal (Win95). Instead, the symbols are drawn (the small lines that the symbols are made of) using the current linestyle of that particular line (which makes them appear stupid). This patch adds initialisation of the relevant Windows data structure. =============================================================================== writeback-fix Fix the broken range-writeback option in gnuplot 3.7.1. By Ulrich Gruenebaum . this is an attempt for a bug-fix for the broken autoscale writeback command in Gnuplot 3.7.1. It is not perfect as is described below. It was tested on a PC running Linux and on a SUN ultra running Solaris 2.6. The writeback problem is described as item 3. in "0BUGS" in the gnuplot 3.7.1 distribution. I include an example which demonstrates the bug resp. the bug-fix as well as a diff file for "plot2d.c" which fixes the bug. ** I don't have very much insight into gnuplot, so someone with a deeper knowledge should have a look on this. ** In my applications the bug-fix works fine but I found one minor problem: if the writeback plot sets a *smaller* y range than the following data has, the following plots draw outside the the diagram, i.e. they exceed the drawing area. Example sequence to demonstrate the writeback bug and the remaining minor problem: $ cat > data 1 0.9 1 0.5 2 2.1 2 2.5 $ gnuplot gnuplot> set grid gnuplot> set multiplot multiplot> set yrange [] writeback multiplot> plot "data" u 1:2 w lp multiplot> set noautoscale y multiplot> plot "data" u 1:3 w lp multiplot> exit $ Example explanation: The first plot (column 2, data range from 0.9 to 2.1) sets ytics from 0.8 to 2.2. Without the bug-fix, the second plot (column 3, data range from 1.0 to 2.0) uses ytics from 0.9 to 2.1 (should be 0.8 to 2.2). With the bug-fix, change the second plot command to 'plot "data" u 1:4 w lp' (column 4, data range from 0.5 to 2.5), this will plot outside the drawing area, I don't know why.