2013-04-12  Tag Release_4_6_3

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

	* src/stats.c:  Fix incorrect emory 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
	from 2013-01-08 (Tracker #1199).  Repairs overzealous removal of redundant
	color commands.  Bug #1185.

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

	* src/graphics.c (plot_image_or_update_axes)
	src/plot2d.c (refresh_bounds):  When refreshing images plots we must 
	recheck range limits on both x and y.

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

	Backports from 4.7 relevant for the Windows platform:

	* src/win/wgraph.c src/win/winmain.c|h (WinMessageLoop) src/win/wtext.c:
	Move Windows message handling from TextMessage() to new WinMessageLoop()
	and make it accessible in Windows console mode.

	* src/win/wtext.h (getchar): Make sure that getchar is defined.

	* src/win/wcommon.h src/win/wtext.c (TextShow) src/win/winmain.h
	src/win/winmain.c (WinWindowOpened, WinPersistTextClose)
	src/win/wgraph.c (WndGraphProc) src/wxterminal/wx_term.h
	src/wxterminal/wxt_gui.h src/wxterminal/wxt_gui.cpp (~wxtFrame, 
	wxtFrame::onClose, wxt_window_opened, wxt_atexit) src/plot.c (main)
	Revise handling of persist mode on Windows: Exit wgnuplot only after the
	last plot window (wxt or win) has been closed. The text window is only
	shown if "-" is given on the command line. No zombie wgnuplot process
	when closing a persistent wxt terminal window. Console gnuplot behaviour
	stays unchanged.
	Bug #3538762

	* src/plot.c (gnu_main) src/win/winmain.c (main): The Windows version
	used to handle the persist command line option in winmain.c. Moving
	it to plot.c ensures that the same options are supported on all
	platforms. See Bug #3538762

	* src/plot.c (main): Restore a code snippet for the Windows platform
	which got removed by accident on Feb 3rd. Fixes -persist mode on
	Windows.

	* src/win/wgraph.c (WndGraphProc), src/wxterminal/wxt_gui.cpp
	(wxtPanel::RaiseConsoleWindow), src/wxterminal/wxt_gui.h: 
	Implement space-raises-console for console mode gnuplot.

	* config/mingw/Makefile:  Extend use of VPATH which makes some explicit
	rules superfluous. Automatically create dependency .d files during
	build. Include current date in filenames of zip-file and installer for
	non-release builds. Remove long-unused WINDOWS variable.

	* win/gnuplot.iss win/README-Windows.txt win/README-Windows-ja.txt:
	Release 4.6.2

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

	* src/qtterminal/QtGnuplotScene.cpp (processEvent):  Fix off-by-one
	iteration over visibility of plots after a zoom or other replot.

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

	* src/term.c (term_apply_lp_properties): A patch of 2013-01-08
	switched to always applying linetype color even if the use_palette
	flag was not set.  This broke the TERM_MONOCHROME setting on terminals
	that have it, as seen in the "test" command.
	Handle monochrome terminals as a special case.
	Bug #1225

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

	* docs/Makefile.in: Remove nested @ symbols from Makefile

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

	* src/plot2d.c src/misc.c (lp_parse):  The "fillcolor|fc" keyword
	in a plot command was not correctly parsed.

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

	* configure.in: modify for use with current automake (1.12/1.13)

2013-03-14  Tag Release_4_6_2

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

	* src/datafile.c src/datafile.h src/plot2d.c src/plot3d.c:
	Issue a warning if a requested column header is not found in the
	data file being plotted.  Document that an exact match is required.

2013-03-10  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>

	* term/lua.trm (LUA_Init): Better way of ignoring a return value.

	* src/graphics.c (do_plot): Type-correct enum usage.

	* src/color.c (cbtick_callback): Type-correct enum usage.

	* term/x11.trm (X11_options): Fix compiler warning about excess
	argument to fprintf().

	* src/plot3d.c (eval_3dplots): Type-correct enum usage.

	* src/plot2d.c (eval_plots): Type-correct enum usage.

2013-03-09  Dima Kogan  <dima@secretsauce.net>

	* src/plot3d.c (refresh_3dbounds):  Partial axis ranges, e.g. [*:MAX] or
	[MIN:*] were not being handled correctly when refreshing volatile data.

	* src/plot2d.c (refresh_bounds) src/plot3d.c (refresh_3dbounds):
	Extend degenerate range when refreshing.

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

	* src/plot2d.c:  Allow a 2 columns only variant of "with yerrorbars".
	x is taken from column 0, y from column 1, yerror from column 2.

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

	* src/plot2d.c (refresh_bounds):  Partial axis ranges, e.g. [*:MAX] or
	[MIN:*] were not being handled correctly when refreshing volatile data.

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

	* term/aquaterm.trm:  Revert patch of 24-Apr-2012 because it breaks
	rgbimage with aquaterm 1.1.  Reversion confirmed to fix the problem
	by Alexander Hansen of Fink.
	Bug #1188

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

	*  src/plot.c:  The old test for whether a session was interactive 
	assumed that everything on the command line was either an input file
	name or an x11 option parsed by X11_args. This broke because
	(1) X11 is no longer the only interactive terminal.
	(2) There are options that occupy space on the command line but are
	not file names.  Some indicate non-interactive; some don't.
	Replace this test with one that only enters a non-interactive session
	if there are command line arguments that do not begin with '-' 
	(filename) or _do_ begin with '-e' (inline command).
	(Back-ported file plot.c from version 4.7)
	Bug #1212

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

	*  src/graphics.c (boundary):  Rotated x-axis tic labels are set
	automatically to right justify, but this happens too late for the code
	that reserves space for them.  Test for this as a special case.
	Bugs 1204, 1209

	* src/wxterminal/wxt_gui.cpp (wxt_update_key_box):  Fix array overrun
	caused by many 'notitle' plot appearing before any titled plots.
	Bug 1211

2013-02-18  Christoph Bersch  <cbersch@users.sf.net>

	* src/graphics.c:  Draw the zero axis lines in the same front/back
	layer as the axis and grid lines.

2013-02-17  W. Trevor King  <wking@tremily.us>

	* configure.in src/datafile.c (df_open) docs/gnuplot.doc:
	New special file syntax  "<&N"  plots data read from an arbitrary file
	descriptor.  This allows setting up multiple input pipes to gnuplot
	when it is invoked from a shell.

2013-02-17  Craig DeForest  <deforest@boulder.swri.edu>

	* src/datafile.c (df_readbinary):  Add special case code to read in a
	uniform binary matrix in one large chunk rather than reading one matrix
	element at a time.  When piping a 2000x2000 RGB matrix under linux this
	speeds the input stage from about 9 seconds to about 2 seconds.

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

	* src/plot.c:
	-d or --default-settings Skip reading gnuplotrc and ~/.gnuplot on entry.

	* src/plot.c:
	Don't assume that X11_args() is there to help parse command line options.
	Bug #3601907

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

	* src/command.c (invalid_command): When an invalid command is detected,
	advance the input parsing pointer (c_token) to the end of the command.
	Otherwise we're left in the middle of an invalid command after the
	error message is printed.

	* src/command.c (read_line):  Reset the token count to zero when
	starting to read a new line of input.  Otherwise if the read is
	interrupted by a mouse event requesting a replot then the internal
	state is not valid.  Test case:   cat | ./gnuplot      plot and zoom
	Bug #3602388

	* src/term.c (term_apply_lp_properties):  Always apply linetype color,
	even if the flag use_palette is not set.  Many terminals cope with this
	on their own, but not all of them (e.g. cairolatex).
	Bug #3599916

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

	* util.c (gprintf):  Initialize output buffer so that an empty format
	does not leave an unitialized string.  Test case:
	set format "%B %b"; plot x

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

	* src/set.c (set_timefmt):  Accept the new format as a string variable.
	Bug #3602057

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

	* src/hidden3d.c:  Up until now hidden3d handled any pm3d surfaces as
	a collection of points, which did essentially nothing at all.  Now we
	treat them as invisible lines (LT_NODRAW) so that they can occluded
	other objects.
	This trick was already used in hidden2.dem but now it's built in.

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

	* term/x11.trm:  Right- or Center- justified enhanced text was losing
	track of the font size.  This bug was evident in "key.dem".

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

	* src/plot2d.c src/plot3d.c:  Downgrade detection of a trailing comma
	in a plot command to a warning rather than an error.  This allows more
	convenient re-ordering of multi-line plot elements when replotting.
	(Backport from 4.7)

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

	* term/pslatex.trm (EPSLATEX_layer):  Reset current text color at the
	start of each layer's block of TeX output.
	Bug #3599916

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

	* src/plot.c (main): Unbuffered stdin is needed for readline even if
	X11 is not configured, as suggested in the comment added in 2004.

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

	* src/graphics.c (do_polygon): Skip degenerate polygons (fewer than 2
	vertices).

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

	* src/command.c (replotrequest):  #ifdef VOLATILE_REFRESH is needed with
	./configure --disable-volatile-data

2012-12-27  Daniel J Sebald <daniel.sebald@ieee.org>

	* configure.in:  Repair shell syntax used to control the definition
	of CC and CXX for cross-building.

2012-12-27  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* term/emf.trm:  Adjust vertical centering of characters to match 
	current font size.

2012-12-19  Olaf Booij  <obooij@users.sourceforge.net>

	* src/graph3d.c:  In 3D plots with 'set view equal xyz' the point about
	which zoom operates should be in the middle of the screen, not at z=0.

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

	* src/term.c (enhanced_recursion):  Depending on the terminal type and
	the current encoding, improper enhanced text syntax could cause anything
	from garbage text to a segfault:
	  set termopt enhanced; 
	  set label "~"; plot [0:1][0:1] '+' using 1:1:("~^") with labels
	Bugfix

	* src/gplt_x11.c:  Change the fallback font string used when the current
	encoding is UTF-8 (iso10646-1) or when all else fails (iso8859-1).  This
	is admitted biased towards English as a default, but the previous string
	(*-*) does not work for common recent x11 implementations.

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

	* term/post.trm (set_font): quick fix to redefine vshift every time the
	current font size changes. A better fix would query the font internally.
	The failure to do this led to poor vertical centering of text using any
	font other than the default, and bad key box layout for small key fonts.

	* term/svg.trm (set_font): Similar fix for svg.

	* src/wxterminal/gp_cairo.c (gp_cairo_draw_text): and for wxt.

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

	* src/datafile.c:  If a data column requested by name is not found,
	treat it as undefined (DF_UNDEFINED) rather than terminating data input
	with int_error().  This makes the treatment of named columns more like
	that of numbered columns.
	Bug #3595672

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

	* term/svg.trm:  Background color 0x0 was incorrectly interpreted as
	"none" rather than "black". Bugfix.

2012-11-20  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c:  Truncate requested column number to maximum sane
	value. This prevents a segfault on "plot $foo using 1 title column(999)"

2012-11-15  Ethan A Merritt  <merritt@u.washington.edu>

	* src/tabulate.c:  Fix the hexadecimal format used to output RGB color

	* term/canvas.trm term/js/canvasmath.js:  Backport updates from 4.7

	* src/gplt_x11.c:  Depending on the order of linetype changes, the
	code could fail to reset the current linewidth.
	Bug #3348942

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

	* src/datafile.c (plot_option_using):  The check for a format spec given
	after the list of columns  (e.g.  plot FOO using 1:2 "%lf; %lf") was
	lost in a code reorganization, so it was missing in 4.6.0 and 4.6.1.
	Restore it.  Bug #3586441

	* src/plot2d.c (check_or_add_boxplot_factor): Fix memory leak.

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

	* src/misc.c (parse_color_name):  If the expression term in
	`linecolor rgb <expression>` is not interpretable as a color name or 
	hexadecimal string "#AARRGGBB" then treat it as an integer representing
	AARRGGBB.

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

	* src/axis.c (gen_tics):  Axis tic labels provided by the user as string
	constants were arbitrarily truncated to MAX_ID_LEN before printing.
	No truncation is necessary.
	Bug #3585182

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

	* src/util.c (gprintf): Ever since the gprintf routine was added
	(sometime before version 3.7) the count parameter that should limit how
	many characters are written on output has been silently ignored.
	Obviously this can lead to buffer overflows, the simplest case being a
	format consisting of a string constant with length > MAX_ID_LEN.
	Revise gprintf() to use snprintf() and safe_strncpy() throughout.
	Bug #3577439

2012-11-01  Ethan A Merritt  <merritt@u.washington.edu>

	* src/qtterminal/qt_term.cpp src/qtterminal/QtGnuplotScene.cpp
	src/qtterminal/QtGnuplotWidget.cpp:  Fix mouse tracking and resize
	events for persistent qt windows.

2012-10-31  Ethan A Merritt  <merritt@u.washington.edu>

	* src/parse.c (parse_reset_after_error) src/parse.h src/util.c:
	Error exit from inside try_to_get_string() left the internal flag for
	string parsing in an incorrect state.  Provide a reset routine.
	Example of original bug:	stats file"
					print 1+2
					       ^ ';' expected

2012-10-30  Ethan A Merritt  <merritt@u.washington.edu>

	* src/command.c: Fix a coding error, (sizeof((char *)buf) rather than
	(strlen((char *)buf)), that can cause a buffer overrun on 64-bit
	machines.  Found by valgrind.

2012-10-28  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graph3d.c: Save axis scaling for 3D 'set view map' plots so
	that outboard drivers can continue mousing in -persist mode.

2012-10-26  Ethan A Merritt  <merritt@u.washington.edu>

	* src/mouse.c src/mouse.h src/mousecmn.h:  Allow the "bind" command to
	attach a user command to mouse button 1, at least for 2D plots.

2012-10-22  Ethan A Merritt  <merritt@u.washington.edu>

	* term/xlib.trm: Reset X11_ipc when xlib terminal exits; otherwise a
	subsequent "set term x11" fails to send output to gnuplot_x11.

2012-10-19  Ethan A Merritt  <merritt@u.washington.edu>

	* src/command.c (do_string_and_free):  The "exit" command was not working
	inside a bracketed clause.  Bug #3576439

2012-10-15  Ethan A Merritt  <merritt@u.washington.edu>

	* term/gd.trm (set_font): The libgd terminals were failing to 
	notice a change in font size sent by set_term(",newsize")
	Bugfix (old bug!)

	* term/canvas.trm (set_font); Minimal set_font routine for canvas
	terminal. All it does at this point is change or restore the font size.

	* src/term.c (term_start_multiplot): The calculation of vertical space
	required for a plot title depends on term->v_char, which in turn depends
	on the font used for the title. Bugfix.

2012-10-14  Ruediger Haertel  <haertel@users.sourceforge.net>

	* src/term.c (term_start_multiplot) docs/gnuplot.doc:
	Add enhanced/noenhanced option to "set multiplot title".

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

	* src/qtterminal/qt_term.cpp (qt_set_font):  term->set_font("")
	must restore the default terminal font and size.
	Bugfix.

	* src/qtterminal/qt_term.cpp: Improved font metrics.

2012-10-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/graph3d.c:  Suppress drawing of a degenerate keybox when
	"set key box" but no plot titles.  Bugfix.

	* src/graph3d.c src/show.c:  "set zlabel rotate parallel" should have
	the same effect as "set zlabel rotate".  Bugfix.

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

	* src/qtterminal/QtGnuplotWidget.cpp (exportToSvg):
	Restrict svg output size to scaled viewport.  This gets rid of the
	oversize border around a plot exported from the qt terminal to svg.
	Empirical fix, results not guaranteed!
	Bug #3573897

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

	* src/term.c src/unset.c src/term_api.h:
	Consistent with the documented generic meaning of "unset", the command
	"unset terminal" now restores the default terminal present at program
	entry.  I.e., it is equivalent to "set terminal GNUTERM".

2012-09-30  Tag Release_4_6_1

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

	* src/graphics.c: Fix bug preventing explicit assignment of color
	sequence in stacked histograms.

	* src/datafile.c src/util.c (streq) src/util.h:  New utility function
	streq(char *a, char *b) returns TRUE if a and b are identical save for
	leading and trailing whitespace.  Use this for matching requested string
	labels in a using spec to the actual column header text in a data file.
	Bug #3571243

	* src/axis.c src/axis.h src/mouse.c src/plot2d.c src/util.c:
	Allow zooming of plots that originally had an explicit range in the
	plot command.

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

	* lisp/configure.in docs/Makefile.in:
	Backport emacs+info build configuration from 4.7

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

	* src/graph3d.c: valgrind found a code path in which the key placement
	was never initialized.

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

	* lisp/gnuplot.el: elisp is now getting serious about a syntax change
	announced 10+ years ago.   s/(` (/`(/

	* lisp/configure.in lisp/Makefile.am:  The autoconfigure scripting for
	the lisp directory is failing when $(EMACS) is redefined by the user.
	But the failure is only relevant to testing/patching info-look.el for
	very old versions of emacs.  Deal with it by simply assuming that
	everyone has an emacs version newer than 20.3 and therefore no patching
	is needed.

	* src/graphics.c:  Incorrect default layout of rotated xtic labels.
	Bug #3568817

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

	* term/PostScript/prologue.ps term/post.trm:
	Handle transparent fill patterns in PS_fillbox() in the same way
	as is already done in PS_filled_polygon().
	Bug #3567035

	* src/eval.c (fill_gpval_axis):  Do not swap axis min/max values when
	storing them for later mousing calculations by the canvas, svg, and
	other terminals.  Fixes bug in the mouse readout from reversed axes.

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

	* src/graphics.c:  Index histogram stacks using the point's index rather
	than its x coordinate. Fixes rowstacked histogram array overflow.
	Bug #3566662

2012-09-07  Mojca Miklavec  <mojca.miklavec.lists@gmail.com>

	* configure.in src/Makefile.am src/qtterminal/QtGnuplotWidget.cpp 
	src/qtterminal/QtGnuplotWidget.h src/qtterminal/qt_term.cpp
	src/qtterminal/qt_term_mac.m src/qtterminal/QtGnuplotScene.cpp:
	Backport recent OSX-related Qt modifications from 4.7 to 4.6.1.

2012-09-07  Thomas Orgis  <sobukus@users.sourceforge.net>

	* src/qtterminal/QtGnuplotApplication.cpp src/wxterminal/wxt_gui.cpp:
	The wxt and qt terminals handle -persist by continuing execution of a
	forked thread after the main thread has exited.  However, anyone waiting
	on the main thread won't see it as finished unless the stdout and
	stderr streams inherited by the continuing process are closed.
	Bug #3309277

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

	* Bump version to 4.6.1 in preparation for release

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

	* src/tabulate.c:  Output a column for variable color if it is used 
	in the plot command.

	* src/datafile.c src/datafile.h src/plot2d.c src/tabulate.c:
	Blank lines separating datasets in an input file were stored as an
	UNDEFINED point but not otherwise marked. This patch introduces a
	recognizable (struct coordinate)blank_data_line that is stored when
	a blank line is encounted. This means that when writing the data back
	out via "set table" the separation between data sets can be maintained.
	Bug #3553151

2012-09-04  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* term/emf.trm:  Revise the object-handling code so that the current
	brush or pen is deselected before being deleted and recreated.
	Defer application of new dash+color line properties until needed for a
	new line segment.

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

	* term/emf.trm: Seek to the beginning of the output file after plotting.
	If a user mistakenly tries to place two plots in the same file, the 
	second will cleanly overwrite the first rather than corrupting it.

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

	* term/emf.trm:  Fix dashed line support (broken for a looong time).

	* term/emf.trm (EMF_set_font): (thanks to Shige Takeno) The intended
	optimization to prevent redundant requests for the same font was not
	implemented correctly.  This change fixes it so that a new font request
	is ignored if it would reapply the current font.

	* src/unset.c: "unset object N" succeeds even if there is no object N

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

	* src/contour.c:  Invoke CheckZero() when automatically choosing contour
	levels.  The need for this check can be seen in contour.dem plots 19-21.

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

	* src/graphics.c (do_key_layout): The height of opaque fill for the key
	box must be adjusted to allow for superscripts/subscripts in the title.
	Bug #3556892

2012-08-23  Thomas Gaillard <tgaillard@users.sourceforge.net>

	* src/interpol.c:  Mean and sigma of kernel density function were
	incorrectly calculated.
	Bug #3519563

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

	* src/graph3d.c:  Clip over-wide key box to left edge of plot.
	Bug #3560531

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

	* docs/Makefile.in:  Remove dependency on emacs for "make install"
	in the docs subdirectory.  If no emacs is available, skip installation
	of the site-lisp files.
	Bug #3528377

2012-08-07  Mojca Miklavec <mojca.miklavec.lists@gmail.com>

	* term/aquaterm.trm:  Revised test for transparency support to match
	the implementation in AquaTerm version 1.1.1

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

	* term/pslatex.trm (EPSLATEX_set_color):  Some cairolatex set_color
	requests were being incorrectly ignored.
	Bug #3553940

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

	* term/canvas.trm term/svg.trm: Since we now support time to
	millisecond precision, the bounds of a time/date axis need to be
	written out using %.3f rather than %g.
	Bug #3548932

	* src/misc.c (load_file): The multiline bracketed clause handling adds
	trailing newlines to the input.  It is essential to check and extend the
	input buffer if needed before doing this.
	Bug #3549386

	* term/gd.trm: Restore the deprecated syntax "set term png xRRGGBB" for
	setting the PNG background color in 4.6.1, since the manual still lists
	it.  But it will definitely go away in 4.7.
	Bug #3551340

2012-07-25  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/win/wgraph.c (drawgraph):  Check if the printer driver can
	actually do transparency (AlphaBlend). Fixes printing of transparent
	filled polygons and boxes.
	See bug #3503318

2012-07-24  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/standard.c (f_asin, f_asinh): The patch of March 2011 got the
	overall sign wrong in the (x == 0.0) case.
	Bug #3542862

2012-07-18  Ethan A Merritt  <merritt@u.washington.edu>

	* src/standard.c (f_acos): acos(x) was returning the complex conjugate
	of the correct result for complex input x with imag(x) > 0.
	Bug #3542862

	* src/parse.c (set_up_columnheader_parsing):  Take the column header 
	from the second using spec (normally the Y coordinate) to satisfy
	set key autotitle columnhead;  plot 'data' using "X":"Y"
	Bug #3542065

	* src/datafile.c (plot_option_using):  Track the appropriate column
	header when the column is specified via a non-string variable; e.g.
	plot for [i=1:N] 'data' using 1:(column(i))
	Bug #3542065

2012-07-18  Bastian Maerkisch  <bmaerkisch@web.de>

	* term/win.trm (WIN_options): Specifying only the font size (ie. ",8")
	would overwrite the font name with a bogus string. Bug fix.

2012-07-17  Ethan A Merritt  <merritt@u.washington.edu>

	* src/hidden3d.c (draw_edge): Fix broken tracking of top/bottom color
	distinction in hidden3d plots when the line colors are not specified in
	palette or RGB mode.
	Bugfix

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

	* src/qtterminal/QtGnuplotScene.cpp (wheelEvent)
	src/wxterminal/wxt_gui.cpp (OnMouseWheel):
	Pass current mouse position in the structure for mouse wheel events.

2012-07-04  Ethan A Merritt  <merritt@u.washington.edu>

	* src/pm3d.c (z2cb):  After "set log cb", z2cb(x) was returning 0 for
	x<=0 rather than -inf.  This causes it to be mistaken for the logged
	value of x=1.  Now we return CB_AXIS.min instead.
	Bug #3540048

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

	* src/graph3d.c (draw_3d_graphbox): Rather than treating the position
	of the z-axis label as a fixed 3D [x,y,z], always draw it at a fixed
	distance to the left of the z axis.  This is a CHANGE in behavior.
	Bug #2879916

	* src/qtterminal/QtGnuplotScene.cpp: Set Z value of zoom box to a
	large value so that it is not occluded by plot elements.

	* src/datafile.c (df_readascii): If the first line in a data file 
	contains column headers (strings to be used as titles), then that line
	should be ignored when applying the "plot ... every N:M(:N1:M1)" filter.
	Bug #3438848

2012-06-29  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c (eval_plots):  Zero is often a special point in a
	function domain.  Make sure we don't miss it due to round-off error.
	Bug #3519079

2012-06-24  Ethan A Merritt  <merritt@u.washington.edu>

	* src/datafile.c:  plot ... using "a":"b" was not setting the 
	parse_1st_row_as_headers flag.  Bug #3536514

2012-06-13  Bastian Maerkisch  <bmaerkisch@web.de>

	* config/mingw/Makefile config/msvc/Makefile:  Include
	templates for initialization files in distribution.

	* src/win/wgraph.c (drawgraph): Do not try to detect color capabilities
	of printers. When drawing to a printer, scale line widths to match the
	widths on screen and fix placement of super- and subscripts.
	Bug #3503318

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

	* src/datafile.c (df_readascii):  Bugfix for label plots using column 0
	to generate text. E.g. plot foo using 1:2:(sprintf("%d",$0)) with labels

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

	* src/tabulate.c:  Allow tabulation (set table) of pixel values for
	IMAGE RGBIMAGE RGBA_IMAGE.

2012-06-01  Ethan A Merritt  <merritt@u.washington.edu>

	* src/plot2d.c (box_range_fiddling):
	Autoscaling + auto-boxwidth + log scale on x = fail.
	Bug #3529285

2012-05-30  Ethan A Merritt  <merritt@u.washington.edu>

	* term/pslatex.trm: More helpful error message if output filename
	is not acceptable.
	Bug #3529832

	* src/interpol.c (cp_implode): This routine was not preserving the z
	value (used as a weight by smooth acsplines) of input data points.
	Bug #3529621

2012-05-20  Bastian Maerkisch  <bmaerkisch@web.de>

	* src/win/wcommon.h src/win/wgnuplib.h src/win/wgraph.c: Remove limit
	on number of plots which can be toggled on/off via key entries.
	Maximum number of toolbar buttons still restricted to MAXPLOTSHIDE.
	Bug #3516417

2012-05-17  Shigeharu Takeno  <shige@iee.niit.ac.jp>

	* docs/faq-ja.tex docs/gnuplot-ja.doc man/gnuplot-ja.1:
	Sync with English FAQ rev. 1.48 and documentation rev. 1.701.2.14.

2012-05-13  Ethan A Merritt  <merritt@u.washington.edu>

	* src/term.c (do_arc) src/graphics.c (do_ellipse):  Clip the filled
	interior of circles and ellipses.
	Bug #3522515

	* docs/gnuplot.doc src/graphics.c (do_rectangle):  Establish a clipping
	behavior for rectangles - clip to fit in the graph unless one or both
	corners are given in screen coordinates.

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

	* src/wxterminal/wxt_gui.cpp (wxt_cairo_refresh):  Execution of the
	command list must be protected by command_list_mutex or it will blow up
	if the command list is cleared/replaced during execution.
	Bug #3371205

	* src/graphics.c: allow log-scaled y axis when plotting with fillsteps
	Bug #3324785

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

	* src/misc.c (lf_push lf_pop) src/misc.h:  The lf_push/lf_pop mechanism
	for restoring context after a "call" statement was saving the individual
	call args $0 $1 etc, but failing to save the number of active args.
	Bug #3525155

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

	* CodeStyle config/Makefile.am.in configure.in demo/Makefile.am.in
	 lisp/Makefile.am m4/Makefile.am.in Makefile.am man/Makefile.am
	 share/LaTeX/Makefile.am share/Makefile.am src/Makefile.am
	 src/qtterminal/Makefile.am src/version.c src/wxterminal/Makefile.am
	 term/Makefile.am.in tutorial/Makefile.am.in:

	 Automake 1.12 removes support for the AM_C_PROTOTYPES macro and for
	 conversion of ANSI C code to K&R C code.  Gnuplot's CodeStyle file has
	 warned since version 3.7 that gnuplot would drop support for ansi2knr
	 "very soon".  Now 12+ years later the other shoe has dropped.
	 
2012-05-07  Ethan A Merritt  <merritt@u.washington.edu>

	* term/cairo.trm term/pslatex.trm: Fix 'set term cairolatex pdf mono'
	Bug-Debian: http://bugs.debian.org/668339

2012-05-06  Anton Gladky <gladky.anton@gmail.com>

	* src/command.c: Fix segfault in initial check of history when using
	--with-readline=bsd
	Bug-Debian: http://bugs.debian.org/665832

	* src/plot.c: EAM - avoid calling buggy libedit emulation of
	using_history().
	Bug-Debian: http://bugs.debian.org/598547

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

	* src/term.c term/estimate.trm:  Rename utf8_strlen to utf8_strwidth
	to avoid name collision.

	* src/internal.c (f_strlen f_range) src/util.c (strlen_utf8 gp_strlen)
	(utf8_strchrn gp_strchrn) src/util.h:  Fix gnuplot's user-visible
	string handling routines strlen() and substr() so that they handle
	multibyte UTF-8 characters correctly.  I.e. strlen() returns the number
	of characters, not the number of bytes.  Other multi-byte encodings are
	not handled, however.
	Bug #3480075

2012-05-04  Ethan A Merritt  <merritt@u.washington.edu>

	* src/set.c(set_command) src/command.c(do_command):  Test for empty
	iteration loop in "set for ..." and "do for ..." commands.

2012-04-27  Ethan A Merritt  <merritt@u.washington.edu>

	* term/svg.trm:  Prevent illegal characters from being generated as 
	subplot ids if there are more than 30 subplots in a multiplot.

2012-04-26  Jon Oddie  <joddie@users.sourceforge.net>

	* docs/doc2texi.c: Two bug fixes
	Cleaner code to determine which term files to read in d2t-get-terminals.
	Fix code for uniquifying duplicate node names.

	* configure.in docs/Makefile.in docs/doc2texi.c:
	Create an Emacs Lisp file of documentation strings extracted from the
	syntax descriptions in gnuplot.doc. Gnuplot-mode can then optionally
	display these strings as automatic one-line documentation while editing,

2012-04-24  Mojca Miklavec <mojca.miklavec.lists@gmail.com>

	* term/aquaterm.trm:  Clip images to bounding box. Reset line type
	at the start of each plot.

2012-04-20  Michael Reeves  <mgreeves@users.sourceforge.net>

	* src/graphics.c: Improved calculation of the margin space needed to
	hold rotated x and x2 tic labels.  backported fix for Bug #3482491

2012-04-20  Ethan A Merritt  <merritt@u.washington.edu>

	* term/canvas.trm: backport recent changes (UTF-8 character set,
	precision of point coordinates).

2012-04-18  Ethan A Merritt  <merritt@u.washington.edu>

	* term/svg.trm: The svg code refers to CANVAS_OVERSAMPLE when it should
	refer to SVG_SCALE.  Fortunately they both equal 10.

2012-04-17  Ethan A Merritt  <merritt@u.washington.edu>

	* src/misc.c (load_file):  If the input file did not end in a newline,
	the test for balanced {} occurred too early, causing a false error if
	the final partial line did in fact contain the required }.
	Bug #3518476

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

	* src/datafile.c (df_readbinary):  Check for NaN in binary input.

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

	Backport various minor additions from 4.7

	* src/term.c src/svg.trm:  Backport fix for toggling multiplots.

	* src/breaders.c src/datafile.c src/datafile.h src/plot2d.c
	src/plot3d.c src/stats.c:
	Try to report the name of the datafile in which an error was found.
	Handles plot, splot, and stats but not fit.

	* src/wxterminal/wxt_gui.cpp: Support horizontal mouse scroll
	(needs wxt 2.9.0).

	* src/gplt_x11.c: (Colin Macdonald) Set WM_CLASS to "Gnuplot" for the
	benefit of various window managers.

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

	* src/misc.c (iso_alloc iso_extend):  Initialize each 3D coordinate
	structure on allocation.  Fixes problems found by valgrind and easily
	seen by running imageNaN.dem.

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

	* src/axis.c (copy_or_invent_formatstring):  Expansion to many decimal
	places of precision is not necessary if the axis range spans 0, because
	in that case exponential notation can be used instead.
	Bug #3514604

2012-04-01  Hannes Nagel  <hannes.nagel@itp.uni-leipzig.de>

	* term/lua.term: Do not create external png images if they are not 
	going to be used in the tex document.

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

	* src/pm3d.c term/post.trm term/pslatex.trm src/term_api.h src/color.c:
	The core code should not write terminal-specific output.  Instead define
	TERM_LAYER_BEGIN_PM3D_MAP and TERM_LAYER_END_PM3D_MAP and use the 
	term->layer() mechanism.  This prevents garbage from being written out
	to the cairolatex terminals in pm3d mode.
	Bug #3513291

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

	* src/wxterminal/gp_cairo.c (gp_cairo_draw_polygon): Always stroke
	previous path before starting a new polygon.  Also, dots are slow.
	Only draw them if specifically requested.
	Bug #3512955

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

	* src/term.c (enhanced_recursion): Revised handling of backslash
	character in enhanced text processing.
	Bug #3496517

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

	* term/post.trm term/svg.trm:  
	Do not allow execution of popen() commands during initialization.

2012-03-08  RELEASE 4.6.0

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

	* src/wxterminal/wxt_gui.cpp: Backport CVS fixes for toggling plots
	on/off in multiplots and to limit the toggle effect to the contents
	of the current plot.

2012-03-03  Petr Mikulik  <mikulik@physics.muni.cz>

	* docs/doc2ipf.c (process_line): Don't use assert() because it calls
	int_error().

2012-03-02  Petr Mikulik  <mikulik@physics.muni.cz>

	* config/makefile.os2: version.o is required for gnuplot_x11.exe.

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

	* PATCHLEVEL configure.in README.1ST INSTALL FAQ:
	Update for 4.6.0

	* docs/gnuplot.doc: Point to www.gnuplot.info as the URL for all demos.

	* src/show.c src/plot.c config/mingw/Makefile:  
	Enable code that was marked RELEASE_VERSION;
	disable alternative code by marking it DEVELOPMENT_VERSION.

2011-02-29 Bastian Maerkisch  <bmaerkisch@web.de>

	* win/gnuplot.iss: Prepare for 4.6 release.

	* config/mingw/Makefile: New target 'zip' for zip file distribution.

2012-02-25  Ethan A Merritt  <merritt@u.washington.edu>

	* configure.in tutorial/tutorial.tex:  Update latex tutorial for version
	4.6 but do not install it by default.

2012-02-25  Peter Juhasz  <juhaszp@users.sourceforge.net>

	* src/command.c src/misc.c src/plot.c src/plot.h:
	Unterminated blocks (i.e. missing }) in batch mode caused the program
	to erroneously wait for further input or - when commands were streamed
	through a pipe - crash. Fix: display appropriate error message instead.
	Bug #3491904

2012-02-22  Ethan A Merritt  <merritt@u.washington.edu>

	* src/stats.c: Remove order-dependence of keywords.
	Bug #3491215

2012-02-21  contributed anonymously

	* src/term.c (do_arc): Arcs smaller than 3 degrees were being
	reduced to a single line.  Bug #3490227.

2012-02-21  David Leverton  <dleverton@users.sourceforge.net>
	
	* src/graphics.c (edge_intersect):  Fix a bug that failed to draw a
	pure horizontal or vertical line from out of range that crossed the
	entire range of a plot to terminate on the boundary.
