2014-09-21  Release 4.6.6  (cvs tag Release_4_6_6)

2014-09-14  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/mouse.c (xDateTimeFormat):  Use gnuplot's own ggmtime() instead
	of gmtime() to avoid platform dependant restrictions. Revert last change
	since it's now unnecessary. Fixes display of dates before 1970 and after
	2038 in the status bar on Windows.
	Bug #1470

2014-09-12  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/mouse.c (xDateTimeFormat):  gmtime() might return NULL for
	invalid arguments.
	Bug #1470

2014-09-11  Ethan A Merritt  <merritt@u.washington.edu>

	* src/fit.c (update):  Revert to same code as in 4.6.5.
	Fixes regression that caused "update foo" to fail on linux if foo was
	not in the current directory.
	See bug #1385

2014-09-10  Ethan A Merritt  <merritt@u.washington.edu>

	* term/pdf.trm: Backport two sanity checks from v5.
	May prevent failures reported on OSX due to overlapping strcpy range.
	Bug #1336

2014-09-09  Ethan A Merritt  <merritt@u.washington.edu>

	* src/misc.c (lp_parse parse_colorspec):  Add forward-compatibility
	with v5 syntax that makes "rgb" optional in lc|fc {rgb} "colorname".

2014-08-21  Ethan A Merritt  <merritt@u.washington.edu>

	* src/fit.c:  Handle columnheaders in input to "fit".
	Bug #1467

2014-08-14 Ethan A Merritt  <merritt@u.washington.edu>

	* src/graphics.c (do_rectangle) src/graph3d.c (map3d_position_r):
	Fix y extent and clipping of rectangles with negative y coord or
	inverted axes.
	Bug #1462

2014-08-01 Ethan A Merritt  <merritt@u.washington.edu>

	* src/mouse.c (event_buttonpress):  Trap mouse button click on
	press rather than on release so that "pause mouse {button1|any}"
	takes precedence over a key binding to the mouse button.
	Bugfix

2014-07-31 Ethan A Merritt  <merritt@u.washington.edu>

	* src/syscfg.h:  Revert most of the 2014-07-28 patch with the hope
	of correcting a build problem for bf_test.  All that is left of the
	original patch is the version info for 64-bit Windows.

2014-07-30 Ethan A Merritt  <merritt@u.washington.edu>

	* src/eval.c (update_plot_bounds):  Provide a user-visible copy of
	the current terminal scale (oversampling, etc) as GPVAL_TERM_SCALE.
	Bug #1291

2014-07-28 Allin Cottrell  <cottrell@wfu.edu>

	* src/syscfg.h:  Report 32/64 bit Windows build in version string

2014-07-15 Ethan A Merritt  <merritt@u.washington.edu>

	* src/set.c (set_sep):  Revise parsing of "set datafile separator".
	Allow string constants, keywords "tab" and "comma".

2014-07-12 Ethan A Merritt  <merritt@u.washington.edu>

	* src/parse.c (check_for_iteration):  Fix failure to detect some loop
	[start:end:increment] combinations that should be executed only once
	or not executed at all.
	Bug #1441

2014-07-10  Ethan A Merritt  <merritt@u.washington.edu>

	* src/set.c (set_dummy):  More sanity checks on "set dummy" syntax.
	Bug #1442

2014-07-06  Ethan A Merritt  <merritt@u.washington.edu>

	* src/set.c (load_tic_user):  "set Xtics ()" should clear the list
	of user-specified tics rather than setting tic generation to auto.

2013-07-04  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/internal.c src/win/wcommon.h src/win/wgraph.c src/win/winmain.c
	src/win/wmenu.c src/win/wprinter.c src/win/wtext.c  
	src/win/wgnuplot.rc src/win/wgnuplot.exe.manifest64:
	Backport support for Win64 from version 5 which was originally
	developed by Allin Cottrell.

	* src/win/wgraph.c:  'q' closes graph window.

2014-07-03  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/wxt/wxt_gui.c|h:  Automatically remove reference to frame from
	window list when destroying it. Prevents segfault on program exit when
	windows and wxt windows are open.
	Bugfix

2014-06-30  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/QtGnuplotScene.cpp (mouseReleaseEvent):
	Bugfix for timing problem with click+release of left mouse button.
	The symptom was "sticky" 3D rotation.
	Bugfix

2014-06-17  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graphics.c src/plot2d.c (eval_plots): 
	Unlike all other axes, log scaling was being applied to the color axis
	(cb) in do_plot() rather than in the caller eval_plots().
	This caused "refresh" (as opposed to "replot") to fail.  Move the
	log-scale correction up to eval_plots() like the other axes.
	Bug #1425

2014-06-16  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graphics.c (xtick2d_callback): Clip r axis tics and tic labels to 
	the bounding box of the plot.
	Bug #1290

2014-06-15  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/plot.c (main) src/win/winmain.c|h:
	Fix persist mode on Windows when reading from a pipe.
	See Bug #1322

2014-06-11  Ethan A Merritt  <merritt@u.washington.edu>

	* src/mouse.c (event_reset) src/qtterminal/QtGnuplotWindow.{h|cpp}:
	Window close events from qt were not being passed through to the main
	program, so "pause mouse close" did not work. Also a backgrounded 
	instance could hang rather than exit when the last plot window closed.
	Bug #1418

	* term/post.trm term/cairo.trm:  The "header" keyword for epslatex
	and related terminals can introduce a string of arbitrary length.
	Therefore it is not safe to try to store it in the fixed length 
	term_options character array.
	Bug #1413

2014-06-04  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/plot.c:  Only if a wxt or windows terminal window is open, the 
	-persist option is handled by keeping the main input loop running. 
	This is unfortunate but maybe the best we can do since we are missing
	a process fork or detach mechanism. This eliminates zombie process when
	no plot windows are open in session.
	Bugs #1308, #1335, #1343

2014-06-01  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/fit.c:  'update' fails if parameter file does not exits yet.
	Provide proper error message.
	See bugs #1385 and #1156

	config/config.nt config/config.mgw:  Sync with config.h from configure
	script.

	config/mingw/Makefile:  Use -pipe option to speed up compilation.

2014-05-27  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_readascii): Report status DF_UNDEFINED if a data
	value evaluates to the constant "NaN", just as if we calculated it on
	the fly to be e.g. 1/0.
	Bug #1408

2014-05-26  Ethan A Merritt  <merritt@u.washington.edu>

	* term/js/gnuplot_svg.js term/svg.trm:
	Grey out key entries when corresponding plot is toggled off.

	* src/graphics.c: Autoincremented user linestyle was not applied to
	histograms if the key was disabled. 
	Bugfix

2014-05-23  Ethan A Merritt  <merritt@u.washington.edu>

	* src/boundary.c:  A width adjustment for the length of the key title
	was being applied to every column of entries in the key instead of just
	once for the whole key.
	Bugfix

2014-05-11  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (f_stringcolumn): Return an empty string if asked for
	stringcolumn(N) on an empty field of a *.csv file.  Otherwise it would
	return NULL which may cause a segfault later on.
	Bugfix.

2014-05-02  Ethan A Merritt  <merritt@u.washington.edu>

	* src/gadgets.c (clip_line): It is not safe to use (A*B >= 0) as a
	substitute for the test (sign(A) != sign(B)).
	It fails when A and B are integers and their product overflows.
	Bugs #1390, #1392       See also Bug #1358

2014-04-28  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (f_timecolumn):  This function basically does not work.
	If it ever appears in a using spec slot other than 0 or 1, it will fail
	with either a segfault or a garbage return value because there is no
	no associated timefmt.  Version 5 fixes this by requiring the timefmt to
	be passed as a second parameter. Here we don't redefine the function but
	we try the FIRST_X_AXIS timefmt rather than faulting.
	Bug #1394

2014-04-23  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_readascii):  If a read request returns a string
	rather than a numerical value, nevertheless fill in the numerical 
	value as NaN.  This is better than leaving some random garbage there
	(in practice probably some earlier data value).
	Bugfix.

	* src/term.c (enhanced_recursion):  Consume only a single space
	following the font name in an enhanced test string "{/Font    text}".

2014-04-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.h src/datafile.c:  Change the declared type of all
	variables contributing to file offsets from (int) to (long). This 
	should allow fseek in large (>2GB) files on 64bit platforms.

2014-04-11  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_binary_details[]): Handle int64 and uint64 types 
	even if current platform has sizeof(long) = 4.
	Bugfix

2014-04-08  Ethan A Merritt  <merritt@u.washington.edu>

	* src/misc.c (lp_parse) src/graphics.c (plot_lines do_key_sample):
	New linetype keyword "nodraw" maps to existing internal value LT_NODRAW.
	Apply this in the graphics layer rather than the terminal layer in order
	to distinguish between line properties and point properties.
	I.e. this draws blue points but no lines:
	  plot $FOO with linespoints lt nodraw pointtype 6 lc rgb "blue"
	Bug #1374

2014-04-02  Ethan A Merritt  <merritt@u.washington.edu>

	* src/misc.c: Accept "with image pixels" as a synonym for
	"with image failsafe".

2014-03-24  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graphics.c (place_objects do_rectangle): When fillcolor for an
	object is given as a linecolor it should be interpreted as referring
	to the color of a current linetype.

2014-03-21  Ethan A Merritt  <merritt@u.washington.edu>

	* src/parse.c (check_for_iteration next_iteration):
	Replace overly clever checks for end condition already satisfied with
	one that doesn't fail due to overflow of integer multiplication.
	Bug #1358

2014-03-20  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/set.c:  "set encoding locale" only handles utf8 and sjis. Extend
	this to all supported encodings on Windows, probably the only platform
	where this is still relevant.
	Bug #1270

2014-03-20  Ethan A Merritt  <merritt@u.washington.edu>

	* term/svg.trm:  svg was losing the current linetype (i.e. dash type)
	between drawing the key sample and drawing the main plot.

2014-03-14  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_parse_string_field):  Memory allocation for column
	header strings had O(n^2) dependence on the length of the first line.
	Replace this with an O(n) scheme.  This should also improve performance
	when handling string-value data columns in long input lines.
	Bug #1355

2014-03-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_open df_readascii):  New keyword "skip" tells the
	program to skip lines at the start of an ascii data file.  Note this is
	different from "every ::N", which skips lines at the start of the data
	file but also at the start of each subsequent data block in the file.
	Backport from 4.7

2014-03-03  Ethan A Merritt  <merritt@u.washington.edu>

	* docs/Makefile.in:  Do not include generated file pdffigures.tex
	in the distribution package.

2014-02-26  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/qt_term.cpp(qt_connectToServer qt_waitforinput):
	If the outboard server gnuplot_qt is killed while gnuplot is connected
	to it, it gets restarted with a different server name.  Don't waste
	time trying to connect to a server with the old name.

2014-02-26  Carl Michal <michal@phas.ubc.ca>

	* src/fit.c src/fit.h src/save.c src/set.c src/show.c src/unset.c
	docs/gnuplot.doc:
	"set fit [no]prescale" optionally normalizes fit parameters before
	starting M-L refinement. Backport from 4.7.
	Patch #507

2014-02-26  Release 4.6.5  (cvs tag Release_4_6_5)

2014-02-14  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/qt_term.cpp (qt_waitforinput):
	If the amount of data available via the socket from gnuplot_qt is too
	small to be an event structure, issue an error and continue rather than
	spinning futilely.  Suggested by Yuriy Kaminskiy <yumkam@gmail.com>

	* src/qtterminal/qt_term.cpp (qt_connectToServer):
	The timeout parameter in socket.waitForConnected() cannot be used to
	wait for an unready socket, as that returns an error immediately.
	Rewrite the delay loop using an explicit GP_SLEEP() instead.
	Also increase the overall timeout for the retry loop.

2014-02-11  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/win/wgraph.c:  Horizontal scroll wheel support.

2014-02-04  Ethan A Merritt  <merritt@u.washington.edu>

	* configure.in src/wxterminal/wxt_gui.h:  New configure option
	--with-wx-single-threaded forces the WXT_MONOTHREADED code option even
	if the platform otherwise would default to WXT_MULTITHREADED.
	This is intended to provide a workaround for reported problems using
	the wxt terminal on Haswell CPUs, where apparently gnuplot's use of a
	mutex to synchronize communication with the gui can fail badly.

	* term/svg.trm:  Remove "horrible kludge" added in 2011 to work around
	a bug in Firefox 3.x rendering.  Now it is causing more problems than it
	solves.

2014-01-31  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_tokenise):  Fix off-by-one allocation error
	affecting cvs files.
	Bug #1333

2014-01-30  Jon Gjengset <jon@thesquareplanet.com>

	* src/gp_types.h src/interpol.c src/interpol.h src/plot2d.c
	src/tables.c docs/gnuplot.doc:  New smoothing option "unwrap" adjusts
	input y values by multiples of 2pi so that the difference between two
	successive y values is never more than pi.

2014-01-30  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/QtGnuplotScene.cpp (mouseReleaseEvent):
	Timing initialization failure of mouse clicks can result in a spurious
	event that the program does not handle well.

2014-01-29  Jérôme Lodewyck  <lodewyck@users.sourceforge.net>

	* src/command.c: Update GPVAL_* variables after a refresh command.
	Bug #1327

2014-01-27  Ethan A Merritt  <merritt@u.washington.edu>

	* src/time.c (xstrftime):  Explicit use of (double) when processing
	fractional seconds.

	* src/datafile.c:  [xyz]ticlabels were losing resolution due to being
	passed through a float rather than a double.

2014-01-26  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c:  Fix several problems with autoscaling of plots in 
	polar mode (related to Bug #1323).

2014-01-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/set.c (set_palette_defined set_clip set_encoding):
	Fuzz-testing found improper handling of END_OF_COMMAND cases.

2014-01-11  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/readline.c (readline, ansi_getc) src/win/wtext.c (WndTextProc)
	src/win/winmain.c (ConsoleGetch):  Builtin-readline: Shift-Tab cycles
	through the list of completions in reverse direction.

	* src/win/winmain.c:  Current version of MinGW does not offer working
	version of __argc/__argv, but _argv/_argv. A web search shows that
	MinGW-w64 is different. This is a bug in MinGW's runtime.

	* win/gnuplot.iss (MinVersion):  Minimum required version of the
	installer is XP.

2014-01-10  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c:  Fix iteration over parametric function plots.
	Bug #1314

	* src/datafile.c (df_generate_pseudodata):  Allow use of '++' pseudofile
	to sample the parametric variables U and V in 3D parametric mode.

2014-01-03  Christoph Bersch <usenet@bersch.net>

	* src/graphics.c (do_key_sample):  Apply requested border around filled
	circle or ellipse used as a key sample.
	Bug #1315

2014-01-03  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_generate_pseudodata):  Allow use of '+' pseudofile
	to sample the parametric variable T in 2D parametric mode.

2013-12-31  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/graphics.c (get_arrow) src/term.c (do_arc):  The aspect ratio
	of the internal coordinates of the windows terminal is always one.
	Bug #1253

	* src/win/wtext.c (WndTextProc) src/fit.c (regress):  The ctrlc_flag
	got clobbered due to a missing break statement.

2013-12-31  Ethan A Merritt  <merritt@u.washington.edu>

	Increment patchlevel to 4.6.5

2013-12-29  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/win/wgraph.c (drawgraph) term/win.trm (WIN_filled_polygon):
	Rectangular filled polygons are drawn using boxfill. This routine
	contained a bug in the allocation of an internal bitmap which prevented
	those polygons from being drawn under certain circumstances. The 
	routine was also sensitive to the order of the corner points.
	Bug #1279

2013-12-26  Ethan A Merritt  <merritt@u.washington.edu>

	* src/gp_types.h src/plot2d.c src/tables.c src/interpol.c src/interpol.h
	docs/gnuplot.doc:

	New smoothing option "mcsplines" - piecewise monotonic cubic splines
	calculated using the algorithm of FN Fritsch & RE Carlson (1980),
	SIAM Journal on Numerical Analysis 17: 238-246.

2013-12-21  Ethan A Merritt  <merritt@u.washington.edu>

	* src/Makefile.am: automake 1.14 wants an option subdir-objects
	
	* configure.in src/show.c:
	The option --enable-thin-splines no longer does anything; remove it.

	* src/parse.c (next_iteration): survive clobbered iteration variable
	Bug #1312

2013-12-15  Jyrki Yli-Nokari  <jyrkiylinokari@gmail.com>

	* src/bitmap.c configure.in:
	Jyrki Yli-Nokari, the original author of the code in bitmap.c,
	has agreed to relicense it as dual license (gnuplot + BSD).
	This removes a restriction to non-commercial use imposed by the
	license terms that appeared in earlier versions of file bitmap.c.

2013-12-12  Erik Olofsen  <olofsen@users.sf.net>

	* term/tek.trm:  New terminal driver "sixel" for old DEC terminals
	and printers, emulated by some versions of xterm.

2013-12-12  Ethan A Merritt  <merritt@u.washington.edu>

	* src/util.h (gprintf):  Interpret %h as %g (forward compatibility
	with version 4.7 save files).

	* term/emf.trm:  Invalidate font name at start of each plot.
	Bug #1306

	* src/wxterminal/gp_cairo.c src/wxterminal/wxt_gui.*:
	Modify vertical centering of enhanced text to match default case.
	Bug #1309

2013-12-11  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graph3d.c (key_text):  Apply key title font to key entries.
	Bug #1309

2013-12-11  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* term/emf.trm: Support true pattern-fill. Apply global linewidth.

2013-11-14  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c src/plot3d.c:
	Allowed enhanced/noenhanced key word after individual plot titles.

2013-11-10  Ethan A Merritt  <merritt@u.washington.edu>

	* src/mouse.c (event_buttonrelease): "pause mouse" only worked for
	center and right mouse buttons, not for left mouse.
	Bug #1301

2013-11-09  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/qt_term.cpp (qt_set_color):  Do not change line type
	just because a color request specifies a linetype color.
	Bugfix.

	* Add a check for valid timer status.  This reduces the number of
	spurious events that are passed through to the main program.

2013-11-07  Ethan A Merritt  <merritt@u.washington.edu>

	* src/save.c (save_range):  Due to a typo, the fix/nofix axis property
	was not written out by the "save" command.

2013-10-29  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c src/datafile.h (MAXDATACOLS):  (MAXDATACOLS=7) assumed
	that every column in a using spec needs to be stored in the coordinate
	data structure.  But that is no longer true since xticlabel and friends
	take up a using spec column but store their content elsewhere.  Increase
	MAXDATACOLS from 7 to 11 (6 data + 1 variable color + 4 axis ticlabels).
	Bug #1297

2013-10-27  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graph3d.c src/plot3d.c src/misc.c(lp_parse):
	Fix several bugs involving color assignment to contour lines.
	Unfortunately this negates a previous fix that allowed explicit surface
	colors in a hidden3d plot to implicitly do "set hidden3d offset 0".
	Bug #1284 and others.

2013-10-25  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_readascii df_readmatrix):  If the first field of a
	tab-separated csv file was empty, it would be incorrectly ignored when
	processing that input line.
	Bugfix. 

	* src/wxterminal/wxt_gui.cpp:  Extend toggling active region in key box
	to include enhanced text as well as non-enhanced text.
	Bugfix. 

2013-10-25  Thomas Bleher <tbleher@gmx.de>

	* src/getcolor.c (quantize_gray):  Windows compile error ("small" is not
	accepted as a variable name).

2013-10-23  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot.c (main):  If commands are being executed interactively
	because the user said something like "gnuplot -", then execution should
	continue after an error message just as in a normal interactive session.
	Bug #1295

	* src/mouse.c (event_reset):  Must not send commands to the terminal if
	it has not yet been initialized.

2013-10-23  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot.c (main):  If commands are being executed interactively
	because the user said something like "gnuplot -", then execution should
	continue after an error message just as in a normal interactive session.
	Bug #1295

2013-10-21  Christoph Bersch <usenet@bersch.net>

	* src/gadgets.h  src/graphics.c  src/graphics.h src/save.c src/set.c
	demo/clipobject.dem docs/gnuplot.doc:
	New object attribute clip/noclip.  "clip" retains the current default,
	clip to plot boundary unless one or more vertices are given in screen
	coordinates.  "noclip" clips to the canvas. Does not fix broken ellipse
	clipping.

2013-10-21  Ethan A Merritt  <merritt@u.washington.edu>

	* src/color.h src/set.c src/getcolor.c (quantize_gray):
	Change the algorithm used to assign palette colors in the case
	   set palette defined (...) maxcolors N
	where the gradient boundaries are unevenly spaced. Previous versions
	of quantize_gray() have shown a variety of bad outcomes.  This version
	has fewer, less ugly, bad outcomes but it is still sensitive to the
	choice of maxcolors.  Try changing maxcolors by +/- one if the generated
	palette is bad.
	Bug #1140 and others

	* src/command.c (test_palette_subcommand):  The "test palette" command
	does not need to zero the current input line, and hasn't needed to since
	lf_push/lf_pop were introduced 5 years ago.

2013-10-17  Ethan A Merritt  <merritt@u.washington.edu>

	* src/save.c (place_objects): "show object N" was incorrectly printing
	lines for other objects as well.

2013-10-16  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* docs/gnuplot-ja.doc docs/term-ja.diff:
	Sync with English documentation rev. 1.701.2.30

2013-10-14  Ethan A Merritt  <merritt@u.washington.edu>

	* src/pm3d.c: Allow "set pm3d top/bottom" and "set pm3d interpolate N,M"
	to be active at the same time.

	* src/axis.c (gen_tics): Suppress log-scaled mtics and minor grid lines
	that would lie on top of the major tic/grid.
	Bug #1292

2013-10-06  Tag	Release_4_6_4

2013-10-02  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c (polar_range_fiddling):  In a polar mode plot, if x, y,
	and r axes are all auto-scaled then prefer a symmetric plot centered at
	the origin with radius rmax over an asymmetric plot produced by treating
	the data ranges on x and y independently.

2013-10-01  Christoph Bersch <usenet@bersch.net>

	* src/plot2d.c (store_label):  Plots with labels should accept variable
	color both for the label text and for the associated point symbol.
	Bug #1281

2013-09-30  Josh Ovi  <joshovi@users.sourceforge.net>

	* src/graphics.c (plot_bars):  y errorbar whiskers were incorrectly
	drawn at the end of a clipped error bar.  If the error bar is clipped
	then it should have no whisker.
	Bug #1289

2013-09-26  Ethan A Merritt  <merritt@u.washington.edu>

	* src/axis.h:  Fix order of axis format initializers. Fortunately
	these were overwritten correctly on program entry by reset_command.

2013-09-23  Ethan A Merritt  <merritt@u.washington.edu>

	* docs/Makefile.in:  It is not an error if a file to be uninstalled
	is already gone.

2013-09-20  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graphics.c (place_grid):  Must initialize tic_direction when
	drawing r-axis tics.  Otherwise we get whatever the last set of
	x or y tics used, or if they have not been used then nothing at all.
	Bug #1286

	* src/qtterminal/QtGnuplotScene.cpp(QtGnuplotScene::processEvent):
	Revert one line of patch from 2013-05-23. typo? thinko? Anyhow it
	can cause gnuplot_qt to freeze or terminate.
	Bugfix

	* src/graphics.c(do_key_layout): If the terminal doesn't support
	set_color() we can't produce an opaque key box. 

2013-09-17  Ethan A Merritt  <merritt@u.washington.edu>

	* term/emf.trm (EMF_point): filled circles (pointtype 7) were
	incorrectly being drawn with a black border.

2013-09-15  Ethan A Merritt  <merritt@u.washington.edu>

	* missing:  Current autoconf complains that our "missing" script is too
	old.  Replace it with a version timestamped 2012-06-26.16.
	Unfortunately I don't see how to modify this one to package or install
	on machines without makeinfo. So...

	* docs/Makefile.in:  install-info is no longer a default target.
	You can still do "make install-info" as always if you really want it
	and you do have makeinfo installed.

2013-09-11  Christoph Bersch <usenet@bersch.net>

	* src/set.c src/unset.c: Sanity check "set style increment foo" command,
	reset to default on "reset" command.
	Bug #1282

2013-09-10  Ethan A Merritt  <merritt@u.washington.edu>

	* pm3d.c (set_plot_with_palette): "tc variable" was incorrectly causing
	the color bar to be drawn by default.

	* graphics.c (check_for_variable_color): "lc variable" should index the
	line _type_ (not _style_) colors unless "set style increment user".
	Bug #1281

	* plot2d.c (store_label):  Same fix for "with labels tc variable".
	Bug #1281

2013-09-09  Ethan A Merritt  <merritt@u.washington.edu>

	* term/cairo.trm (cairopng_write_cropped_image):  Must free cropped image
	and the structure that holds it, otherwise there is a memory leak.
	Bug #1278

2013-09-06  Ethan A Merritt  <merritt@u.washington.edu>

	* scanner.c (scanner):  The syntactic entity $# (number of arguments
	in a call statment) has been mishandled as introducing a comment since
	sometime in version 4.5.  Trap it as a special case in the scanner.
	Bugfix

2013-09-05  Ethan A Merritt  <merritt@u.washington.edu>

	* configure.in docs/titlepag.tex PATCHLEVEL src/version.c:
	Bump patchlevel to 4.6.4

2013-08-28  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>

	* config/mingw/.cvsignore: Ignore *.d, *.par and *.log, like the
	trunk version does.

2013-08-24  Ethan A Merritt  <merritt@u.washington.edu>

	* src/gplt_x11.c term/x11.trm:  Use more precision when writing out
	the axis dimensions and scale at the end of a plot.  This prevents
	rounding errors in the mouse coordinates reported in -persist mode.
	Bug #1276

2013-08-23  Petr Mikulik  <mikulik@physics.muni.cz>

	* src/term.c (test_term): "test" was not respecting "set origin".

2013-08-21  Ethan A Merritt  <merritt@u.washington.edu>

	* src/fit.c (regress):  Do not destroy the contents of chisq in the
	course of doing parameter scaling.  This is a bug just waiting to hit.
	Bug #1275

2013-08-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/eval.c (update_gpval_variables):  Missing GPVAL_* entry
	for R_AXIS.max.

2013-08-08  Ethan A Merritt  <merritt@u.washington.edu>

	* src/axis.c:  Add comment noting that axis_position_zeroaxis() must
	be called for each axis before plotting in order to set axis->term_zero.

	* src/graphics.c:  It is incorrect to skip the initial calls to
	axis_draw_2d_zeroaxis even if we know the zero axes will be drawn
	again later (e.g. grid is off or front).
	Bug #1267

	* src/datafile.c:  Fix segfault from trying to store strlen of a
	NULL column header string.

2013-08-06  Ethan A Merritt  <merritt@u.washington.edu>

	* src/eval.c (pop_or_convert_from_string):  Context-dependent 
	conversion of a string containing a number to an actual number is
	documented as evaluating to either an integer or a complex variable as
	appropriate.  However up to now it has always produced a complex in
	practice.  Now we really do evaluate to an integer if the string
	contains only digits and whitespace.
	Bug #1269

	* src/datafile.c:  Generalize the substitution of columnheaders into
	a string during evaluation of 'using' or 'title' in a plot command.
	This allows inclusion of more than one columnheader into a single
	resulting string.
	Bug #1271

2013-07-22  Ethan A Merritt  <merritt@u.washington.edu>

	* src/command.h src/command.c (string_expand_macros do_line)
	src/misc.c (load_file):  Under some conditions, e.g. inside a multi-line
	clause in curly brackets, the input command line can be extended after
	it has already been checked for the presence of macros.  This caused any
	macros in the new part of the input line to be unrecognized.
	Now we recheck for macros whenever the input line is extended.
	Bug #1264

2013-07-06  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/win/wtext.c:  Accept Ctrl-C to copy to clipboard.  Fix index out
	of range error if text selection extends beyond the end of line.

2013-07-05  Dima Kogan  <dima@secretsauce.net>

	* configure.in:  Test for incomplete installation of wxWidgets
	development environment.

2013-07-03  Mojca Miklavec  <mojca.miklavec.lists@gmail.com>

	* src/command.c src/plot.c src/variable.c:
	Remove obsolete instances of #ifdef (_Macintosh)

2013-07-03  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graph3d.c: Better fix for	Bug #1252, inverted parallel axis labels

2013-07-02  Ulrich Müller  <ulimueller@users.sf.net>

	* docs/doc2texi.el:  Provide a substitute for the lisp routine
	replace-regexp-in-string, which is missing in xemacs prior to version
	25.1.something.

	* docs/Makefile.in:  Modify build commands for gnuplot.texi so that
	xemacs and newer emacs (25.1) are happy.

	* docs/doc2texi.el:  Map terminal HELP sections to level 3 (subsection)
	and level 4 (subsubsection) rather than levels 4 and 5.
	Bug #1226

2013-07-02  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (plot_ticlabel_using):  Explicit error message if
	required parentheses are missing from using spec.
	Bug #1256

	* src/time.c (gstrptime): Pass through fractional seconds read with
	time format "%s"

2013-06-28  Ethan A Merritt  <merritt@u.washington.edu>

	* src/misc.c (load_file): Expand macros up to 3 levels deep when 
	stepping through a "load" operation.  This matches the depth allowed
	at the top level command line.
	Bug #1246

	* src/graph3d.c (draw3d_graphbox):  "set [xy]label rotate parallel"
	is affected by the direction of the complementary axis.
	Bug #1252

2013-06-27  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>

	* src/graphics.c (do_ellipse): Repair atrocious pointer casts
	spotted by J. Bollinger.

2013-06-24  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/util.c|h (existfile):  New (missing) routine.

2013-06-22  Mojca Miklavec  <mojca.miklavec.lists@gmail.com>

	* term/context.trm: Explicitly disable color in standalone ConTeXt
	documents when monochrome option is chosen.

2013-06-18  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* src/datafile.c (plot_option_every):  Treat negative numbers as
	indicating "default value".

2013-06-16  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_tokenise):  Get rid of erroneous test against
	axis_array[foo].timefmt (always evaluates as TRUE).

2013-06-07  Thomas Mattison  <mattison <at> phas.ubc.ca>

	* src/fit.c (regress):  Fit did not converge if maximum lambda was
	exceeded.  Add new message for this case.
	Patchset #230.

2013-06-07  Bastian Maerkisch  <bmaerkisch@web.de>

	More backports from version 4.7

	* src/fit.c (fit_command):  Always initialize variables which might be
	set by user variables.  This is necessary since user variables may be
	`undefine`d.

	* src/fit.c (backup_file):  Remove code path for Win32s.  Backup files 
	will not get overwritten.  Add error message for that case.

	* src/fit.c (fit_command):  Log file contained the wrong variable name
	for axis restrictions.  Reported by Victor Slabinski on gnuplot-bugs.

	* src/fit.c|h src/win/wgraph.c src/win/wtext.c:  Ctrl-Break interrupts
	fitting runs in wgnuplot.

	* src/win/winmain.c|h (WinRaiseConsole) src/fit.c src/win/wgraph.c
	src/wxterminal/wxt_gui.cpp: Consolidate code to raise console in new
	routine.

	* src/win/wprinter.c (PrintDlgProc):  Verify that printer info is actually
	available.
	Bug 1152.

	* src/win/wgraph.c (SaveAsEMF, CopyClip):  Turn off antialiasing during
	export to EMF or clipboard in order not to mix GDI and GDI+ calls.  See
	also change on 2012-07-25.

	* src/win/wgraph.c:  Recreate fonts after resizing the graph window.
	This bug causes the plot just to be scaled to the new size, without
	adjusting spacing/borders etc.
	Bugfix.

	* config/makefile.nt:  Superseded by msvc/Makefile. Removed.

2013-06-07  Bastian Maerkisch  <bmaerkisch@web.de>

	More backports from version 4.7

	* term/win.trm (WIN_options):  Validate argument to title option.

	* term/win.trm (WIN_filled_polygon): Filled polygon are always closed.
	Ignore the last corner if it's the same as the first one.

	* src/win/wgraph.c: Recreate fonts after resizing the graph window.

2013-06-03  Ethan A Merritt  <merritt@u.washington.edu>

	* src/wxterminal/wxt_gui.cpp (wxt_sigint_handler):  The wxt terminal
	deadlocks if connection to the X-server is lost (Bug #991).  Ctrl-C
	doesn't break the deadlock because this interrupt handler simply flags
	the signal and waits for the parent process to handle it.  Parent and
	child are thus waiting on each other -> deadlock.  Now we add a test
	for Ctrl-C arriving when the Ctrl-C flag is already set, and exit if
	it happens. Thus hitting Ctrl-C twice breaks the deadlock.
	Not great but better than hanging.
	Bug #991.

2013-05-24  Ethan A Merritt  <merritt@u.washington.edu>

	* src/wxterminal/gp_cairo.c term/cairo.trm term/context.trm term/wxt.trm:
	Calls to strncat were risking buffer overflow by not accounting for the
	terminating '\0'.  (backported from 4.7 patch 2012-11-29)

2013-05-23  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c (get_data): Treating timedata columns as strings allows
	functions column(N) and column("HEADER") to work on time data.
	Bug #1161

	* src/qtterminal/QtGnuplotScene.cpp: Enhanced text elements were not 
	being added to the current display group, so they were ignored by the
	plot toggling operation.  Now they are handled like any other text.

	* src/graphics.c:  Fix two errors in the linetypes used by plot style
	columnstacked histograms.  The key sample ignored "newhist lt N" and
	also was off by one in the fillstyle used.  "set style increment user"
	caused an off-by-one error in the choice of initial line style.

2013-05-20  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* term/emf.trm:  It doesn't work to call EMF_setfont() before we
	enter graphics state.  Bugfix.

2013-05-10  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c:  Valgrind found a case where df_column[foo].position
	had never been initialized.  Boom.

2013-05-07  Ethan A Merritt  <merritt@u.washington.edu>

	* term/canvas.trm term/svg.trm:  The 4.6 canvas and svg terminals both 
	require additional information about axis layout in order to correctly
	provide mouse coordinates for inverted axes (axis_min > axis_max).
	This patch changes the output files produced by gnuplot 4.6 so that the
	same javascript mousing code works for both 4.6 and 4.7 output.
	Bug #1230

2013-04-28  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c (df_tokenise check_missing):  Treat empty fields in
	a csv file as "missing" rather than "bad".  This allows generating
	stacked histogram plots from a csv spreadsheet of sparse data.

2013-04-22  Ethan A Merritt  <merritt@u.washington.edu>

	* src/wxterminal/wxt_gui.cpp (wxt_init):  Exit cleanly if initialization
	fails.

	* src/wxterminal/gp_cairo.c (gp_cairo_set_font):  Allow backslash ('\\')
	to be treated as an escape character in font names.  This can be 
	necessary if the font name contains a hyphen since otherwise it would be
	converted to a space.

	* src/qtterminal/QtGnuplotScene.cpp (processEvent):  Add pixmaps to
	current plot group so that image plots can be toggled.

2013-04-14  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>

	* docs/Makefile.in (gnuplot.info): Fix out-of-tree build (would
	break make distcheck, too).

2013-04-12  Tag Release_4_6_3

2013-04-12  Ethan A Merritt  <merritt@u.washington.edu>

	* src/stats.c:  Fix incorrect memory allocation for large matrices.

2013-04-11  Ethan A Merritt  <merritt@u.washington.edu>

	* Bump patchlevel to 3 so that we don't have a version mismatch
	between the linux and windows packages being distributed.

2013-04-10  Ethan A Merritt  <merritt@u.washington.edu>

	* term/pslatex.trm (EPSLATEX_set_color):  Revert a portion of the patch
