290211e883f835eecd4450eb715d5390b57be316
[med-qtlab.git] / 3rd_party / gnuplot / docs / ChangeLog
1 2012-01-17  Jérôme Lodewyck <lodewyck@users.sourceforge.net>
2
3         * configure.in src/Makefile.am src/qtterminal/Makefile.am
4         src/qtterminal/QtGnuplotApplication.cpp
5         src/qtterminal/QtGnuplotApplication.h src/qtterminal/QtGnuplotEvent.cpp
6         src/qtterminal/QtGnuplotEvent.h src/qtterminal/gnuplot_qt.cpp
7         src/qtterminal/qt_term.cpp term/qt.trm: The Qt terminal application is
8         executed in a separate executable called gnuplot_qt, started by exec.
9         This makes the Qt terminal compatible with OS X.
10
11 2012-01-17  Ethan A Merritt  <merritt@u.washington.edu>
12
13         * src/eval.c (update_plot_bounds):  Store the canvas size used by
14         the previous plot in user accessible variables GPVAL_TERM_XSIZE,
15         GPVAL_TERM_YSIZE.
16
17 2012-01-15  Mojca Miklavec <mojca.miklavec.lists@gmail.com>
18
19         * src/mouse.c (event_buttonpress): Treat mouse buttons 6/7 as
20         left/right scroll events (e.g. from fingers on a touchpad).
21
22         * src/qtterminal/QtGnuplotScene.cpp (mouseReleaseEvent):  Pass
23         horizontal scroll events through to gnuplot core as mouse events 6/7.
24
25 2011-01-15 Bastian Maerkisch  <bmaerkisch@web.de>
26
27         * config/config.mgw: Sync with configure.
28
29 2011-01-14  Bastian Maerkisch  <bmaerkisch@web.de>
30
31         Installer for Windows. Japanese translation by Shigeharu Takeno.
32
33         * win/gnuplot.iss win/modpath.iss: Installer script to be compiled by
34         Inno Setup. New files.
35
36         * win/Copyright-ja.txt: Japanese translation of Copyright, includes
37         original text. Encoding is Shift-JIS.
38
39         * win/README-Windows.txt win/README-Windows-ja.txt: New files, 
40         displayed by installer before installation. Based on Tatsuro Matsuoka's
41         README.Windows.gpteam and README.
42
43         * config/mingw/Makefile: New make target 'installer'.
44
45         * Makefile.am (EXTRA_DIST): Include win/
46
47 2011-01-14  Bastian Maerkisch  <bmaerkisch@web.de>
48
49         * tutorial/linepoin.plt: Avoid deprecated syntax.
50
51         * config/mingw/Makefile config/msvc/Makefile src/plot.c:
52         GNUPLOT_SHARE_DIR is relative to gnuplot directory on Windows.
53         Extend build support for documentation, include in installer.
54
55 2012-01-11  Ethan A Merritt  <merritt@u.washington.edu>
56
57         * src/util3d.h src/util3d.c (edge3d_intersect two_edge3d_intersect) 
58         src/graph3d.c (plot3d_lines_pm3d):  The utility routines in util3d
59         assumed that a 3D curve is always traversed in ascending order of the
60         constituent points.  But plot3d_lines_pm3d scans in both directions,
61         leading to incorrect clipping and possible array over-run when the
62         utility routines were called.  Furthermore, the arrays holding the
63         scan direction info were never initialized.
64         Bug #3471163
65
66 2012-01-08  Ethan A Merritt  <merritt@u.washington.edu>
67
68         * src/plot.c:  Allow shell commands from ~/.gnuplot but not from shared
69         initialization files.
70
71         * configure.in: Report status of aquaterm configuration correctly
72         (Lutz Maibaum).
73
74 2012-01-07  Jérôme Lodewyck <lodewyck@users.sourceforge.net>
75
76         * src/qtterminal/QtGnuplotScene.cpp: Normalize the zoom rectangle to avoid
77         redrawing artifacts
78
79 2012-01-07  Ethan A Merritt  <merritt@u.washington.edu>
80
81         * src/misc.c (lf_pop): If the current input stream from "load file" is
82         really a pipe, close it with pclose() rather than fclose().
83         Bug #3470351
84
85 2012-01-07  Jérôme Lodewyck <lodewyck@users.sourceforge.net>
86
87         * src/qtterminal/QtGnuplotScene.cpp: Normalize the zoom rectangle to avoid
88         redrawing artifacts
89
90 2012-01-05  Ethan A Merritt  <merritt@u.washington.edu>
91
92         * configure.in src/Makefile.am: Tweak autodetection of Qt utilities to
93         handle differences in the Qt 4.6 and 4.7 pkg-config files.
94
95         * src/set.c: Call gp_expand_tilde() in 'set loadpath' and 'set fontpath'.
96
97 2012-01-04  Ethan A Merritt  <merritt@u.washington.edu>
98
99         * src/hidden3d.c: Fix an uninitialized colorspec found by valgrind.
100         The trigger was hidden3d handling of '... with labels tc palette'.
101
102 2012-01-02  Ethan A Merritt  <merritt@u.washington.edu>
103
104         * configure.in term/qt.trm
105         In src/qtterminal: QtGnuplotEvent.cpp QtGnuplotEvent.h
106         QtGnuplotItems.cpp QtGnuplotItems.h QtGnuplotScene.cpp
107         QtGnuplotScene.h QtGnuplotSettings.ui QtGnuplotWidget.cpp
108         QtGnuplotWidget.h qt_term.cpp qt_term.h README.Qt:
109         Update qt terminal to support pointsize, dashed lines, round linejoins,
110         term->layer(), LT_BACKGROUND, mouse toggling, faster rendering.
111
112 2012-01-01  Ethan A Merritt  <merritt@u.washington.edu>
113
114         * src/qtterminal/QtGnuplotApplication.cpp (processEvent):
115         * src/wxterminal/wxt_gui.cpp (wxt_atexit):
116         In "persist" mode, if all qt plot windows were already closed when the
117         main program exited then the daughter process would become a zombie.
118         Even worse for wxt; if _any_ plot windows had been closed then the 
119         persisting daughter process would become a zombie.
120         Bugfix.
121
122 2011-12-29  Ethan A Merritt  <merritt@u.washington.edu>
123
124         * src/plot.c src/plot.h src/qtterminal/qt_term.cpp:
125         Provide a function cancel_history() that can be called by terminal
126         helper processes after forking so that the history file isn't 
127         trashed on exit.
128         Bug #2950711
129
130         * docs/gnuplot.doc:  Minor updates to match 4.6 configuration.
131
132 2011-12-28  Ethan A Merritt  <merritt@u.washington.edu>
133
134         * docs/gnuplot.doc share/Makefile.am share/colors_default.gp
135         share/colors_mono.gp share/colors_podo.gp share/gnuplotrc
136         src/Makefile.am:
137         Provide template initialization files, including examples of customizing
138         the linetype color sequence.  These are installed in $GNUPLOT_SHARE_DIR
139         (usually /usr/local/share/gnuplot/4.6).
140
141         * src/command.c src/datafile.c src/help.c src/history.c src/misc.c
142         src/plot.c src/plot.h src/term.c src/variable.c:
143         Do not allow execution of system(), shell, or popen() commands in the
144         initialization files.
145
146         * src/plot.c src/show.c: More compact splash page.
147
148         * src/graphics.c src/graphics.h src/graph3d.c:
149         Strangely, the final parameter of place_objects(,,,clip_area) was
150         (1) never used and (2) shadowed a global parameter that _was_ used.
151         Bug #3426247
152
153         * configure.in: Default to --enable-stats --without-bitmap-terminals
154
155         * configure.in PATCHLEVEL: Report as version 4.6.rc1
156
157 2011-12-25  Ethan A Merritt  <merritt@u.washington.edu>
158
159         * src/qtterminal/QtGnuplotEvent.cpp src/qtterminal/QtGnuplotScene.cpp:
160         If two button release events occur in quick succession then the program
161         messes up the event handling and winds up in a non-recoverable state.
162         Apply an empirical fix to ignore events in a 300 msec window.
163         Also rather than ending up a zombie, exit explicitly on a sync error.
164         Bugfix
165
166 2011-12-21  Ethan A Merritt  <merritt@u.washington.edu>
167
168         * src/plot2d.c:  The default sequence of histogram colors was one off
169         from the default sequence of line colors.  Bugfix.
170
171 2011-12-11  Bastian Maerkisch  <bmaerkisch@web.de>
172
173         * config/config.nt config/config.mgw: Sync with config.h created by
174         autoconf.
175
176         * src/msvc/Makefile: More complete install target. Add new variables
177         to hold paths to external libraries.
178
179         * src/mingw/Makefile: Include index in gnuplot.pdf. Support building
180         of the Japanese help file wgnuplot-ja.chm.
181
182         * src/eval.c (update_gpval_variables): New variable GPVAL_ENCODING.
183
184         * term/gd.trm (gd_iconv): Silence const mismatch compiler warning
185         in call to iconv by casting second argument to (void *).
186
187         * src/syscfg.h: All tested platforms (XP, Vista, 7) support '/' as
188         directory separator.
189
190         * src/win/winmain.c: Automatic language detection can be overridden
191         by new setting "Language=XX" in wgnuplot.ini. Suggestion by Shigeharu
192         Takeno.
193
194         * src/win/wpause.c: Remove local definition of TBOOLEAN.
195
196         * docs/plotstyles.gnu: Prefer pngcairo over png terminal. Use font
197         "Times New Roman" on Windows.
198
199         * demo/random.dem: Use loops to create random number data sets.
200
201 2011-12-08  Ethan A Merritt  <merritt@u.washington.edu>
202
203         * docs/gnuplot.doc docs/Makefile.in term/context.trm docs/doc2rnh.c:
204         Miscellaneous documentation updates, remove dead URLs.
205
206         * configure.in docs/gnuplot.doc src/plot.c src/show.c
207         config/config.cyg config/config.dj2 config/config.mgw config/config.nt
208         config/config.os2 config/config.oww config/makefile.unx:
209
210         Despite what it says in the documentation, and despite what the
211         configure script prints out, auto-configuration never defined the
212         NOCWDRC flag to disable reading an initialization file .gnuplot
213         from the current directory.  This is a security risk.  Furthermore,
214         having to define something special to get the secure state is bad
215         design.  Fix the configuration script and default to not initializing
216         from the current directory.  Put a warning in various config files.
217
218 2011-11-29  Shigeharu Takeno  <shige@iee.niit.ac.jp>
219
220         * docs/Makefile.in:  Remove duplicate entry for qt in CORETERMS.
221
222 2011-11-28  Ethan A Merritt  <merritt@u.washington.edu>
223
224         * src/scanner.c (legal_identifier) src/scanner.h src/stats.c:
225         Make sure that the variable name produced by the "stats ... prefix"
226         command is a legal identifier.
227         Bug #3441395
228
229         * src/set.c (set_palette): Add missing check for conflicting options.
230
231 2011-11-26  Ethan A Merritt  <merritt@u.washington.edu>
232
233         * term/cairo.trm: Revert the change of 2011-08-25 that tried to skip 
234         empty vectors. The concept was sound but the implementation was not
235         correct, leading to mysteriously missing lines.
236         Bugfix.
237
238 2011-11-24  Ethan A Merritt  <merritt@u.washington.edu>
239
240         * src/term_api.h src/misc.c src/hidden3d.c:  New flag LT_SINGLECOLOR
241         passed through to hidden3d to indicate that the user gave an explicit
242         surface color in the splot command.
243         Bugfix.
244
245 2011-11-22  Ethan A Merritt  <merritt@u.washington.edu>
246
247         * Branchpoint for 4.6
248         cvs tag -b branch-4-6-stable
249
250 2011-11-22  Ethan A Merritt  <merritt@u.washington.edu>
251
252         * src/contour.c (contour): Format contour labels using gprintf rather
253         than sprintf so that LC_NUMERIC and "set decimal" are honored.
254         Bugfix.
255
256         * term/js/gnuplot_svg.js: Try to correct for coordinate offset due to
257         scrollbars.  The fix is unfortunately browser specific.
258
259 2011-11-22  Peter <plotter@piments.com>
260
261         * term/svg.trm: "standalone" option includes gnuplot_svg.js mousing
262         support directly in the output *.svg file rather than linking to it
263         as an external resource.
264
265 2011-11-18  Daniel Leidert  <dleidert@users.sourceforge.net>
266
267         * demo/html/webify.pl demo/html/webify_svg.pl demo/html/webify_canvas.pl
268         Use perl5 native routine ctime() rather than perl4 external module.
269
270         * src/datafile.c term/epson.trm term/post.trm:
271         Typos.
272
273         * configure.in: Check for lua5.1.pc if lua.pc is not found.
274
275         * man/gnuplot.1: Add some needed character escapes.
276
277 2011-11-18  Bastian Maerkisch  <bmaerkisch@web.de>
278
279         * src/win/wgdiplus.cpp src/win/wgdiplus.h src/win/wgnuplib.h
280         src/win/wgraph.c src/win/wresourc.h: Antialiasing of fill patterns.
281
282         * src/win/wgraph.c (CopyPrint): Use Print Setup dialog since the Page
283         Setup dialog does not offer a possibility to change printer. Do not
284         use antialiasing on printers.
285
286 2011-11-15  Bastian Maerkisch  <bmaerkisch@web.de>
287
288         * src/win/wgnuplib.h src/win/wgraph.c term/win.trm: Store current
289         text encoding in list of drawing ops.
290
291 2011-11-15  Ethan A Merritt  <merritt@u.washington.edu>
292
293         * src/axis.h src/axis.c (parse_range, parse_named_range)
294         src/axis.c (save_writeback_all_axes check_axis_reversed)
295         src/fit.c src/plot2d.c src/plot3d.c src/stats.c src/unset.c:
296         Replace axis-related macros with equivalent subroutines.
297
298 2011-11-14  Ethan A Merritt  <merritt@u.washington.edu>
299
300         * config/Makefile.am.in demo/Makefile.am.in m4/Makefile.am.in
301         tutorial/Makefile.am.in term/Makefile.am.in:
302
303         Make sure that the generated files Makefile.am and gnuplot-tikz.help
304         do not end up non-writable by the owner, which caused build cleanup
305         problems while packaging.  Bug #3419881
306
307 2011-11-14  Peter Juhasz  <juhaszp@users.sourceforge.net>
308
309         * src/plot2d.c (store2d_point): Fix for 4-column mode of
310         BOXPLOT style which did not handle log scale correctly.
311
312 2011-11-14  Bastian Maerkisch  <bmaerkisch@web.de>
313
314         * src/win/wgnuplib.h src/win/wgraph.c src/win/winmain.c
315         src/win/wtext.c: Localisation support for menu and help files.
316         Files are loaded according to current language settings from
317         files named "wgnuplot-LL.mnu" and "wgnuplot-LL.chm", where LL is
318         the abbreviation of the current language. Fall back to
319         "wgnuplot.mnu" and "wgnuplot.chm" if localised files don't exist.
320         Defaults may be overwritten by new entries "MenuFile" and
321         "HelpFile" in wgnuplot.ini.
322         Choose appropriate default fonts in Japanese environments.
323
324         src/show.c (show_version) src/win/winmain.h: List correct names
325         of menu and help files on Windows.
326
327         src/win.trm (WIN_set_color): Immediately translate palette color
328         values to RGB instead of passing them on. This makes it possible
329         to use more than one palettes in multiplots and in different
330         graph windows. Test e.g. with pm3dcolors.dem
331
332         * src/win/wgraph.c src/win/wresourc.h src/win/wgnuplib.h: Add a
333         separate switch to toggle antialiasing of polygons.
334
335         * src/win/wgraph.c (Draw_XOR_Text): Implement a 10 year old FIXME:
336         Use proper raster operation instead of double inversion.
337
338 2011-11-12  Shigeharu Takeno  <shige@iee.niit.ac.jp>
339
340         * src/win/README.win-ja src/win/wgnuplot-ja.mnu: Update and sync
341         with wgnuplot.mnu
342
343 2011-11-12  Bastian Maerkisch  <bmaerkisch@web.de>
344
345         * src/set.c (set_degreesign): Windows implementation using a Windows
346         API call since iconv() does not understand locales as returned by
347         setlocale().
348
349         * src/command.c (help_command): HTML help window need to occlude
350         the text window.
351
352         * term/win.trm (WIN_filled_polygon): Use boxfill for filled polygons
353         which are actually rectangles.
354
355         * src/win/wgnuplib.h src/win/wgraph.c: Add support in windows terminal
356         for toggling individual plots on/off by clicking on the corresponding
357         key sample in addition to toggling via toolbar buttons.
358
359 2011-11-11  Ethan A Merritt  <merritt@u.washington.edu>
360
361         * src/set.c (set_degreesign):  More attempts to work around oddities in
362         Solaris locale handling.
363
364 2011-11-10  Shigeharu Takeno  <shige@iee.niit.ac.jp>
365
366         * docs/gnuplot-ja.doc docs/term-ja.diff: Sync to docs version 1.699.
367
368         * docs/gnuplot.doc term/be.trm term/cairo.trm term/context.trm
369         term/win.trm: Fix typos.
370
371 2011-11-09  Ethan A Merritt  <merritt@u.washington.edu>
372
373         * src/axis.c src/command.c src/eval.c src/gadgets.c src/graphics.c
374         src/internal.c src/tables.c src/unset.c src/util.c src/util.h
375         term/post.trm:  Fix or remove some FIXMEs.
376
377 2011-11-09  Bastian Maerkisch  <bmaerkisch@web.de>
378
379         * doc/gnuplot.doc: New terminal driver epscairo.
380
381         * term/gd.trm: Don't use gd font pointer variables for builtin fonts.
382
383 2011-11-08  Ethan A Merritt  <merritt@u.washington.edu>
384
385         * configure.in src/set.c: Use nl_langinfo(CODESET) to find the encoding.
386         This hopefully works around non-standard encoding names used by Solaris.
387
388         * src/wxterminal/wxt_gui.cpp: Toggle for "plot ... with circles"
389
390 2011-11-08  Bastian Maerkisch  <bmaerkisch@web.de>
391
392         * doc/gnuplot.doc [New features]: Document new cairolatex and
393         revised windows terminal.
394
395 2010-11-08  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
396
397         * src/set.c (set_degreesign): Move include of iconv.h to top level.
398
399 2011-11-07  Bastian Maerkisch  <bmaerkisch@web.de>
400
401         * term/fig.trm: Update help on font option.
402
403         * term/context.trm: Avoid use of round() because MSVC is still not
404         C99-compliant.
405
406         New terminal driver cairolatex, which uses the cairo EPS or PDF
407         backend for graphics output and LaTeX text created by functions
408         shared with the epslatex and pslatex terminals.
409
410         * term/cairo.term term/post.h term/post.trm term/pslatex.trm: New
411         terminal driver cairolatex.
412         Patch #3413095
413
414 2011-11-06  Mojca Miklavec <mojca.miklavec.lists@gmail.com>
415
416         Add a context terminal, which creates output suitable for ConTeXt.
417
418         * configure.in docs/doc2texi.el docs/gnuplot.doc docs/Makefile.in
419         src/makefile.all src/makefile.awc src/term.h term/context.trm:
420         New terminal driver context.
421         Patches #1654807 and #1503836. Feature Request #2815867.
422
423 2011-11-05  Ethan A Merritt  <merritt@u.washington.edu>
424
425         * src/wxterminal/wxt_gui.cpp src/wxterminal/wxt_gui.h
426         src/wxterminal/wxt_term.h term/wxt.trm:
427         Add support in wxt terminal for toggling individual plots on/off
428         by clicking on the corresponding key sample.
429
430 2011-11-04  Ethan A Merritt  <merritt@u.washington.edu>
431
432         term/wxt.trm src/wxterminal/wxt_term.h src/wxterminal/wxt_gui.cpp:
433         Add a term->layer() entry point for the wxt terminal.
434
435         * src/mouse.c src/term_api.h: TERM_LAYER_BEFORE_ZOOM
436
437 2011-11-02  Ethan A Merritt  <merritt@u.washington.edu>
438
439         * src/util.c src/util.h src/set.c (set_encoding set_degreesign):
440         Provide an internal char sequence degree_sign[] appropriate for the
441         current encoding.  Use iconv(), if available, to translate it into the
442         environment's locale after `set encoding locale`.
443
444         * src/show.c (show_decimalsign):  Show the degree sign also, mostly
445         so that people can report problems with the encoding code above.
446
447 2011-11-01  Bastian Maerkisch  <bmaerkisch@web.de>
448
449         * src/win/wmenu.c src/win/wtext.c: Use proper dropdown menu for 
450         Options toolbar item.
451
452 2011-10-30  Bastian Maerkisch  <bmaerkisch@web.de>
453
454         * INSTALL: Update Windows section.
455
456         * config/makefile.mgw: Superseded by config/mingw/Makefile. Removed.
457
458 2011-10-30  Shigeharu Takeno  <shige@iee.niit.ac.jp>
459
460         * config/config.nt config/makefile.nt: Windows console apps support
461         pipes.
462
463 2011-10-30  Bastian Maerkisch  <bmaerkisch@web.de>
464
465         * config/config.cyg config/config.mgw config/config.nt
466         config/config.oww: Enable stats command.
467
468 2011-10-28  Ethan A Merritt  <merritt@u.washington.edu>
469
470         * src/color.c (make_palette):  Fix segfault caused by initializing a 
471         terminal with an "infinite" color palette (colors == 0) when previous 
472         terminal had merely a large color palette (e.g. WIN_PAL_COLORS 4096).
473         Bug #3429772
474
475 2011-10-24  Ethan A Merritt  <merritt@u.washington.edu>
476
477         * src/axis.c src/axis.h src/datafile.c src/fit.c src/mouse.c
478         src/plot2d.c src/plot3d.c src/save.c src/set.c src/setshow.h src/show.c
479         src/stats.c src/tabulate.c src/unset.c term/canvas.trm term/svg.trm:
480
481         Change the axis structure field from TBOOLEAN axis.is_timedata to an
482         enum {DT_NORMAL, DT_TIMEDATE} field axis.datatype.  This is preparation
483         for adding code to implement a new mode DT_DMS (degrees, minutes,
484         seconds) that tracks x and/or y as geographic coordinates.
485         There is no change to the behavior of the current code.
486
487 2011-10-22  Ethan A Merritt  <merritt@u.washington.edu>
488
489         * term/svg.trm:  Friendlier error message, add a <title> tag at the
490         top of the output svg document.
491
492 2011-10-17  Christoph Bersch  <cbersch@users.sourceforge.net>
493
494         * docs/doc2texi.el:  Handle presence of three nodes with the same key.
495
496 2011-10-14  Ethan A Merritt  <merritt@u.washington.edu>
497
498         * src/specfun.c (humlik):
499         Re-order code to avoid accessing an unitialized variable.
500
501         * term/emf.trm (EMF_put_text):
502         Re-order code to avoid accessing an unitialized variable.
503
504         * src/command.c (else_command):  An else clause might either be
505         processed by if_command() or else_command().  The latter was not
506         correctly updating c_token.
507
508         * src/misc.c (lf_load):  Tie maximum depth of load commands to
509         STACK_DEPTH.
510
511 2011-10-13  Ethan A Merritt  <merritt@u.washington.edu>
512
513         * docs/gnuplot.doc docs/titlepag.tex:  Revise the sections that 
514         describe function plots to mention `set samples`.  Allow the table of
515         builtin functions to split across pagebreaks in the TeX documentation.
516
517         * src/wxterminal/gp_cairo.c: Decrease linewidth used by pdfcairo
518         terminal for pattern fill.  This works around what seems to be a pdf
519         bug in libcairo versions through at least 1.10.
520
521         * src/fit.c (error_ex): Exit via int_error() so that it can walk
522         through the list of XXX_reset_after_error() routines.
523
524 2011-10-10  Ethan A Merritt  <merritt@u.washington.edu>
525
526         * src/hidden3d.c: Bump default QUADTREE_GRANULARITY from 10 to 30.
527         At 10, 24% of the CPU time for all.dem is spent in hidden line removal.
528         At 30 this decreases to 12%, for roughly a 10% speed increase overall.
529
530 2011-10-10  Peter Juhasz  <juhaszp@users.sourceforge.net>
531
532         * src/datafile.c src/datafile.h src/gadgets.h src/graphics.c
533         src/graphics.h src/plot2d.c src/save.c src/set.c src/show.c
534         demo/boxplot.dem docs/gnuplot.doc:
535
536         Add new mode for the "with boxplot" plot style.
537         If there is a 4th column in the using spec, the values in it it will
538         be interpreted as the discrete levels of a factor variable. As many
539         boxplots will be drawn as there are different values in the factor
540         column, each boxplot representing part of the dataset. These boxplots
541         are optionally labeled and sorted. New options "separation", "label",
542         and "sorted"/"unsorted" to "set style boxplot" govern the behavior of
543         this new mode. The demo "boxplot.dem" is extended to showcase the new
544         capability. 
545
546 2011-10-09  Shigeharu Takeno  <shige@iee.niit.ac.jp>
547
548         * src/internal.c (f_sprintf): More complete MSVC++ snprintf() patch.
549
550 2011-10-09  Adam Strzelecki  <ono@users.sourceforge.net>
551
552         * src/wxterminal/wxt_gui.h src/wxterminal/wxt_gui.cpp:
553         Work around a number of issues compiling and running wxt with wx 2.9
554         using 64-bit Cocoa on OSX Lion. All changes are #ifdef __WXOSX_COCOA__.
555         These may not be necessary once Cocoa reaches a stable release. 
556         (1) use wxToolbar AddStretchableSpace rather than AddSeparator 
557         (2) wx Cocoa does not support logical operators such as wxDC inverse
558         (3) wx Cocoa toolbar icons are blurry unless they are 24x24
559         (4) wx Cocoa does not define _Bool even though it says it does
560
561 2011-10-07  Ethan A Merritt  <merritt@u.washington.edu>
562
563         * src/color.h src/command.c src/getcolor.c src/gplt_x11.c src/save.c
564         src/set.c src/show.c src/tables.c src/tables.h term/post.trm
565         term/x11.trm demo/pm3d.dem docs/gnuplot.doc:
566
567         New palette option "cubehelix". The is a family of palettes with the
568         general property of combining N cycles of a color-wheel with a monotonic
569         increase in overall intensity. This feature was suggested by Ingo Thies.
570         See: D A Green (2011) "A colour scheme for the display of astronomical
571         intensity images" http://arxiv.org/abs/1108.5083
572
573 2011-10-06  Shigeharu Takeno  <shige@iee.niit.ac.jp>
574
575         * src/internal.c (f_sprintf): Always null-terminal a string written by
576         the non-ANSI compliant MSVC++ routine _snprintf().
577
578 2011-10-03  Bastian Maerkisch  <bmaerkisch@web.de>
579
580         * term/win.trm (WIN_options): When searching the list of graph windows
581         the correct test is for window Id.
582
583 2011-10-03  Rich Seymour  <richseymour@users.sourceforge.net>
584
585         * term/svg.trm: Look for strings " Bold" and/or " Italic" in font name
586         and set the corresponding properties if found.  Patchset #3058920.
587
588 2011-10-03  Bastian Maerkisch  <bmaerkisch@web.de>
589
590         * term/post.trm (PS_options): Properly contain new variable in a
591         block. Bug #3417716
592
593         * src/Makefile.maint: New target makefile.awc.
594
595         * src/makefile.all src/makefile.awc: Regenerated to include stats.c.
596
597 2011-10-02  Ethan A Merritt  <merritt@u.washington.edu>
598
599         * configure.in src/Makefile.am src/command.c src/command.h src/show.c
600         src/stats.c src/stats.h src/tables.c docs/gnuplot.doc:
601         
602         New command to generate a statistical summary of the data in a file.
603             stats "datafile" [using col1[:col2]] [nooutput] [name "PREFIX"]
604         Data is read from the input file under the control of the same options
605         used for 'plot' commands (e.g. xrange, yrange, using, index, every).
606         The min/max/mean/stddev/quartiles of data from one or two data columns
607         are printed to the terminal and stored in named variables.  These
608         variables can be used to modify subsequent plot commands.
609         This code was developed primarily by Philipp Janert and Zoltán Vörös.
610  
611         * demo/html/Makefile demo/html/Makefile.svg demo/html/Makefile.canvas
612         demo/stats.dem demo/all.dem:  New demo to exercise stats code.
613
614 2011-10-01  Bastian Maerkisch  <bmaerkisch@web.de>
615
616         * term/cairo.trm: Depending on the version, Cairo defaults to cropping
617         eps files to the minimal bounding box. This patch adds support for the
618         {no}crop option to the epscairo terminal. Cropping is prevented by
619         putting two points in background color in opposite corners, or by
620         directly setting the bounding box for Cairo newer than 1.11.0.
621
622         * config/mingw/Makefile: Include epscairo terminal.
623
624 2011-10-01  Christoph Bersch  <cbersch@users.sourceforge.net>
625
626         * term/post.trm term/pslatex.trm: New options `background` and
627         `nobackground` for terminals postscript, epslatex, pstex and pslatex.
628         Patch #3415158
629
630 2011-09-29  Ethan A Merritt  <merritt@u.washington.edu>
631
632         * src/color.c src/graph3d.c src/graphics.c:  User-specified axis tick
633         labels should override auto-generated tick labels in 3D plots just as
634         they already do in 2D plots.
635
636         * src/plot2d.c: In `plot with labels`, skip labels for which the x,y
637         coordinates are UNDEFINED.
638         Bug #3415454
639
640         * term/js/gnuplot_mouse.css:  Opera is picky about missing units.
641
642 2011-09-27  Ethan A Merritt  <merritt@u.washington.edu>
643
644         * term/emf.trm term/fig.trm term/metapost.trm term/tgif.trm:
645         Prefer the new syntax set term ... font "<name>,<size>"   in the
646         documentation. This does not change the terminal input, only the docs
647         and the options string echoed back by "show term".
648
649         * term/canvas.trm:  Implement set term canvas ... font "<name>,<size>".
650         Currently the name is ignored.  
651
652 2011-09-23  Ethan A Merritt  <merritt@u.washington.edu>
653
654         * docs/gnuplot.doc src/plot2d.c:  Defer interpretation of newhistogram
655         linetype until the histogram itself is drawn.
656
657 2011-09-21  Bastian Maerkisch  <bmaerkisch@web.de>
658
659         * demo/borders.dem: Use loop instead of `reread`.
660
661         * demo/image2.dem: Explicitely `reverse` axes.
662
663         * src/win/wgraph.c (drawhraph) [W_filled_polygon_draw]: Transparent
664         pattern fill actually fills with white background since 2011-05-15.
665         Fixed.
666
667         * src/win/wgnuplib.h src/win/wgraph.c (WndGraphProc) term/win.trm
668         (WIN_options, WIN_update_options): Update term options on changes via
669         graph window/menu. Track font face and size as read from ini-file.
670
671         * src/stdfn.c|h (gp_basename) term/pslatex.trm (PSTEX_common_init):
672         Move code from pslatex.trm to new function gp_basename which takes
673         two different directory separators into account and does not change
674         its argument.
675
676 2011-09-16  Peter Hedwig <peter@affenbande.org>
677
678         * term/lua/gnuplot-tikz.lua:  Modify the commands used for rgb color 
679         selection so that they are compatible with context as well as tikz.
680         Bug #3401068
681
682 2011-09-16  Oliver Jennrich
683
684         * term/lua/gnuplot-tikz.lua:  Update syntax used for setting line join
685         properties.
686         Bug #3410554
687
688 2011-09-12  Bastian Maerkisch  <bmaerkisch@web.de>
689
690         * config/mingw/Makefile: Fix building gnuplot.ps and gnuplot.pdf.
691         Include figures in gnuplot.pdf. Define new targets 'console', 'windows'
692         and 'pipes' to build different versions of gnuplot. Use separate
693         file extensions for each version. Let 'make all' build all versions.
694         Match 'install' target to Tatsuro Matsuoka's packages.
695
696 2011-09-09  Ethan A Merritt  <merritt@u.washington.edu>
697
698         * docs/doc2tex.c docs/titlepag.tex:  Tweak format of TeX documentation
699         (no section numbers in table of contents, text width appropriate for
700         paper size).
701
702 2011-09-09  Bastian Maerkisch  <bmaerkisch@web.de>
703
704         src/win/wgnuplib.h src/win/wgraph.c src/win/wresourc.h term/win.trm:
705         Add a toolbar to the graph window. Currently, it offers icons for Copy,
706         Print, Save and Options. Additionaly, plot elements can be temporarily
707         hidden, ie. without a `replot`. This is much like what can be done
708         using canvas and svg terminals and is implemented using term->layer.
709
710 2011-09-08  Ethan A Merritt  <merritt@u.washington.edu>
711
712         * src/graphics.c (plot_image_or_update_axes):  "with image" from a
713         function may not make sense, but at least it should not segfault.
714         Bug #3406642
715
716 2011-09-07  Ethan A Merritt  <merritt@u.washington.edu>
717
718         * src/parse.c (parse_sum_expression): Simplify construction of summation
719         action table.
720         
721         * src/command.c (undefine_command) src/eval.c (del_udv_by_name):
722         Break out the guts of undefine_command into a utility routine that can
723         be called internally.
724
725         * src/hidden3d.c (build_networks): Valgrind found a test against an
726         uninitialized field.
727
728 2011-09-06  Ethan A Merritt  <merritt@u.washington.edu>
729
730         * configure.in: cairo_ps_surface_set_eps is only supported by cairo
731         version 1.6.0 or later.
732
733 2011-09-05  Ethan A Merritt  <merritt@u.washington.edu>
734
735         * src/term.c term/canvas.trm: Allow canvas and svg terminals to provide
736         mousing even if gnuplot itself is built without USE_MOUSE.
737
738         * src/gplt_x11.c src/Makefile.am:  gnuplot_x11 --version
739
740 2011-09-04  Bastian Maerkisch  <bmaerkisch@web.de>
741
742         * src/readline.c (fn_completion, tab_completion, isdoublewidth)
743         src/win/screenbuf.h (sb_calc_length) src/win/wcommon.h (open_printer,
744         close_printer) src/win/wgraph.c (UnicodeText) src/win/winmain.c
745         (ShutDown, CheckMemory) src/win/wmenu.c: Add missing prototypes, 
746         make local functions static.
747
748         * src/alloc.c src/alloc.h src/ansicheck.h src/command.c src/command.h
749         src/plot.c src/scanner.c src/stdfn.c src/syscfg.h src/term.c:
750         Remove conditional code for Atari Pure C and Borland C compilers.
751
752         * src/axis.c src/command.c src/datafile.c src/getcolor.c src/misc.c
753         src/pm3d.c src/variable.c: Remove unused variables and prototypes.
754
755 2011-09-03  Ethan A Merritt  <merritt@u.washington.edu>
756
757         * term/svg.trm term/canvas.trm term/js/gnuplot_mouse.js
758         term/js/gnuplot_svg.js:  Add support for time coordinates to the mousing
759         code used by svg and canvas terminals.  In this initial implementation,
760         only the primary X axis is checked, and there is no provision for a
761         user-supplied format.
762
763 2011-09-02  Ethan A Merritt  <merritt@u.washington.edu>
764
765         * configure.in term/cairo.trm:  Check for the presence of cairo-ps.h
766         before trying to build the epscairo terminal.
767
768 2011-09-02  Bastian Maerkisch  <bmaerkisch@web.de>
769
770         * docs/makefile.ami docs/old/README.ami docs/old/README.win 
771         src/gnuplot.prj src/linkopt.ztc: Removed.
772
773         * config/makefile.unx docs/Makefile.in src/Makefile.am: Remove
774         references to obsolete files.
775
776 2011-09-01  Ethan A Merritt  <merritt@u.washington.edu>
777
778         * configure.in: Yet another rewrite of the installation path rules for
779         TeX files.
780         Bug #3401370
781
782         * configure.in: Remove some obsolete status messages.
783
784 2011-09-01  Shigeharu Takeno  <shige@iee.niit.ac.jp>
785
786         * term/emf.trm (EMF_put_text):  Use iconv to handle Shift_JIS encoding.
787
788 2011-08-31  Ethan A Merritt  <merritt@u.washington.edu>
789
790         * m4/apple.m4:  Revert change of 2011-07-23 (aquaterm LIBS)
791
792         * configure.in: Rewrite the installation path rules for TeX files.
793         Bug #3401370
794
795 2011-08-29  Bastian Maerkisch  <bmaerkisch@web.de>
796
797         * src/winmain.c (_WIN32_IE): MinGW64 headers require IE >= 501.
798         Bug #3398189
799
800 2011-08-29  Ethan A Merritt  <merritt@u.washington.edu>
801
802         * src/gplt_x11.c src/stdfn.h src/getcolor.c:  Make "assert" statements
803         trigger int_error() rather than abort(), so that debugging is easier.
804
805 2011-08-28  Shigeharu Takeno  <shige@iee.niit.ac.jp>
806
807         * docs/gnuplot-ja.doc docs/term-ja.diff:  sync to docs version 1.688
808
809 2011-08-28  Peter Juhasz  <juhaszp@users.sourceforge.net>
810
811         * src/plot2d.c (get_data): Revert yesterday's change to this file 
812         because it broke stringvar.dem.
813
814 2011-08-27  Ethan A Merritt  <merritt@u.washington.edu>
815
816         * PORTING src/makefile.all src/makefile.awc src/term.h configure.vms
817         config/config.cyg config/config.dj2 config/config.mgw config/config.nt
818         config/config.os2 config/config.oww config/makefile.unx configure.in:
819         Remove obsolete mgr terminal driver.  The mgr window system offered a
820         terminal sort of like xterm+graphics in the era of Sun3 (i.e. early-mid
821         1990s). Source for the mgr server has apparently disappeared from the
822         net.  Gnuplot's mgr.trm supported only text and vector commands, so
823         even if an operational installation of mgr could be found, features 
824         added to gnuplot since about version 3.7 would be irrelevant. Let it go.
825
826 2011-08-27  Peter Juhasz  <juhaszp@users.sourceforge.net>
827
828         * src/datafile.c (expect_string) src/eval.c src/eval.h docs/gnuplot.doc:
829         Add patch #3397007 to complete the support for named columns with the 
830         "labels" style. The following now works: 
831             plot 'data' using "A":"B":"labels" with labels
832         Update the documentation. 
833         
834         * src/datafile.c (f_timecolumn) src/plot2d.c:
835         Track the current using spec to ensure that the timecolumn function
836         gets the right timeformat. (fixes part of bug #3163386)
837
838         * demo/timedat.dem: Remove the relative date demo because it was 
839         misleading and incorrect.
840
841         * src/set.c (set_tics): For some options set_tics() 
842         didn't act on all axes.
843         
844         * src/graphics.c (boundary): Fix (?) boundary calculation for 
845         "set xtics rotate".
846
847 2011-08-25  René Haber  <renehaber@users.sourceforge.net>
848
849         * term/cairo.trm: New terminal epscairo using the shared cairo/pango
850         code to produce and export an eps surface.
851
852         * term/term.c: Allow "set term eps" as short for "set term epscairo".
853
854 2011-08-24  Bastian Maerkisch  <bmaerkisch@web.de>
855
856         * src/command.c src/command.h src/win/winmain.c: "raise/lower <id>"
857         command for windows terminal.
858
859         * src/command.c (rlgets): Restore code for builtin readline which was
860         deleted by accident.
861
862 2011-08-23  Peter Juhasz  <juhaszp@users.sourceforge.net>
863
864         * src/datafile.c (f_stringcolumn) docs/gnuplot.doc:
865         Implement 'stringcolumn("string")' in using specs to allow named columns
866         for the "labels" style too. The more natural 
867             plot 'data' using "A":"B":"labels" with labels
868         still doesn't work: document this fact. 
869
870 2011-08-23  Bastian Maerkisch  <bmaerkisch@web.de>
871
872         * src/command.c (rlgets): Removing duplicate entries trashes command
873         line history when using editline. Just suppress adding the same command
874         to history repeatedly.
875         * src/history.c (history_find_all): editline's version of
876         history_set_pos() does not work, so traverse history list manually.
877         History indices are reversed compared to GNU readline. Fixes history ?.
878         Patch #3186010
879
880         * term/emf.trm (EMF_put_text): Use iconv (if available) to convert
881         UTF-8 encoding to UTF-16 and store using wide characters.
882         Bug #3021779
883
884         * config/config.mgw config/mingw/Makefile: add support for libiconv
885
886 2011-08-22  Ethan A Merritt  <merritt@u.washington.edu>
887
888         * src/graph3d.c:  Honor 'set key maxrows N' in 3D plot key.
889         Bug #3396501
890
891 2011-08-19  Ethan A Merritt  <merritt@u.washington.edu>
892
893         * src/commands.c src/misc.c docs/gnuplot.doc:
894         The old-style if/else syntax cannot be mixed with the new syntax using
895         { and } to enclose blocks of commands, possibly spanning several lines.
896         Add stronger warnings to the documentation and issue an error message
897         if an old-style if statement is encountered inside a bracketed clause.
898         Bug #3393631
899
900 2011-08-15  Bastian Maerkisch  <bmaerkisch@web.de>
901
902         * src/win/wgraph.c (WndGraphProc): Restore text window on space key:
903         also show terminal window if it is currently minimized.
904
905         * src/command.c (pause_command) src/win/wgnuplib.h (GW) src/win/wgraph.c
906         src/win/winmain.h src/win/winmain.c term/win.trm: Support multiple
907         graph windows. All state variables of graph windows were contained
908         in a single struct already. Replace all references to this struct
909         (graphwin) by pointers and dynamically allocate new instances when
910         required. Do not pass on mouse and key events from inactive windows.
911         Note: Since a single number passed to `set term win` is now interpreted
912         as window identifier, the old and fontsize options are no longer
913         supported and the `font` keyword is now required. This is consistent
914         with other terminals (e.g. x11 and wxt).
915
916         * src/win/wgnuplib.h src/win/wgraph.c: Make GraphChangeFont static. 
917
918 2011-08-15  Reinier Heeres  <rheeres@users.sourceforge.net>
919
920         * src/win/pgnuplot.c: Detect termination of wgnuplot. Slightly enhanced
921         version of SF patch #2373741.
922
923 2011-08-09  Ethan A Merritt  <merritt@u.washington.edu>
924
925         * PORTING config/config.cyg config/config.dj2 config/config.mgw 
926         config/config.nt config/config.os2 config/config.oww
927         config/makefile.unx configure.in configure.vms docs/Makefile.in
928         docs/doc2texi.el docs/gpcard.tex src/Makefile.am src/makefile.all 
929         src/makefile.awc src/rgipgnu src/term.h term/rgip.trm 
930
931         Remove code specific to the rgip terminal (Redwood Graphics Interface
932         Protocol). The company (uniplex) supporting this protocol no longer
933         exists.  The terminal itself no longer compiles cleanly, and valgrind
934         shows many buffer overflows and alloc/free errors.
935         19 files changed, 13 insertions(+), 841 deletions(-)
936
937 2011-08-02  Ethan A Merritt  <merritt@u.washington.edu>
938
939         * docs/plotstyles.gnu docs/gnuplot.doc term/be.trm term/canvas.trm
940         term/cgm.trm term/ai.trm term/aquaterm.trm term/cgi.trm:
941         Documentation updates
942
943         * src/wxterminal/wxt_gui.cpp (OnCreateWindow):  It is not acceptable
944         to have every new plot window occlude the center of the screen.
945
946 2011-08-01  Micha Wiedenmann  <mw-u2@gmx.de>
947
948         * src/eval.h src/eval.c (get_udv_by_name free_at) src/show.c (disp_at) 
949         src/internal.h src/internal.c (f_sum) src/parse.c (parse_sum_expression)
950         docs/gnuplot.doc demo/bivariat.dem:
951
952         New expression type for summation:
953             sum [<var> = <beg> : <end>] <something>
954
955 2011-07-30  Stefan Reiser  <stefanreiser@users.sourceforge.net>
956
957         * src/win/wgraph.c (WriteGraphIni): Fix spelling of "Antialiasing"
958         field. Bug #3382732
959
960 2011-07-27  Ethan A Merritt  <merritt@u.washington.edu>
961
962         * src/graphics.c (plot_impulses): Skip UNDEFINED points.
963         Bug #3382469
964
965 2011-07-28  Bastian Maerkisch  <bmaerkisch@web.de>
966
967         *src/win/wgraph.c (GraphEnhancedOpen, GraphEnhancedFlush): Fix sign
968         error in placement of rotated enhanced text with sub-/superscripts.
969
970 2011-07-27  Ethan A Merritt  <merritt@u.washington.edu>
971
972         * term/svg.trm:  Handle multiple overprint characters, albeit not
973         the way people probably expect.
974         Bug #3371782
975
976 2011-07-25  Ethan A Merritt  <merritt@u.washington.edu>
977
978         * term/svg.trm: Remove size limit on svg plot dimensions.
979
980 2011-07-24  Ethan A Merritt  <merritt@u.washington.edu>
981
982         * src/wxterminal/wxt_gui.cpp: Fix MSWin breakage from yesterday's patch
983         due to conditional code block damage.
984         Bug #3376861
985
986         * src/datafile.c (df_readbinary): Allow "using ... xticlabels()" for
987         binary files as well as ascii files.  Only string-valued functions
988         are valid in this case, as no string can be read from the binary 
989         datafield itself.
990
991         * src/graph3d.h src/hidden3d.c src/misc.c src/misc.h src/plot3d.c:
992         Re-work assignment of color and line type to top/bottom hidden3d
993         surfaces.  Keep the user-requested linetype in a new field of the
994         splot structure, since otherwise linetype definitions would overwrite
995         it. 
996
997 2011-07-23  Adam Strzelecki <ono@users.sourceforge.net>
998
999         * src/wxterminal/wxt_gui.cpp src/wxterminal/wxt_gui.h m4/apple.m4:
1000         OSX support for wxt terminal.  For OSX, switch to using single-threaded
1001         hybrid GUI & console event loop at wxt_waitforinput().
1002         Add -framework ApplicationServices to the apple-specific
1003         configuration flags.
1004
1005 2011-07-23  Mojca Miklavec <mojca.miklavec.lists@gmail.com>
1006
1007         * m4/apple.m4:  Replace -laquaterm with -Wl,-framework -Wl,AquaTerm
1008         which is supposed to make the Macports version of aquaterm install
1009         properly.
1010
1011 2011-07-22  Peter Juhasz  <juhaszp@users.sourceforge.net>
1012
1013         * src/parse.c src/parse.h plot2d.c plot3d.c set.c unset.c command.c:
1014         Revise iteration-over-plot mechanism to handle edge cases of nested
1015         iteration correctly.
1016
1017 2011-07-20  Peter Hedwig <peter@affenbande.org>
1018
1019         * term/lua/gnuplot-tikz.lua:  Point types 10 and 11 were upside down.
1020         Bug #3368877
1021
1022         * fill paths now have a pensize > 0 to have slight overlap of tiles to
1023         avoid rendering artifacts
1024
1025         * path building was broken and showed interrupted lines on certain plots
1026         e.g. plot '+' u 1:($1**2):($1**2) with lines palette lw 3 title '$x^2$'
1027
1028         * a new terminal option (tightboundingbox|notightboundingbox) is added
1029
1030 2011-07-20  Ethan A Merritt  <merritt@u.washington.edu>
1031
1032         * src/datafile.c:  Allow binary data for plot style fillsteps
1033         Bug #3371199
1034
1035         * term/gd.trm:  Prevent infinite loop on unrecognized terminal option
1036
1037 2011-07-14  Ethan A Merritt  <merritt@u.washington.edu>
1038
1039         * src/graphics.c (plot_boxes):  Correct positioning of bars in clustered
1040         histograms when some values are missing.
1041         Bug #3360882
1042
1043         * src/datafile.c (df_open plot_option_using df_readascii f_column)
1044         src/datafile.h src/parse.c (create_call_column_at extend_at) src/parse.h
1045         src/eval.c src/eval.h src/plot2d.c src/plot3d.c docs/gnuplot.doc:
1046
1047         Implement column selection based on matching a leading substring of the
1048         column header.
1049             plot 'foo' using (column("A")):(column("B"))
1050             plot 'foo' using "A":"B"
1051             plot for [value in "Weight Height"] 'foo' using "Age":value
1052
1053 2011-07-12  Peter Juhasz  <juhaszp@users.sourceforge.net>
1054
1055         * src/command.c src/term.c: Fix crash of 'test' after an 
1056         unsuccessful 'set term'
1057         Bug #3347683
1058
1059         * src/parse.c src/parse.h docs/gnuplot.doc: Add nested iteration in plot
1060         and other commands: constructs like 'plot for [i=1:5] for [j=1:5] foo'
1061         are now valid
1062
1063         * src/axis.c src/axis.h src/color.c src/graph3d.c src/graphics.c
1064         src/save.c src/set.c src/show.c src/unset.c docs/gnuplot.doc:
1065         Allow explicit justification for tic labels, e.g. set xtics right
1066
1067 2011-07-11  Ethan A Merritt  <merritt@u.washington.edu>
1068
1069         * src/graphics.c (plot_steps): Don't pass negative heights to t->fillbox
1070         Bug #3358185
1071
1072 2011-07-03  Ethan A Merritt  <merritt@u.washington.edu>
1073
1074         * src/term.c (term_apply_lp_properties):  Handle the case where 
1075         LT_COLORFROMCOLUMN is passed through as a linetype along with a color.
1076         Bug #3350570
1077
1078 2011-06-30  Ethan A Merritt  <merritt@u.washington.edu>
1079
1080         * src/hidden3d.c (draw_edge):  Do not apply the default top/bottom
1081         colors to line segments belonging to the plot border.
1082         Bug #3344103
1083
1084 2011-06-28  Ethan A Merritt  <merritt@u.washington.edu>
1085
1086         * term/svg.trm:  Pattern-fill definitions must initialize both fill and
1087         stroke style; otherwise the most recent setting may bleed through.
1088         Bug #3334216
1089
1090 2011-06-28  Shigeharu Takeno  <shige@iee.niit.ac.jp>
1091
1092         * docs/gnuplot-ja.doc docs/term-ja.diff:  sync to docs version 1.677
1093
1094 2011-06-21  Ethan A Merritt  <merritt@u.washington.edu>
1095
1096         * src/graphics (plot_histeps): Fix range-checking of log-scaled y.
1097         Bug #3323828
1098
1099 2011-06-20  Ethan A Merritt  <merritt@u.washington.edu>
1100
1101         * src/getcolor.c term/x11.trm src/gplt_x11.c:
1102         Remove a set of routines in getcolor.c used only by the x11 terminal
1103         to pass a color gradient description through the pipe to gnuplot_x11.
1104         They packed four doubles (value; RGB color) into 8 bytes, losing
1105         precision and failing to round.  Now we instead use 12 ascii characters
1106         "0.1234RRGGBB".
1107         Bug #3322975
1108
1109 2011-06-19  Ethan A Merritt  <merritt@u.washington.edu>
1110
1111         * src/command.c src/command.h src/misc.c src/misc.h src/parse.h
1112         src/scanner.c src/scanner.h src/tables.c src/util.c docs/gnuplot.doc:
1113
1114         Extend the line input processing to include blocks of commands enclosed
1115         by curly braces, possibly spanning multiple lines.  This syntax is used
1116         by new commands:
1117             if (<cond>) { ... } else { ... }
1118             do for [...] { ... }
1119             while (<cond>) { ... }
1120
1121 2011-06-18  Ethan A Merritt  <merritt@u.washington.edu>
1122
1123         * src/datafile.c src/gplt_x11.c src/plot2d.c src/set.c src/util.c:
1124         Remove dead code sections. Most of these have been commented out for
1125         many years.
1126
1127         * src/command.c (do_line):  Macro expansion must be done before calling
1128         scanner() to identify specific tokens.
1129
1130         * src/command.c src/command.h: Export string_expand_macros().
1131
1132         * src/command.c (read_line): Prepare for block-structure work by adding
1133         a parameter to allow extending, rather than replacing, the input line.
1134
1135 2011-06-17  Ethan A Merritt  <merritt@u.washington.edu>
1136
1137         * src/getcolor.c (quantize_gray)): Remove a possible discontinuity at
1138         the boundary of defined palettes with a small number of segments.
1139         Bug #3317746
1140
1141 2011-06-17  Peter Juhasz  <juhaszp@users.sourceforge.net>
1142
1143         * src/time.c (gstrptime):  The correction for the difference in epochs
1144         (2000 - 1970) was incorrect when reading times in %s format.
1145         Bug #3163386
1146
1147 2011-06-16  Ethan A Merritt  <merritt@u.washington.edu>
1148
1149         * src/pm3d.c (z2cb): If cb is log-scale, then limit result to positive
1150         values.
1151         Bug #3316616
1152
1153 2011-06-14  Ethan A Merritt  <merritt@u.washington.edu>
1154
1155         * src/graphics.c (plot_histeps): Allow data points with y=0 even if log
1156         scaling is active.
1157         Bug #3316112
1158
1159 2011-05-31  Ethan A Merritt  <merritt@u.washington.edu>
1160
1161         * term/emf.trm: Reset line and text colors at the start of each plot.
1162
1163         * config/config.cyg config/config.dj2 config/config.mgw config/config.nt
1164         config/config.os2 config/config.oww config/makefile.dj2 
1165         config/makefile.emx config/makefile.unx config/makefile.vms
1166         docs/doc2texi.el docs/Makefile.in docs/term-ja.diff
1167         src/makefile.all src/makefile.awc src/show.c src/term.c src/term.h
1168         configure.in configure.vms INSTALL PORTING NEWS
1169         term/gnugraph.trm term/unixplot.trm:
1170
1171         Remove obsolete terminal drivers gnugraph and unixplot. The underlying
1172         gnu plotutils library is itself more than 10 years out of date (last
1173         release July 2000) and the terminal drivers haven't been upgraded for
1174         longer than that. In any event, current gnuplot has better native
1175         terminal drivers for the devices supported by unixplot/gnugraph.
1176
1177 2011-05-27  Ethan A Merritt  <merritt@u.washington.edu>
1178
1179         * src/datafile.c (df_open df_determine_matrix_info):
1180         Add a keyword '[s]plot ... nonuniform matrix'
1181         This provides an ascii input option parallel to 'binary matrix'.
1182         nonuniform matrix:  ascii;  y coords in row 1, x coords in column 1
1183         binary matrix:      binary; y coords in row 1, x coords in column 1
1184         matrix:             ascii;  uniform grid of x/y coords
1185         binary general:     binary; uniform grid of x/y coords
1186
1187         * docs/gnuplot.doc:  Reorganize the description of data file contents.
1188         More reorganization is still wanting.
1189
1190 2011-05-25  Bastian Maerkisch  <bmaerkisch@web.de>
1191
1192         * docs/windows/doc2html.c: Encoding of gnuplot.doc is UTF-8.
1193
1194 2011-05-24  Christoph Bersch  <usenet@bersch.net>
1195
1196         * term/cairo.trm: PDF documents normally behave as if they had a 
1197         transparent background.  Modify the pdfcairo terminal to do this by
1198         default, but also to accept the keywords {no}transparent.
1199
1200 2011-05-24  Harald Koenig  <h_koenig@users.sourceforge.net>
1201
1202         * src/Makefile.maint: Use dd rather than head to update last-modified
1203         date since not all platforms support "head -c".
1204
1205 2011-05-24  Ethan A Merritt  <merritt@u.washington.edu>
1206
1207         * docs/titlepag.tex, docs/gnuplot.doc:  Add Peter Juhasz,
1208         Bastian Maerkisch, and Shige Takeno to the list of contributors. UTF-8.
1209
1210 2011-05-22  Ethan A Merritt  <merritt@u.washington.edu>
1211
1212         * parse.c (check_iteration next_iteration empty_iteration) parse.h
1213         plot2d.c plot3d.c set.c unset.c:  Rather than using a single set of
1214         global iteration bookkeeping variables, require that each iteration
1215         user pass in a structure for bookkeeping.  This allows nested
1216         iteration, so long as two different iteration structures are used.
1217
1218         * command.c (do_line):  Strip trailing comments from input lines as
1219         they are read, since there is no point in storing what we are going
1220         to ignore later.  Minor cleanup of #ifdef nesting.
1221
1222 2011-05-16  Ethan A Merritt  <merritt@u.washington.edu>
1223
1224         * src/specfun.c (humlik):  Initialization would fail whenever y = -1.
1225
1226 2011-05-15  Bastian Maerkisch  <bmaerkisch@web.de>
1227
1228         * src/wxterminal/gp_cairo.c (gp_cairo_draw_fillbox): Width of filled
1229         box was off by one unit.
1230
1231         * src/win/wgraph.c (GetMousePosViewport): Window size is zero for
1232         minized windows on Vista. Fixes crash when closing plot window in
1233         minimized state e.g. via taskbar.
1234
1235         * src/win/wgraph.c (drawgraph): [W_boxfill] Fix inversion of
1236         transparency. [W_filled_polygon_draw]: Fix transparency in case of
1237         aliased solid white polygons.
1238
1239 2011-05-14  Ethan A Merritt  <merritt@u.washington.edu>
1240
1241         * src/axis.h src/axis.c src/gadgets.c src/gadgets.h src/graphics.c
1242         src/hidden3d.c src/internal.c term/README: Fix incomplete and incorrect
1243         initializers found by gcc.
1244
1245 2011-05-14  Bastian Maerkisch  <bmaerkisch@web.de>
1246
1247         * src/win/wgraph.c (drawgraph) [W_image]: Clip images as requested.
1248
1249         * src/win/wgraph.c (WndGraphProc) [WM_KEYDOWN]: Handle VK_CONTROL key
1250         events again. Fixes ctrl-mousedrag rotation of splots.
1251
1252         * src/mouse.c (event_keypress): MinGW's toupper() masks out high bits
1253         required for special keys. Only call for 8bit characters. Fixes
1254         accelerated rotation with keys (e.g. shift-left) for wxt and windows
1255         terminals.
1256
1257         * src/win/wgdiplus.c|h src/win/wgraph.c: Extend support for
1258         antialiasing of line segments and point symbols. Omit border of
1259         non-antialiased solid filled polygons.
1260
1261 2011-05-13  Ethan A Merritt  <merritt@u.washington.edu>
1262
1263         * src/graph3d.c (draw_3d_graphbox):  Avoid use of round() because
1264         MSVC is still not C99-compliant.
1265
1266 2011-05-13  Allin Cottrell  <cottrell@wfu.edu>
1267
1268         * src/wxterminal/gp_cairo.c (gp_cairo_convert): Make the WIN32 font
1269         work-around (2009-11-06) conditional on cairo < 2.10. Needs more
1270         testing.
1271
1272 2011-05-13  Bastian Maerkisch  <bmaerkisch@web.de>
1273
1274         * src/win/wgraph.c (WndGraphProc): Cycle through mouse-modes by
1275         clicking on status bar. Suggestion by plotter@piments.com
1276
1277         * src/plot.c (main): Print messages concerning codepages only in
1278         interactive sessions.
1279
1280         * src/win/wgnuplot.rc: Give the MSVC compiler a chance to create the
1281         manifest itself.
1282
1283         * src/win/wgraph.c (drawgraph): Fix image regression.
1284
1285         * term/win.trm: Help text for antialiasing.
1286
1287 2011-05-12  Ethan A Merritt  <merritt@u.washington.edu>
1288
1289         * docs/gnuplot.doc src/set.c src/mouse.c:  Update documentation for the
1290         mouse format modes, which has been incorrect since approximately forever
1291         (predates CVS repository).
1292
1293 2011-05-10  Ethan A Merritt  <merritt@u.washington.edu>
1294
1295         * src/datafile.c (expand_df_column):  Provide a shared routine for 
1296         dynamic allocation of space to hold input data lines. This replaces
1297         three separate instances, only one of which did proper initialization.
1298
1299         * src/graphics.c (finish_filled_curve): Consolidate duplicated code.
1300
1301         * src/graph3d.c (draw_3d_graphbox) src/set.c (parse_label_options)
1302         src/gadgets.h src/show.c src/save.c
1303         docs/plotstyles.gnu docs/gnuplot.doc:
1304         The X-axis and Y-axis labels in 3D plots can be aligned parallel to the
1305         respective axis using the command `set [xy]label rotate parallel`.
1306
1307 2011-05-10  Bastian Maerkisch  <bmaerkisch@web.de>
1308
1309         * term/gd.trm (PNG_options): Init font pointers before using them.
1310
1311 2011-05-09  Ethan A Merritt  <merritt@u.washington.edu>
1312
1313         * term/eepic.trm:  New terminal option {size XX,YY}
1314         Bug #3170746
1315
1316         * src/graphics.c (boundary):  Add a sanity check to make sure that the
1317         plot size is not so small that the boundary limits go negative.
1318         Implemented as int_warn(), but maybe it should be int_error().
1319         Bug #3154401
1320
1321         * src/term_api.h src/term.c src/util.c src/util.h:  Remove dead code.
1322
1323 2011-05-07  Bastian Maerkisch  <bmaerkisch@web.de>
1324
1325         * src/command.c (help_command) src/win/wgraph.c (WndGraphProc)
1326         src/win/winmain.c (WinExit, WinMain) src/wxtterminal/wxt_gui.cpp
1327         (wxtPanel::RaiseConsoleWindow, wxt_atexit): For console gnuplot on
1328         Windows, remove dependency on struct textwin, which represents the
1329         non-existant text window. Fixes e.g. overwriting of text window
1330         settings in wgnuplot.ini. Console gnuplot no longer depends on wtext.c
1331         and screenbuf.c.
1332
1333         * src/standard.c (fn_asin, fn_asinh): Fix calculation for complex
1334         arguments. Make sure that asin(sin(z))==z. Bug #2879772.
1335         
1336         * config/README: Update to current status.
1337
1338         * config/config.mgw config/config.oww: Sync with config.h created
1339         by autoconf tools.
1340
1341 2011-05-06  Shigeharu Takeno  <shige@iee.niit.ac.jp>
1342
1343         * src/graph3d.c: Make "notitle" suppress contour line key entries in 
1344         addition to the surface key entry.  This makes it possible to draw any
1345         combination of surface, contours, and key entries.
1346
1347 2011-05-06  Benjamin Lindner  <lindnerb@users.sourceforge.net>
1348
1349         * docs/plotstyles.gnu docs/gnuplot.doc: Add an illustration of the
1350         'newhistogram' command.
1351
1352 2011-05-06  Ethan A Merritt  <merritt@u.washington.edu>
1353
1354         * INSTALL: Update the description of readline options and mention
1355         the ./prepare script.
1356
1357 2011-05-06  Shigeharu Takeno  <shige@iee.niit.ac.jp>
1358
1359         * config/makefile.nt: Add missing support for GDI+. Bug #3298244
1360
1361 2011-05-06  Bastian Maerkisch  <bmaerkisch@web.de>
1362
1363         * config/msvc/Makefile: New file for Microsoft Visual C++. Builds
1364         out of tree. Intended to eventually replace config/makefile.nt.
1365
1366         config/Makefile.am.in (Makefile.am): Add new Makefile.
1367
1368 2011-05-05  Ethan A Merritt  <merritt@u.washington.edu>
1369
1370         * src/datafile.h src/datafile.c src/plot2d.c src/plot3d.c:
1371         Change prototype of df_set_key_title_columnhead() to match that of
1372         df_set_key_title().
1373
1374 2011-05-05  Bastian Maerkisch  <bmaerkisch@web.de>
1375
1376         * term/win.trm (WIN_set_font) src/win/wgraph.c (drawgraph): Defer
1377         determination of default font name and size. Fixes bug addressed
1378         by change of 2010-02-22, but without the need for do_string_replot()
1379
1380         * src/win/wgraph.c (drawgraph): New variable fill_color to track
1381         color of fills. Use cached color brush for transparent solid fills
1382         instead of creating a new one.
1383
1384         * src/win/wgraph.c (drawgraph) src/win/wgdiplus.c|h: Add support for
1385         antialiased solid filled (transparent) polygons.
1386
1387         * src/win/wpause.c (WndPauseProc): Use default dialog font instead of
1388         fixed width font for pause dialog.
1389
1390         * src/readline.c (readline): Tab is a printable character in some
1391         locales, ie. isprint(TAB)>0.
1392
1393         * src/win/wgraph.c (MakeFonts): Reduce size of tics and point symbols
1394         by 20%.
1395
1396 2011-05-04  Bastian Maerkisch  <bmaerkisch@web.de>
1397
1398         * config/mingw/Makefile: Build support for lua tikz related TeX files.
1399         Use Makefile.maint to update version.c. Update install target to match
1400         directory layout of distribution and include share/lua/, share/LaTeX/, 
1401         contrib/, demo/, README, NEWS, Copyright and ChangeLog.
1402
1403 2011-05-02  Ethan A Merritt  <merritt@u.washington.edu>
1404
1405         * src/variable.c (locale_handler): If built-in readline character input
1406         is to recognize UTF-8 characters via wcwidth(), it is necessary to 
1407         initialize the CTYPE locale on entry. "set encoding utf" is not
1408         sufficient.
1409
1410 2011-05-02  Bastian Maerkisch  <bmaerkisch@web.de>
1411
1412         * src/readline.c (tab_completion, fn_completion, readline) NEWS:
1413         Cycling variant of filename tab-completion for builtin readline.
1414
1415         * src/stdfn.c|h (strnlen, strndup) configure.in config/config.nt
1416         config/config.mgw config/config.oww: Support functions used by
1417         tab-completion code.
1418
1419         * src/stdfn.c|h (opendir, closedir, rewinddir): Add Kevlin Henney's
1420         POSIX directory browsing functions and types for Win32.
1421
1422         * src/readline.c (mbwidth, isdoublewidth) configure.in: Determine
1423         on screen width of utf8 encoded characters with wcwidth() if
1424         provided by the system.
1425
1426         * src/readline.c (delete_previous_word): Overprint with exact
1427         number of spaces, add NUL at eol.
1428
1429 2011-04-30  Ethan A Merritt  <merritt@u.washington.edu>
1430
1431         * src/readline.c (clear_eoline): More efficient clear line algorithm.
1432
1433 2011-04-29  Ethan A Merritt  <merritt@u.washington.edu>
1434
1435         * src/mouse.c (apply_zoom):  Prevent double-free of custom font for tic
1436         labels.
1437         Bug #3294915
1438
1439 2011-04-28  Bastian Maerkisch  <bmaerkisch@web.de>
1440
1441         Support for (optional) antialiasing in windows terminal via GDI+.
1442
1443         * config/config.mgw, config/config.nt: Compilers have support for
1444         GDI+: define HAVE_GDIPLUS. Note: OpenWatcom might not support GDI+
1445         * config/mingw/Makefile: Include new files wgdiplus.h|cpp in build,
1446         add library gdiplus.
1447         * src/win/wgdiplus.cpp src/win/wgdiplus.h: New files. C interface
1448         to Windows GDI+ library. Currently supports polylines and circles.
1449         * src/win/wgnuplib.h src/win/wgraph.c src/win/winmain.c
1450         src/win/wresourc.h: Implement antialiasing for lines and and most point
1451         shapes. Add option to LPGW, wgnuplot.ini and popup menu to toggle
1452         antialiasing on and off. Default to oversampling off now that we have
1453         proper antialiasing. Wrap all GDI+ code in #ifdef HAVE_GDIPLUS.
1454
1455         * src/win/wgraph.c (drawgraph) [W_fillstyle, FS_PATTERN]: Fix cycling
1456         of pattern styles.
1457
1458         * src/wxterminal/gp_cairo.c|h (gp_cairo_default_font)
1459         src/wxterminal/wxt_gui.c: New function to determine default font.
1460         Default is "Sans" on all systems but Windows where this alias might
1461         not work work in all cases.
1462
1463 2011-04-27  <wtf3@users.sourceforge.net>
1464
1465         * src/graphics.c:  The autotitle option for column-stacked histograms
1466         should honor "set key maxrows N".
1467         Bug #3281635
1468
1469 2011-04-27  Bastian Maerkisch  <bmaerkisch@web.de>
1470
1471         * src/command.c (help_command) src/win/winmain.h src/win/winmain.c
1472         (WinExit, ShutDown, WinCloseHelp, WinMain): Work-around for apparently
1473         well known html help bug, which causes spurious crashes on exit. Keep
1474         track of help window handle and try to close the window as soon as 
1475         possible. New function WinCloseHelp.
1476
1477         Extensive update to color, linetype and fillstyle handling in windows
1478         terminal. Fixes several bugs and implements new options.
1479
1480         * term/win.trm (WIN_id, WIN_opts, WIN_options): Add options "solid",
1481         "dashed", "background", "fontscale" and "linewidth". Call new function
1482         GraphInitStruct to initialize graphwin. Inlcude font in term_options.
1483         * term/win.trm (WIN_point, WIN_filled_polygon): Handle dashed lines
1484         in drawgraph, not here. (WIN_filled_polygon): Use generalized
1485         W_fillstyle call, shared with WIN_boxfill. (WIN_boxfill): Pass second
1486         corner as parameter, not width and height. Fixes spurious rounding
1487         errors during translation to graph coordinates. (help text): Document
1488         new options.
1489         * src/win/wgnuplib.h (GW): Reorder entries according to function.
1490         * src/win/wgraph.c (pattern_bitmaps): Fix double cross-hatch.
1491         (GraphInitStruct): New function. (MakePens, DestroyPens): Account for
1492         linewidth and sampling and create an additional "null" pen which is
1493         used for filled polygons and boxes. (MakeFonts, GraphEnhancedOpen)
1494         Account for fontscale. (draw_new_pens, draw_new_brush) New functions
1495         to (re)create brushes and pens. Always create a "solid" partner for
1496         the possibly "dashed" pen. Called by drawgraph.
1497         * src/win/wgraph.c (drawgraph): Reorder variables according to
1498         function. [W_line_type]: Save last LOGPEN instead of pen index. Make 
1499         use of draw_new_pens. Select background brush for line-type <= 
1500         LT_NODRAW (fix by Shigeharu Takeno, Bug 3192205). [W_fillstyle]: Unify
1501         code for filled boxes and polygons. Use draw_new_brush. [W_boxfill]:
1502         Fillstyle is now set by previous call to W_fillstyle. Change interface
1503         from relative (width, height) to absolute position to avoid off by one
1504         rounding errors. Deselect brush use for transparent fill before
1505         deleting it. [W_line_width] Scale by linewidth option. [W_setcolor]
1506         Use save LPOGEN to create pens with new color. Use draw_new_brush and
1507         draw_new_pens to recreate brushes and pens. [W_filled_polygon_draw]
1508         Fillstyle is now set by previous call to W_fillstyle. Use "null" pen
1509         to avoid drawing a border around filled area. [W_image] Avoid static
1510         variables. [W_plus,...] Use solid pen. Fixes point symbols drawn with 
1511         dashed lines. Adresses Bug 1952364.
1512
1513 2011-04-26  Ethan A Merritt  <merritt@u.washington.edu>
1514
1515         * src/readline.c:  Revise the built-in readline code to handle UTF-8
1516         encoded character input. The revised code is only active if the user
1517         has explicitly done "set encoding utf8" or "set encoding locale", but
1518         probably it should be the default in a UTF-8 locale.
1519
1520         * src/readline.c (clear_line): More efficient clear line algorithm.
1521
1522 2011-04-25  Ethan A Merritt  <merritt@u.washington.edu>
1523
1524         * src/plot.c (main) src/misc.c (load_file): Initializing c_token to an
1525         illegal value is not a good idea.
1526         Bug #3292512
1527
1528 2011-04-23  Shigeharu Takeno  <shige@iee.niit.ac.jp>
1529
1530         * docs/gnuplot-ja.doc docs/term-ja.diff:  sync to docs version 1.664.
1531         * docs/Makefile.in (wxhelp/doc2html.o): Add missing space.
1532
1533 2011-04-22  Ethan A Merritt  <merritt@u.washington.edu>
1534
1535         * src/readline.c docs/gnuplot.doc:  Built-in readline did not recognize
1536         the character sequence produced by the DEL key on many keyboards.  Trap
1537         this sequence for interpretation as "forward delete", which is what the
1538         same key does under windows and gnu libreadline.  This does not affect 
1539         keyboards or xmodmap configurations where the DEL key produces another
1540         sequence entirely.
1541
1542 2011-04-22  Bastian Maerkisch  <bmaerkisch@web.de>
1543
1544         * src/readline.c:  The behavior of ^W was not consistent with the
1545         documentation. Change it to match gnu libreadline (delete previous
1546         partial or full word).
1547
1548 2011-04-20  Ethan A Merritt  <merritt@u.washington.edu>
1549
1550         * src/gplt_x11.c:  Most of the messages passed via the title bar
1551         of the X Display window are controlled by #ifdef TITLE_BAR_DRAWING_MSG.
1552         Do the same for the "allocating colors..." message.
1553
1554 2011-04-19  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
1555
1556         * config/Makefile.am.in (Makefile.am): Additional files to become
1557         part of the distributed tarball.  Reindented.
1558
1559 2011-04-19  Ethan A Merritt  <merritt@u.washington.edu>
1560
1561         * src/datafile.c (f_columnhead df_set_key_title) src/datafile.h
1562         src/eval.c src/plot2d.c (eval_plots) docs/gnuplot.doc:
1563
1564         New function columnhead(N) that returns a string containing column N
1565         from the first line of a data set. 'plot ... title columnhead(i)'
1566         was previously implemented as a keyword; making it a function instead
1567         allows, for example,
1568         'plot for [i=3:6] ... title "Results of ".columnhead(i)'
1569
1570 2011-04-19  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
1571
1572         * docs/Makefile.in (wxhelp/doc2html, gnuplot.htb): Ooops.
1573         Yesterday's directory name change to windows was wrong.  Undoing
1574         it.
1575
1576 2011-04-18  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
1577
1578         * term/Makefile.am.in: Use $< where applicable.
1579         ($(srcdir)/lua/gnuplot-tikz.help): Make workable outside the
1580         source tree.  Use $< and $@ where applicable.
1581
1582         * docs/Makefile.in (CLEANFILES): Fix broken directory name;
1583         indent.
1584         (gnuplot.htb): Fix broken directory name.  Make workable in
1585         out-of-source builds.
1586         (windows/wgnuplot.html, windows/doc2html.o, windows/doc2html): Fix
1587         wrong directory name.
1588
1589         * Makefile.maint (amfiles): Missing semicolon.
1590
1591 2011-04-18  Bastian Maerkisch  <bmaerkisch@web.de>
1592
1593         * src/win/wgraph.c (drawgraph): Fractional solid fill based on SF
1594         Patch 2905570 by Shigeharu Takeno. Remove halftone brushes.
1595         Eliminate static variable to keep track of pm3d brushes.
1596
1597 2011-04-17  Bastian Maerkisch  <bmaerkisch@web.de>
1598
1599         * config/mingw/Makefile: Use $^ and $< where applicable. Patch by
1600         Benjamin Lindner, SF Patch 2468650. Set TARGET only if it's not
1601         already defined. GNUPLOT_LUA_DIR was included twice in
1602         TERMOPTIONS. GNUPLOT_PS_DIR is required by show.c. [wgnuplot.chm]
1603         Avoid changing directory via shell which seem not to work reliably
1604         on all systems.
1605
1606 2011-04-17  Ethan A Merritt  <merritt@u.washington.edu>
1607
1608         * config/Makefile.am.in:  Fix package-build breakage.
1609
1610 2011-04-17  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
1611
1612         Building the three different types of executable for Windows
1613         was quite cumbersome (change make variable, make clean, build,
1614         all that thrice).  Compiling to three different object file name
1615         extensions helps with that.
1616
1617         * config/watcom/Makefile (VARIANT): New macro to choose among
1618         targets.
1619         (TARGETS_PLAIN, EXTRA_CPPFLAGS_PLAIN, TARGETS_PIPES)
1620         (EXTRA_CPPFLAGS_PIPES, TARGETS_CONSOLE, EXTRA_CPPFLAGS_CONSOLE):
1621         New macros for settings particular to one variant.
1622         (DEFAULT_TARGETS): Changed definition to use new per-variant
1623         macros.
1624         (ALL_TARGETS): New macro listing all things that can be built.
1625         (all): New target building all variants without the need to make
1626         clean in between.
1627         (WIN_EXTRA_INPUTS): Removed $(WINOBJS)
1628         (OBJS): Add $(WINOBJS) here instead.
1629         (CONSOLE_OBJS, PIPE_OBJS): Copies of $(OBJS) with different object
1630         filename extension.
1631         Use $(O) in favour of fixed .obj, to allow renaming trick.
1632         (.EXTENSIONS): Add .cobj and .pobj to list of recognized file name
1633         extensions.
1634         (.c.cobj): New implicit rule to compile sources for the console build.
1635         (.c.pobj): New implicit rule for pipe-enabled build.
1636         (wgnuplot.exe): $(WINOBJS) is contained in $(OBJS) now.
1637         (wgnuplot_pipes.exe): Use $(PIPE_OBJS) instead of $(OBJS)
1638         (gnuplot.exe): USE $(CONSOLE_OBJS) instead of $(OBJS)
1639         (term.cobj): New explicit rule to compile term.c for the console build.
1640         (term.pobj): New explicit rule to compile term.c for the pipe build.
1641         (.c): Added windows source subdirectory to VPATH search list.
1642         (w*.obj): Removed unnecessary explicit rules for Windows-specific
1643         files.
1644         (clean): Remove object files with new names.
1645
1646         * config/watcom/.cvsignore: Add new file name extensions to ignore.
1647
1648 2011-04-17  Bastian Maerkisch  <bmaerkisch@web.de>
1649
1650         * config/makefile.cyg config/makefile.mgw config/makefile.unx
1651         cygwin/Makefile mingw/Makefile: Remove dependencies on
1652         wgnuplot.def and wgnuplib.def.
1653
1654         * src/wgnuplib.def: Removed
1655
1656 2011-04-16  Bastian Maerkisch  <bmaerkisch@web.de>
1657
1658         * config/config.amg config/makefile.msc config/term.pc.h
1659         config/makefile.win config/makefile.ztc src/win/wgnuplot.def
1660         src/win/wgnupl32.def: Remove build files for no longer supported
1661         platforms DOS16, WIN16, Amiga and compilers.
1662
1663         * src/ansicheck.h src/command.c src/eval.h src/stdfn.h
1664         src/syscfg.h src/term.c src/term.h src/makefile.all
1665         src/makefile.awc docs/Makefile.in term/fg.trm : Remove suport for
1666         the Zortech compiler and the no longer available Flash Graphics
1667         library.
1668
1669 2011-04-15  Ethan A Merritt  <merritt@u.washington.edu>
1670
1671         * src/graphics.c (plot_steps) src/gp_types.h src/graph3d.c
1672         src/tables.c docs/gnuplot.doc docs/plotstyles.gnu: 
1673         New plot style "with fillsteps" is identical to "with steps" except
1674         that the area between the stepped line and the baseline at y=0 is
1675         filled using the currently active fill style.
1676
1677         * src/graphics.c (plot_fsteps, histeps_vertical)
1678         (histeps_horizontal): Simplify the code to use clip_line() rather
1679         than lots of in-line tests.
1680
1681         * term/dumb.trm docs/gnuplot.doc: Updates
1682
1683 2011-04-15  Bastian Maerkisch  <bmaerkisch@web.de>
1684
1685         * src/readline.c (msdos_getch, readline), src/win/winmain.c
1686         (ConsoleGetch): Don't quit on DEL on an empty line. Map DEL key to del
1687         character 127 instead of ^D, but keep old behaviour of deleting current
1688         character on platforms Windows, MSDOS and OS/2. SF Bug #3285571
1689
1690 2011-04-13  Peter Hedwig <peter@affenbande.org>
1691
1692         * term/lua/gnuplot-tikz.lua:  Fix "charsize" option.
1693
1694 2011-04-13  Ethan A Merritt  <merritt@u.washington.edu>
1695
1696         * term/canvas.trm term/gd.trm term/svg.trm term/x11.trm src/misc.c:
1697         Stricter checks that the red component of RGB colors stays in range.
1698
1699 2011-04-13  Bastian Maerkisch  <bmaerkisch@web.de>
1700
1701         * src/win/wgraph.c (WndGraphProc), src/win/wtext.c (WndTextProc):
1702         Enable access to popup menu via status bar and keyboard.
1703
1704 2011-04-12  Bastian Maerkisch  <bmaerkisch@web.de>
1705
1706         * src/win/wtext.c (WndParentProc) [WM_SIZE]: Ignore requests to set
1707         window size to 0,0. Fixes crash on Vista if Windows-D is pressed.
1708
1709 2011-04-11  Ethan A Merritt  <merritt@u.washington.edu>
1710
1711         * term/js/gnuplot_common.js: Fix the clipping of filled rectangles
1712         when zoomed.
1713
1714 2011-04-11  Petr Mikulik  <mikulik@physics.muni.cz>
1715
1716         * src/config/mingw/Makefile: Fixed relative directories in RCFLAGS.
1717
1718 2011-04-10  Bastian Maerkisch  <bmaerkisch@web.de>
1719
1720         * src/term/win.trm, src/win/wgraph.c, src/win/wgnuplib.h: Renew text
1721         handling: Process enhanced text in drawgraph(), new functions
1722         GraphEnhancedOpen(), GraphEnhancedFlush(), revised GraphGetTextLength().
1723         This most notably fixes behaviour when resizing the graph window. Collect
1724         static variables used for the internal state of enhanced text processing
1725         into a struct. Move code out of main loop of drawgraph: New functions
1726         draw_put_text(), draw_text_justify(), draw_enhanced_text(). Fix baseline
1727         alignment of normal and enhanced text. Text position was moving in wrong
1728         direction for rotated enhanced text (fix replaces change dated
1729         2011-02-11). Remove unused function GraphGetFontScaling(). Fix text
1730         positioning of enhanced text with oversampling.
1731
1732         * term/win.trm (WIN_graphics): Update character and window size.
1733         * src/win/wgraph.c (WndGraphProc): Remove another Win16 relict.
1734         * term/win.trm, src/win/wgnuplib.h, src/win/wgraph.c: Remove LPGW.resized,
1735         rename commands no longer exclusively used for pm3d.
1736         * src/win/wgraph.c (UnicodeText): Add codepage 1250.
1737         * term/win.trm (WIN_Init), src/win/wgraph.c (GraphInit): Move loading of
1738         icon.
1739         * term/win.trm (WIN_scale): Removed.
1740         * term/win.trm (WIN_options), src/win/winmain.c (WinMain): Eliminate need
1741         for static variable WIN_gtitle.
1742         * term/win.trm (WIN_set_pointsize), src/win/wgraph.c (drawgraph)
1743         [W_pointsize]: Don't pass size as string.
1744         * src/win/wgraph.c (drawgraph) [W_line_type]: Only init LOGBRUSH lb
1745         if it is used.
1746         * term/win.trm, src/win/wgraph.c: Various small code cleanups.
1747
1748 2011-04-09  Ethan A Merritt  <merritt@u.washington.edu>
1749
1750         * term/svg.trm term/js/gnuplot_svg.js:  Draw all grid lines with
1751         attribute class="gridline". Add an icon to toggle on/off lines with this
1752         attribute.  Move both this icon and the mouse coordinate tracking box to
1753         the end of the output *.svg file so that they cannot be occluded by plot
1754         elements.
1755
1756         * term/svg.trm (SVG_PathClose): Firefox 3.x fails to render purely
1757         vertical lines. This is particularly noticeable because all vertical
1758         grid lines are missing.  Work around this by adding 0.01 to the final
1759         x coordinate.
1760
1761 2011-04-08  Ethan A Merritt  <merritt@u.washington.edu>
1762
1763         * term/svg.trm: Adjust enhanced text placement, removing some kludges
1764         that appear not to be necessary with the current generation of browsers.
1765
1766         * term/svg.trm term/js/gnuplot_svg.js:  Implement mouse tracking
1767         framework. 
1768
1769 2011-04-07  Ethan A Merritt  <merritt@u.washington.edu>
1770
1771         * src/term.h term/svg.trm demo/html/webify_svg.pl demo/html/Makefile.svg
1772         demo/html/Makefile.svg:  Add bitmap image handling to the svg terminal
1773         using the same mechanism of external png files used by the canvas and 
1774         tikz terminals.
1775
1776         * term/svg.trm(SVG_init): Konqueror (KDE 4.5) crashes if the xlink to
1777         gnuplot_svg.js fails to load.  Work around this by adding a test for the
1778         presence of gnuplot_svg before initializing.
1779
1780 2011-04-06  Bastian Maerkisch  <bmaerkisch@web.de>
1781
1782         * term/win.trm, src/win/wgnuplib.h, src/win/wgraph.c: Use UINTs
1783         instead of DWORDs in struct GWOP.
1784
1785         * src/win/wgraph.c, src/win/wgnuplib.h: Move static flag for
1786         unsupported encodings to struct LPGW. This ensures that errors
1787         are reported only once.
1788
1789 2011-04-06  Ethan A Merritt  <merritt@u.washington.edu>
1790
1791         * src/graph3d.c src/graphics.c src/term_api.h:  Add layering flags
1792         for BEGIN/END KEYSAMPLE.
1793
1794         * term/js/gnuplot_svg.js term/svg.trm: Elementary mousing support for
1795         the svg terminal based on Patches #2477391 #2478169 (yeah, those are
1796         from 2 years ago).  Toggle plot on/off in response to mouse click on
1797         the corresponding key entry.
1798
1799         * demo/html/Makefile.svg demo/html/index.svg demo/html/webify_svg.pl:
1800         Revise the svg demo set to use mousing.
1801
1802         * src/graphics.c (do_plot) src/term_api.h (TERM_LAYER_RESET_PLOTNO)
1803         term/svg.trm term/canvas.trm: The "set key opaque" option was causing
1804         mismatched begin/end plot pairs in output from the svg and canvas
1805         terminals (begin/begin/end).  Revise this so that the plot and the key
1806         sample numbering is out of sync.
1807
1808 2011-04-05  Ethan A Merritt  <merritt@u.washington.edu>
1809
1810         * src/color.c (ifilled_quadrangle): See note in the code.  For some
1811         reason this fixes rendering of pm3d surfaces in the svg terminal.
1812
1813 2011-04-04  Ethan A Merritt  <merritt@u.washington.edu>
1814
1815         * term/canvas.trm demo/html/mousebox.template term/js/gnuplot_mouse.js:
1816         Incorporate the plot name (from 'set term canvas name "foo") into the
1817         flag used by the toggleVisibility() routine so that plots in other
1818         canvas elements on the same page are not affected.
1819
1820 2011-04-03  Ethan A Merritt  <merritt@u.washington.edu>
1821
1822         * src/term.c src/term.h term/Makefile.am.in term/lua.trm
1823         term/write_png_image.c:  Move the routine write_png_image() out of
1824         lua.trm so that it can be shared by other terminal drivers.
1825         It requires support from either libgd or cairo, and provides bitmapped
1826         image support to the lua terminals and (in prospect) to the HTML5
1827         canvas terminal.
1828
1829         * src/save.c: Echo most recent range of autoscaled axes on "show" but
1830         not "save".  This simplifies the output of gpsavediff in most cases.
1831
1832         * gnuplot-cvs/term/js/gnuplot_mouse.js term/js/gnuplot_common.js
1833         gnuplot-cvs/term/canvas.trm (CANVAS_image):
1834         Implement support for image handling in the canvas terminal using the
1835         HTML5 canvas primitive drawImage().  Image data is written to a png file
1836         in parallel to generation of the main plot.  The png image can then be
1837         loaded from the javascript handler for the plot it belongs to.
1838
1839         * demo/html/Makefile demo/html/Makefile.canvas demo/html/index.canvas
1840         demo/html/mousebox.template: Update the demo collection to show the new
1841         image handling.
1842
1843
1844 2011-04-01  Ethan A Merritt  <merritt@u.washington.edu>
1845
1846         * term/canvas.trm demo/html/webify_canvas.pl:
1847         Add HTML5-conformant doctype and meta-information to output html.
1848
1849         * src/graph3d.c:
1850         Wrap pm3d surfaces and hidden3d ensembles in BEFORE_PLOT/AFTER_PLOT
1851         flags via term->layer(). This allows them to be toggled on/off like
1852         other plots in HTML canvas output.
1853
1854         * src/term.c(null_layer) src/graphics.c src/graph3d.c:
1855         Provide a null_layer() routine for all terminals that do not provide
1856         term->layer().  This allows us to remove explicit checks for support by
1857         the current terminal.
1858
1859 2011-03-30  Ethan A Merritt  <merritt@u.washington.edu>
1860
1861         * demo/html/index.canvas demo/html/Makefile.canvas 
1862         demo/html/mousebox.template demo/html/webify_canvas.pl:
1863         Separate make targets for 2D and 3D plots. Add buttons for toggling
1864         individual plots. Default to mousing enabled for all demo plots.
1865
1866         * term/canvas.trm:
1867         Wrap each component plot in a test for (gnuplot.hide_plot_N).
1868         Add plot-toggling buttons to the standalone mousebox.
1869         Report gnuplot version in each plot generated.
1870
1871         * term/gnuplot_common.js term/gnuplot_mouse.css term/js/canvas_help.html
1872         term/gnuplot_mouse.js (popup_help(URL) toggle_plot(N)):
1873         Add version number to shared javascript code modules.
1874         Add support for linking help button to plot-specific URL.
1875         Add support for toggling individual component plots on/off.
1876
1877 2011-03-30  Bastian Maerkisch  <bmaerkisch@web.de>
1878
1879         * term/gd.trm: Don't try to reuse names of gd font pointers for
1880         local variables. Fixes build with MinGW and DLL version of libgd.
1881
1882         * config/mingw/Makefile: Optionally, use pre-built DLL version
1883         of libgd. Use environment variable PROGRAMFILES to access help
1884         compilers.
1885
1886 2011-03-29  Bastian Maerkisch  <bmaerkisch@web.de>
1887
1888         * src/win/wgnuplib.rc, src/win/wgnuplot.rc, src/win/wresourc.h:
1889         Use standard dialog font. Remove obsolete DS_3DLOOK.
1890
1891         * src/win/winmain.c (WinMain): Sync About Dialog box with
1892         output of "show version".
1893
1894         * src/win/wmenu.c (SendMacro), src/win/wgnuplot.mnu: Add
1895         About dialog to Help menu.
1896
1897         * src/win/wmenu.c (SendMacro), src/win/wgnuplot.mnu: Add
1898         Options menu to toolbar.
1899
1900 2011-03-28  Ethan A Merritt  <merritt@u.washington.edu>
1901
1902         * src/plot2d.c (get_data):  Fix array bounds underflow if every
1903         point in a data file is invalid.
1904         Bug #3254653
1905
1906 2011-03-28  Bastian Maerkisch  <bmaerkisch@web.de>
1907
1908         * src/win/wtext.c: Always update complete lines of text instead
1909         of drawing single characters, since character boxes might
1910         overlap when using ClearType.
1911
1912         * docs/README: Document recent changes to Windows help.
1913
1914         * src/win/wgnuplib.h, src/win/wcommonh.h, src/win/wtext.c:
1915         Continue to make more stuff module-local.
1916
1917         * src/win/wgnuplib.h, src/win/wmenu.c: Move definition of
1918         SHELL_DIR_DIALOG.
1919
1920         * config/config.nt: Sync with config.h created by autoconf.
1921
1922 2011-03-26  Shigeharu Takeno  <shige@iee.niit.ac.jp>
1923
1924         * term/gd.trm (PNG_put_text ENHGD_FLUSH gd_iconv):  Invoke the
1925         SJIS/UTF8 conversion for both enhanced and non-enhanced text.
1926         EAM - and collapse the shared code into a subroutine.
1927
1928 2011-03-26  Bastian Maerkisch  <bmaerkisch@web.de>
1929
1930         * config/mingw/Makefile: Add missing paths to wxt/cairo/pango
1931         files. Update build instructions.  WX_LOCATION is no longer
1932         required since gnuplot has its own manifest file now and the one
1933         supplied by wxWidgets is no longer included. htmlhelp.lib is
1934         included in LDLIBS not TERMFLAGS. Replace '=' by ':=' for shell
1935         commands. Filter out drive specifications "c:" in results from
1936         pkg-config which would confuse make.
1937
1938 2011-03-25  Ethan A Merritt  <merritt@u.washington.edu>
1939
1940         * src/pm3d.c docs/gnuplot.doc:  Allow pm3d plots to use the fourth
1941         column of data as "rgb variable" rather than "palette z".
1942
1943 2011-03-25  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
1944
1945         * src/win/wtext.c: Make more stuff module-local.  Resolve several
1946         signedness conflicts introduced by functions in new screenbuf.c
1947         module.
1948
1949 2011-03-25  Bastian Maerkisch  <bmaerkisch@web.de>
1950
1951         * src/plot.c (main), src/win/winmain.c (WinMain, WinExit),
1952         src/win/wcommon.h: The code which changes the codepages for
1953         console gnuplot is only compiled in if CONSOLE_SWITCH_CP is
1954         defined.  Otherwise gnuplot will only display a warning if
1955         codepages differ.  Handle the case when codepages already match.
1956
1957 2011-03-24  Ethan A Merritt  <merritt@u.washington.edu>
1958
1959         * src/Makefile.maint: Fill in the "last modified" date from the most
1960         recent entry in the ChangeLog rather than the using the current date,
1961         and only then if the VERSION or PATCHLEVEL has been changed.
1962         Caution: tested only under linux with gnu make.
1963
1964 2011-03-22  Bastian Maerkisch  <bmaerkisch@web.de>
1965
1966         * src/graphics.c (do_plot, plot_points): Test wether the terminal
1967         actually supports set_color. Fixes crashes with terminal dumb.
1968
1969 2011-03-21  Bastian Maerkisch  <bmaerkisch@web.de>
1970
1971         * src/win/wgraph.c (WIN_image): Fix regression: rotation of images
1972         with reversed axis was not working since rev. 1.92.
1973
1974 2011-03-20  Ethan A Merritt  <merritt@u.washington.edu>
1975
1976         * src/util.c (equals): Test here for token index in range, rather than
1977         trusting all callers to get it right.
1978
1979         * src/command.c src/parse.c: Token index range test is now redundant.
1980
1981         * docs/gnuplot.doc: Document that ^D from an empty line acts as EOF.
1982
1983 2011-03-20  Bastian Maerkisch  <bmaerkisch@web.de>
1984
1985         * src/win/wgnuplib.c|h, src/win/wgraph.c, src/win/winmain.c,
1986         src/win/wmenu.c, src/win/wpause.c, src/win/wtext.c: FAR pointers are
1987         no longer required.
1988
1989         * src/win/winmain.c (WinExit): Explicitly close help window on exit.
1990         Fixes hangs of gnuplot when it is closed via the Windows taskbar
1991         and help window and graph window open.
1992
1993         * src/win/wmenu.c (LoadMacros), src/win/wgnuplot.mnu ([Button]): Add
1994         icons to the text-window toolbar.
1995
1996         * docs/windows/doc2html.c (process_line): Don't include '=' items in
1997         index. This avoids duplicate entries which caused wgnuplot to stall 
1998         when an e.g. 'set term png; help "png"' was issued.
1999
2000 2011-03-18  Bastian Maerkisch  <bmaerkisch@web.de>
2001
2002         * src/win/wtext.c (TextCopyClip): Fix copying of last line of a
2003         marked region in case the marking exceeds the length of that
2004         line.
2005
2006         * src/win/wgnuplib.rc, src/win/resourc.h: Remove dialog resource
2007         which was only used on Win16.
2008
2009         * term/gd.trm (PNG_init): On Windows, set GDFONTPATH to %windir%\Fonts
2010         if not set previously.
2011
2012         * src/plot.c (main), src/win/winmain.c (WinMain, WinExt): Always use
2013         the ANSI codepage (instead of OEM) to ensure sure that the console
2014         of gnuplot.exe and the graph window use the same codepage. Warn
2015         users that raster fonts won't display all characters correctly and
2016         restore the codepage on exit.
2017
2018 2011-03-17  Ethan A Merritt  <merritt@u.washington.edu>
2019
2020         * axis.c(gen_tics): Make sure the axis tic label format string is
2021         long enough to hold enhanced text markup.  Fixes buffer overflow.
2022
2023 2011-03-16  Bastian Maerkisch  <bmaerkisch@web.de>
2024
2025         * src/win/wgraph.c (UnicodeText): new function to convert a string
2026         to UTF-16
2027
2028         * src/win/wgraph.c (drawgraph, GraphGetTextLength) NEWS: support
2029         "set encoding" for all currently defined encodings
2030
2031         * src/win/wtext.c (ReadTextIni): select default font according to
2032         the Windows version. Avoid font "Terminal" since it might not
2033         contain all glyphs of the current character set.
2034
2035         * src/win/wgnuplib.h, src/win/wgraph.c, term/win.trm: use child
2036         window for status bar, allow right button mouse click on status
2037         bar to activate the `graph-menu` popup. Change name of
2038         GW.statuslineheight for consistency with TW.
2039
2040 2011-03-15  Ethan A Merritt  <merritt@u.washington.edu>
2041
2042         * axis.c(copy_or_invent_formatstring): If the default tic format has
2043         insufficient precision to distinguish the two extremes of the axis
2044         range, increase the precision.
2045
2046 2011-03-14  Ethan A Merritt  <merritt@u.washington.edu>
2047
2048         * src/graphics.c: Auto-placement of the left margin of the plot
2049         was failing to allow room for "set key outside left".
2050
2051         * term/post.trm: Add a %%Page statement in *.eps files, as current
2052         versions of standard tools seem to expect it.
2053         Bug #3046700
2054
2055 2011-03-13  Bastian Maerkisch  <bmaerkisch@web.de>
2056
2057         * src/win/wgnuplot.rc, src/win/wgnuplot.exe.manifest: add new
2058         manifest for wgnuplot to enable visual styles
2059
2060         * src/win/wmenu.c, src/win/wtext.c: remove unused variables to
2061         make compiler happy, avoid C++ style comments
2062
2063         * src/win/wtext.c (TextInit), src/win/wmenu.c, src/win/wgnuplib.h,
2064         src/win/wresourc.h: add a statusbar to the text window,
2065         reduce size of text area accordingly
2066
2067         * src/win/wtext.c (WndParentProc): [WM_GETMINMAXINFO] use active
2068         font to calculate minimum window size; take menu, toolbar and
2069         statusbar into account
2070
2071 2011-03-13  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2072
2073         * config/cygwin/Makefile (LDLIBS): Add newly needed library.
2074
2075 2011-03-13  Bastian Maerkisch  <bmaerkisch@web.de>
2076
2077         * config/config.nt, src/alloc.c, src/alloc.h, src/command.c,
2078         src/eval.c, src/fit.c, src/gpexecute.c, src/plot.c, src/syscfg.h,
2079         src/win/wcommon.h, src/win/wgnuplib.c, src/win/wgnuplib.h,
2080         src/win/wgnuplot.mnu, src/win/wgnuplot.rc, src/win/wgraph.c,
2081         src/win/winmain.c, src/win/wmenu.c, src/win/wpause.c,
2082         src/win/wprinter.c, src/win/wtext.c, term/win.trm:
2083         Remove Win16 support.
2084
2085         * src/win/winmain.c (WinMain): init common controls
2086         * config/mingw/Makefile, config/magefile.mgw, config/makefile.nt,
2087         conig/watcom/Makefile: add library comctl32
2088
2089         * src/win/wmwenu.c (LoadMacros, CloseMacros, MenuBottonProc): use
2090         common controls toolbar, remove MenuBottonProc
2091         * src/win/wgnuplib.h (MW): add handle for toolbar, remove pointer
2092         to MenuBottonProc
2093         * src/win/wresourc.h: add ID for toolbar
2094         * src/win/wtext.c (WndParentProc): [WM_SIZE] forward msg to toolbar,
2095         [WM_PAINT] remove completely
2096
2097         * src/win/wingraph.c (UpdateStatusLine, DisplaySatusLine): use common
2098         controls
2099
2100         * src/win/winmenu.c (IShellFolder_BindToObject),
2101         (IShellFolder_GetDisplayNameOf): protect definition by #ifdef,
2102         (SendMacro) use newer variant of directory dialog
2103
2104 2011-03-11  Bastian Maerkisch  <bmaerkisch@web.de>
2105
2106         * src/makefile.nt: implement suggestions by Shigeharu Takeno:
2107         Do not use "+=" to be compatible with Visual C++ 2005; add/update
2108         links wo libgd and wxWidgets; add a scheme to easily select options
2109         [GDLIB, PDFLIB, WXT]; use linker option files for compilation of
2110         wgnuplot.exe and gnuplot.exe
2111
2112 2011-03-11  Ethan A Merritt  <merritt@u.washington.edu>
2113
2114         * configure.in: Check for iconv library and iconv.h, since gd uses iconv
2115         to convert between UTF-8 and SJIS encodings if it is available.
2116
2117         * term/svg.trm: Demarcate plot elements using the svg <title> and
2118         <g id=foo> elements rather than <a xlink:foo>
2119         Bug #3205257
2120
2121         * src/misc.c src/wxterminal/gp_cairo.c src/wxterminal/gp_cairo.h
2122         src/wxterminal/wxt_gui.cpp src/wxterminal/wxt_term.h term/cairo.trm
2123         term/canvas.trm term/cgm.trm term/emf.trm term/gd.trm term/svg.trm
2124         term/wxt.trm term/x11.trm:
2125         Add option to specify a background color in "set term".
2126         NB: Not yet implemented for terminals:  win post qt pm
2127
2128 2011-03-11  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2129
2130         * term/gd.trm: libgd can be customized for Japanese use such that
2131         it prefers SJIS encoding rather than UTF-8 encoding.  Add code to
2132         check which encoding the local libgd prefers, and convert strings
2133         to that encoding if necessary.
2134
2135 2011-03-10  Bastian Maerkisch  <bmaerkisch@web.de>
2136
2137         * src/command.c (test_palette): tmpfile() always fails on a modern
2138         Windows. Open a file in the user's temp directory instead.
2139
2140         * src/win/winmain.c (WinExit): add missing void parameter
2141
2142         * src/win/wgraph.c (drawgraph): add missing init
2143
2144 2011-03-09  Bastian Maerkisch  <bmaerkisch@web.de>
2145
2146         * config/makefile.nt: add chm help (update of SF patch 3191892 by
2147         Shigeharu Takeno), (HCWPATH, HHWPATH) use PROGRAMFILES variable
2148         instead of hard coded path
2149
2150 2011-03-08  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2151
2152         * config/cygwin/Makefile (WINOBJS): Add new object file screenbuf.
2153         (screenbuf.$(O)): Rule for new object file.
2154
2155 2011-03-08  Bastian Maerkisch  <bmaerkisch@web.de>
2156
2157         * config/makefile.nt: fix copy/paste errors
2158
2159 2011-03-07  Bastian Maerkisch  <bmaerkisch@web.de>
2160
2161         revised implementation of Windows text window, SF patch 1973569,
2162         Feature Request 992352
2163         * src/win/screenbuf.c|h: new files, implement dynamic buffer to
2164         hold screen contents
2165         * src/win/wtext.c: use data structures and methods from
2166         screenbuf.c|h; optionally wrap long lines which don't fit on
2167         screen [TextWrap]; add menu item to toggle this setting; save/load
2168         size of text buffer to/from wgnuplot.ini [TextLines]; avoid
2169         erasing the window area to avoid flicker during window resize;
2170         coloured output is not yet implemented.
2171         * src/win/wgnuplib.h: change definition of struct TW accordingly
2172         * src/win/wresourc.h: new menu item "Wrap long lines"
2173         * term/win.trm: update help texts on `text-menu` and `wgnuplot.ini`
2174         * config/makefile.nt, config/makefile.mgw, config/mingw/Makefile:
2175         include screenbuf.c|h in build process
2176
2177 2011-03-07  Bastian Maerkisch  <bmaerkisch@web.de>
2178
2179         * docs/Makefile.in: add new target 'htb' to create help file
2180         compatible with wxWidgets help viewer
2181
2182         * docs/windows/doc2html.c (main): change command line options,
2183         (convert, header, footer) optionally split html files manually
2184         [SPLIT_FILES] (Note: this will produce ~500 files!), optionally
2185         create index file manually [CREATE_INDEX], always use hard-coded
2186         links as none of the open source viewers seem to support k-links
2187
2188         * config/makefile.mgw, config/watcom/Makefile, config/mingw/Makefile:
2189         change command line accordingly
2190
2191 2011-03-06  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2192
2193         * config/watcom/.cvsignore: Set up list of files to be ignored.
2194
2195         * config/watcom/Makefile (clean): Remove GIF help files.
2196
2197         * config/watcom/Makefile (wgnuplot_pipes.exe, gnuplot.exe): Add
2198         missing library msimg32.
2199
2200 2011-03-05  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2201
2202         * config/makefile.nt (OPTIONS, LDFLAGS, TERMFLAGS): Grouped for
2203         easier disabling of optional terminals (gd, pdf, wx).
2204         (gnuplot.exe): Change name of console gnuplot to the common one.
2205         Drop wgnuplot_pipes.exe in the process.
2206         (pgnuplot.exe): Re-use this name for the original program that had it.
2207         (HCWPATH): New.  Help compiler need not be on PATH.
2208         ($(HELPFILE)): USE $(HCWPATH).
2209         (CC): Remove /c option.  Put that into calls that only compile,
2210         instead.  Allows to use $(CC) instead of verbatim "cl" in more
2211         places.
2212         (LDFLAGS): Remove /subsystem option.  Put it into calls instead,
2213         because it's different for different builds.
2214         (CBASEFLAGS): Adapted to current version of MSVC.
2215         (O): Missing macro needed for makefile.all.
2216         (linkopt1.msw, gnuplot.exe): Add recently needed library msimg32.
2217
2218 2011-03-03  Peter Hedwig <peter@affenbande.org>
2219
2220         * term/lua.trm:  If the cairo terminal is not available to make a
2221         bitmap image, use libgd instead.
2222
2223 2011-02-28  Ethan A Merritt  <merritt@u.washington.edu>
2224
2225         * docs/gnuplot.doc docs/plotstyles.gnu:  Add a polar-mode example
2226         to the set of plotting style figures (even though it is not really
2227         a "plot style").
2228
2229 2011-02-28  Bastian Maerkisch  <bmaerkisch@web.de>
2230
2231         * docs/xref.c (refs): Only emit start and stop strings if we
2232         write any items at all.
2233
2234         Request by Mojca Miklavec
2235         * docs/windows/doc2html.c: Include list of subtopics. Optionally
2236         use hard links instead of index lookup (HTML_HARDLINKS).
2237
2238         Feature Request #874572
2239         * term/win.trm src/win/wgraph.c src/win/wgnuplib.h
2240         src/win/wresourc.h: Add double buffering to the windows terminal
2241         to avoid flicker on redraw. Add a poor man's version of antialiasing:
2242         draw on a bitmap twice the size of the window on screen, then
2243         scale down using halftone mode. Both settings are optional and can
2244         be changed via the `graph-menu` and `wgnuplot.ini`.
2245
2246 2011-02-26  Ethan A Merritt  <merritt@u.washington.edu>
2247
2248         * term/Makefile.am.in: Don't try to install TeX files for lua
2249         if we didn't build lua support.
2250
2251 2011-02-26  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2252
2253         * config/mingw/Makefile, config/cygwin/Makefile: New files.  Work
2254         like config/makefile.cyg and config/makefile.mgw, respectively,
2255         but without spilling files into the source tree.
2256
2257         * config/makefile.oww: Dropped.  Superseded by
2258         config/watcom/Makefile.
2259
2260 2011-02-26  Bastian Maerkisch  <bmaerkisch@web.de>
2261
2262         * src/win/wgraph.c (drawgraph): handle the case of transparent
2263         fill with color from linetype: save color to variable last_color
2264         on all changes and create solid brushes when required
2265
2266 2011-02-25  Bastian Maerkisch  <bmaerkisch@web.de>
2267
2268         * term/win.trm (WIN_image, WIN_filled_polygon) src/win/wgraph.c
2269         (drawgraph: W_boxfill, W_pm3d_setcolor, W_pm3d_filled_polygon)
2270         (W_image): support transparency and alpha channel for boxes,
2271         images and polygons. Use memory bitmaps to draw and then use
2272         AlphaBlend() and TransparentBlt() to copy to the screen. Fix
2273         clipping of images.
2274
2275         * config/makefile.mgw(LDLIBS): additional GDI library file
2276
2277         * docs/gnuplot.doc: update `set style fill transparent`
2278
2279         * term/win.trm: update and reformat windows help text
2280
2281 2011-02-24  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2282
2283         * docs/gnuplot-ja.doc:  sync to docs version 1.651
2284
2285 2011-02-24  Peter Hedwig <peter@affenbande.org>
2286
2287         * term/lua/gnuplot-tikz.lua term/lua.trm:  Make full bitmap
2288         support conditional on HAVE_CAIROPDF.  Necessary in order to
2289         build lua without the cairo terminals.
2290
2291 2011-02-24  Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
2292
2293         * share/LaTeX/Makefile.am (${lua_files}): Missing $(top_srcdir)
2294         broke out-of-source-tree build.
2295
2296 2011-02-23  Ethan A Merritt  <merritt@u.washington.edu>
2297
2298         * term/lua/gnuplot-tikz.lua term/lua/gnuplot-tikz.help:
2299         Fix redundant definitions that broke TeX-based documentation.
2300
2301         * term/Makefile.am.in: Regenerate term/lua/gnuplot-tikz.help
2302
2303 2011-02-23  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2304
2305         * docs/gnuplot.doc: correct typos; revive some "html" anchors
2306
2307 2011-02-23  Bastian Maerkisch  <bmaerkisch@web.de>
2308
2309         * docs/gnuplot.doc: add link from `rand` to `random` and use
2310         proper table format in random section
2311
2312         * term/lua/gnuplot-tikz.help term/lua/gnuplot-tikz.lua: balance
2313         backquotes in gnuplot help.
2314
2315         * src/win/wgraph.c: reorder entries of the graph popup menu
2316
2317         * src/win/winmain.c(IsWindowsXPorLater) src/win/wcommon.h: add a
2318         function to detect if gnuplot is running on Win XP or later.
2319
2320         * src/win/wtext.c(TextMakeFont) src/win/wgraph.c(Makefonts):
2321         select ClearType or Proof quality depending on OS version to
2322         improve rendering quality
2323
2324 2011-02-21  Peter Hedwig <peter@affenbande.org>
2325
2326         * term/lua/gnuplot-tikz.help term/lua/gnuplot-tikz.lua
2327         term/lua/NEWS term/lua/README term/lua/TODO term/lua.trm:
2328         Re-work the lua terminal to support ConTeXt and plain TeX in addition
2329         to TikZ.  Requires TikZ >= 2.0
2330
2331         * share/LaTeX/Makefile.am: Regenerate the lua terminal *.tex and *.sty
2332         files from the Makefile rather than keeping them in cvs.
2333
2334 2011-02-21  Bastian Maerkisch  <bmaerkisch@web.de>
2335
2336         Windows HTML help, SF patch set #3186000.
2337         * docs/gnuplot.doc: changes for windows html help: update
2338         titlepage, comment out old html anchor definitions and links, and
2339         add html replacements for tables
2340
2341         * docs/plotstyles.gnu: new variable winhelp used to switch between
2342         PDF output for "make pdffigures" and PNG output for windows html
2343         help
2344         * docs/windows/doc2html.c: New help file format converter derived
2345         from docs/doc2rtf.c and docs/doc2html.c (Attic)
2346
2347         * docs/windows/wgnuplot.hhp: New file. HTML help project file.
2348
2349         * docs/windows/wgnuplot.hhk: New file. HTML help stub index file.
2350
2351         * docs/windows/wgnuplot.stp: New file. HTML help negative list for
2352         search index generation. Caution: maximum size 512 bytes.
2353
2354         * src/command.c (help_command): issue error message if helpfile
2355         could not be opened, fix table of contents command ("help")
2356
2357         * src/win/winmain.c (WinExit) [WITH_HTML_HELP]: no need to close
2358           help window
2359
2360         * config/makefile.mgw: Optionally modify settings to build and use
2361         HTML help [HTML_HELP].
2362
2363         SF patch set #3186010.
2364         * history.c (write_history_list history_find history_find_all):
2365         use ANSI C definitions
2366
2367         * command.c (history_command): mention editline in message for
2368         missing history support
2369
2370         * readline.c(getc_wrapper): generalize code used for editline
2371
2372 2011-02-20  Ethan A Merritt  <merritt@u.washington.edu>
2373
2374         * configure.in: Revised configuration tests for lua support.
2375
2376         Variable arrowstyle for vector plots.
2377         * src/gadgets.c src/gadgets.h src/set.c src/term_api.h:
2378           Add tag field to arrow_style_type
2379         * src/misc.c (arrow_parse) src/misc.h (arrow_use_properties):
2380           Parse "arrowstyle variable", export a routine to apply it.
2381         * src/plot2d.c (get_data): Allow 5 column "with vectors" style.
2382         * src/graphics.c (plot_vectors) src/graph3d.c (plot3d_vectors):
2383           Check for arrowstyle variable, apply to each vector if needed
2384         * demo/arrowstyle.dem: Modify last plot to show arrowstyle from column
2385
2386 2011-02-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2387
2388         * config/config.oww [WITH_HTML_HELP]: Change helpfile name.
2389
2390         * src/command.c [WITH_HTML_HELP]: Include <htmlhelp.h>.
2391         (help_command) [WITH_HTML_HELP]: Use HTML help instead of classic
2392         WinHelp32 helpfile system.
2393
2394         * config/watcom/Makefile (HELP_EXT, HHC_DIR, HHC, WD, HHP_PROJ)
2395         (HHP_CONTENT, HHP_INPUT, HHP_OUTPUT): New variables.
2396         (HELPFILE, CPPFLAGS, LDLIBS) [HELP_EXT==chm]: Optionally modify
2397         settings to build and use HTML help.
2398         (wgnuplot.chm, $(HHP_OUTPUT), $(HHP_INPUT) $(HHP_CONTENT))
2399         (doc2html.exe) [HELP_EXT==chm]: New targets.
2400         (clean, realclean): Delete files generated for HTML help.
2401
2402         * term/win.trm (WIN_enhanced_flush): Replace C99-ism by simpler cast.
2403
2404 2011-02-20  Bastian Maerkisch  <bmaerkisch@web.de>
2405
2406         * src/win/text.c(DragFunc): Support drag and drop of directories
2407         onto the windows terminal emulator.
2408
2409         * plot.c(main): init rl_library_name before first call to
2410         editline, otherwise .editrc does not work
2411
2412 2011-02-17  Ethan A Merritt  <merritt@u.washington.edu>
2413
2414         * src/internal.c (f_calln): Limit recursion depth for multi-variable
2415         functions in the same manner as for single-variable functions.
2416         Bug #3184671
2417
2418         * docs/gnuplot.texi: This file is generated from gnuplot.doc. The copy
2419         in cvs is perennially out of date, so remove it. "make gnuplot.texi" to
2420         regenerate it when needed.
2421
2422 2011-02-12  Ethan A Merritt  <merritt@u.washington.edu>
2423
2424         * term/cairo.trm: Add missing TERM_ALPHA_CHANNEL flag for pdfcairo
2425
2426 2011-02-11  Benjamin Lindner  <lindnerb@users.sourceforge.net>
2427
2428         * term/win.trm(WIN_enhanced_flush) src/win/wgraph.c(GraphGetTextLength):
2429         Adjust position of enhanced text to account for terminal aspect ratio.
2430
2431 2011-02-10  Benjamin Lindner  <lindnerb@users.sourceforge.net>
2432
2433         * term/win.trm (WIN_set_font) src/win/wgraph.c (GraphChangeFont):
2434         Do not initialize to an empty font name.
2435         Bugfix
2436
2437 2011-02-10  Ethan A Merritt  <merritt@u.washington.edu>
2438
2439         * term/lua.trm (LUA_set_color): Initialize rgb_color for the case TC_LT.
2440         term/lua/gnuplot-tikz.lua: Work around failure to handle LT_NODRAW
2441         and LT_BACKGROUND. This prevents a freeze, but is not a complete fix.
2442
2443         * src/save.c (save_linetype): save/show variable linecolor correctly.
2444
2445         * src/misc.h src/misc.c (parse_colorname):  Split out color name
2446         interpretation into a separate routine.
2447
2448         * src/graphics.c (filter_boxplot) src/graphics.h
2449         src/plot2d.c (boxplot_range_fiddling):
2450         Sort and filter points contributing to a boxplot at the point we pick
2451         the auto-range limits rather than waiting till when we draw it.
2452         Bug #3155750
2453
2454 2011-01-26  Ethan A Merritt  <merritt@u.washington.edu>
2455
2456         * term/emf.trm (EMF_filled_polygon): Explicitly set a zero-width
2457         same-color border for filled polygons, otherwise it inherits a border
2458         line style.
2459         Bug #3165902
2460
2461 2011-01-25  Ethan A Merritt  <merritt@u.washington.edu>
2462
2463         * src/set.c (set_encoding): Check result of "set encoding locale"
2464         to see if we have just loaded an sjis (codepage 932) locale.
2465
2466 2011-01-25  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2467
2468         * src/term.c src/term_api.h term/post.trm term/svg.trm NEWS
2469         docs/gnuplot.doc:
2470         "set encoding sjis" allows characters in Shift-JIS Japanese encoding to
2471         survive enhanced text processing by the postscript and svg terminals.
2472
2473 2011-01-23  Ethan A Merritt  <merritt@u.washington.edu>
2474
2475         * src/graph3d.c (xtick_callback ytick_callback ztick_callbacke):
2476         Revert change made 2011-01-20 because it breaks hidden3d.
2477
2478         * src/util3d.c (map3d_xy_double):  Instead revise the map3d_xy() code
2479         path to share the coordinate transformation used by map3d_xyz().
2480         Bug #3157712
2481
2482 2011-01-22  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2483
2484         * src/win/wgraph.c:  Fix typo in previous definition of _WIN32_WINNT.
2485
2486 2011-01-21  Ethan A Merritt  <merritt@u.washington.edu>
2487
2488         * src/graphics.c (plot_boxplot):  Handle some corner cases
2489         (all points have the same value, fewer than 4 valid points).
2490         Bug #3162872
2491
2492 2011-01-20  Ethan A Merritt  <merritt@u.washington.edu>
2493
2494         * src/graph3d.c (xtick_callback ytick_callback ztick_callbacke):
2495         Gnuplot uses two different pathways to convert 3D coordinates in user
2496         space into 2D coordinates in the terminal coordinate space.  One of
2497         these goes via map3d_xyz() and TERMCOORD(); the other uses map3d_xy().
2498         Unfortunately it seems the two paths can differ by +/- one pixel in the
2499         final terminal coordinates.  This discrepancy is particularly
2500         noticeable in the grid and axis tic placement of 3D plots after
2501         "set view map" (Bug #3157712).
2502         This patch switches the tick_callback() routines to use the map3d_xy()
2503         pathway, which fixes the problem case described by the bug report.
2504         It would be to make both pathways share the same underlying code
2505         so that the discrepancy doesn't occur in other conditions.
2506         Bug #3157712
2507
2508 2011-01-19  Ethan A Merritt  <merritt@u.washington.edu>
2509
2510         * src/graphics.c (place_raxis): If the polar axis maximum is autoscaled,
2511         draw the raxis all the way to that maximum value.
2512         Bug #3153406
2513
2514         * term/post.trm: Replace a use-once character array by a literal string.
2515
2516 2011-01-18  Mojca Miklavec  <mojca.miklavec.lists@gmail.com>
2517
2518         * src/wxterminal/gp_cairo.c:  Cast size_t arguments to (int).
2519
2520 2011-01-17  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2521
2522         * src/win/wgraph.c:  Pass mouse wheel events through to the core
2523         mousing code so that interactive pan/zoom works from the windows
2524         terminal.
2525
2526 2011-01-16  Ethan A Merritt  <merritt@u.washington.edu>
2527
2528         * src/set.c (set_logscale set_autoscale) src/unset.c (unset_autoscale)
2529         src/axis.h docs/gnuplot.doc:  Remove macro INIT_AXIS_ARRAY.
2530         "set logscale" should not affect pseudo-axes.
2531         Bug #3159062
2532
2533 2011-01-14  Ethan A Merritt  <merritt@u.washington.edu>
2534
2535         * src/plot2d.c (eval_plots):  Minimum value of polar axis always
2536         auto-scales to 0 (already documented but implementation lacked).
2537
2538 2011-01-10  David Kuehling <dvdkhlng@gmx.de>
2539
2540         * term/linux.trm:  Makes linux.trm work with all SVGAlib video modes,
2541         not only 16 and 256-color modes.
2542
2543         * src/term.c (init_terminal):  Correct the auto-selection of terminal
2544         type vgagl or linux.  Only select vgagl if lib3dkit is present.
2545
2546 2011-01-08  Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
2547
2548         * src/internal.c (f_time): Don't use a local variable of the same
2549         name as a function you're trying to call.
2550
2551 2011-01-07  Peter Juhasz  <juhaszp@users.sourceforge.net>
2552
2553         * src/unset.c (reset_command):
2554         "reset" didn't restore default for "set raxis"
2555
2556 2011-01-03  Peter Juhasz  <juhaszp@users.sourceforge.net>
2557
2558         * src/internal.c (f_time) src/stdfn.h docs/gnuplot.doc:
2559         Fix breakage caused by the previous update
2560
2561 2011-01-02  Peter Juhasz  <juhaszp@users.sourceforge.net>
2562
2563         * src/internal.c (f_time) docs/gnuplot.doc:
2564         Modified time() so that type of result depends on type of argument
2565
2566 2011-01-01  Peter Juhasz  <juhaszp@users.sourceforge.net>
2567
2568         * src/eval.c src/internal.c src/internal.h: 
2569         New time() function to get the current system time
2570
2571         * docs/gnuplot.doc demo/timedat.dem:
2572         Documentation and demo for time()
2573
2574 2010-12-29  Daniel Sebald  <daniel.sebald@ieee.org>
2575
2576         * src/specfun.c (ranf):  Place more restrictions on seed values
2577         used by rand(seed).
2578
2579         * docs/gnuplot.doc (rand):  Updated documentation of rand()
2580         function with details about algorithm and allowable seeds.
2581
2582 2010-12-29  Ethan A Merritt  <merritt@u.washington.edu>
2583
2584         * src/specfun.c:  Make all the numerical routines f_whatever()
2585         retrieve their argument via pop_or_convert_from_string().
2586
2587         * src/specfun.c (ranf):  Disallow fractional seed values since
2588         truncation to an integer produces an invalid seed value of zero.
2589
2590 2010-12-17  Ethan A Merritt  <merritt@u.washington.edu>
2591
2592         * src/graphics.c:  Use t->set_color() rather than t->linetype() to
2593         set the fill color for pointinterval < 0 and for opaque key.
2594         Needed for windows terminal [any others?].
2595
2596 2010-12-17  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2597
2598         * term/win.trm: (WIN_point WIN_filled_polygon):
2599         Always draw point symbols using a solid line, even if the current 
2600         line type is dashed.  Unfortunately this fix is limited to monochrome
2601         mode.
2602         Bug #1952364
2603
2604         * src/win/wgraph.c (drawgraph): Selecting linetype 16 caused
2605         corruption of the color and pen assignments in mono mode.
2606
2607 2010-12-14  Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
2608
2609         * config/watcom/Makefile, config/watcom/config.h: New version of
2610         Makefiles for OpenWatcom that builds outside the src tree.
2611
2612         * config/config.oww (pclose, popen): New defines need to compile
2613         pipe-enabled version on OpenWatcom.
2614
2615         * docs/Makefile.in (pdffigures): Make indirect target depending on
2616         pdffigures.tex, to avoid unconditional rebuild.
2617         (pdffigures.tex): New, renamed copy of previous target pdffigures.
2618         (figures): Set loadpath for demos; allow this to work from
2619         out-of-source builds.
2620
2621         * docs/gnuplot.texi: Regenerated.
2622
2623         * docs/gnuplot.doc: Clean up blank-only lines.
2624
2625         * src/win/wtext.c, src/win/wprinter.c, src/win/wpause.c,
2626         src/win/wmenu.c, src/win/winmain.c, src/win/wgraph.c
2627         {HAVE_CONFIG_H}: Add "config.h" include.
2628
2629         * src/syscfg.h {MSVC}: Add missing include (was hidden in MSDOS
2630         section, which the Win32 build doesn't touch).
2631
2632         * src/makefile.awc (COREOBJS): Add missing entry for tabulate.c
2633
2634         * term/PostScript/prologues.h (): Regenerated. prologue_cp1251_ps
2635         was missing completely, among other lapses.
2636
2637 2010-12-13  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
2638
2639         * term/emf.trm:  Create special point types 70-74 to be filled polygons,
2640         just as they are for the postscript terminal.
2641
2642 2010-12-12  Ethan A Merritt  <merritt@u.washington.edu>
2643
2644         * src/graph3d.c:  Honor "set key tc <foo>" in 3D plots.  Bugfix.
2645
2646 2010-12-06  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2647
2648         * docs/term-ja.diff docs/gnuplot-ja.doc:
2649         Sync Japanese documentation to gnuplot.doc rev 1.641
2650
2651 2010-12-06  Ethan A Merritt  <merritt@u.washington.edu>
2652
2653         * src/fit.x (fit_command): Do not use axis_array[SECOND_Z_AXIS] as 
2654         temporary storage, because leaving junk in it can cause an erroneous
2655         free() operation later on.
2656         Bug #3130115
2657
2658 2010-12-04  Ethan A Merritt  <merritt@u.washington.edu>
2659
2660         * src/gadgets.c src/save.c src/set.c src/show.c src/tables.c
2661         src/tables.h src/unset.c docs/gnuplot.doc: 'set pointintervalbox'.
2662
2663 2010-12-03  Ethan A Merritt  <merritt@u.washington.edu>
2664
2665         * src/axis.c (gen_tics): Casting to a float may have been clever, but
2666         we can't afford the loss of precision (fails for time coordinates).
2667
2668         * src/pm3d.c (pm3d_depth_queue_flush): Restore deleted code needed for
2669         extended color support.  (There are still some svga users after all!)
2670
2671         * term/emf.trm: 
2672         Use the EMR_ELLIPSE primitive to draw point types 6 and 7.
2673         Make point types 4 and 5 slightly larger (looks better on MSWin).
2674         Switch to using linecap=flat and linejoin=miter by default,
2675         but add option "rounded/butt" to toggle this.
2676
2677 2010-11-29  Ethan A Merritt  <merritt@u.washington.edu>
2678
2679         * src/set.c (set_decimalsign):  Possible fix for problem with
2680         numeric locales on Windows.  Bug #3120819.
2681
2682 2010-11-28  Ethan A Merritt  <merritt@u.washington.edu>
2683
2684         * src/gadgets.c src/gadgets.h src/graphics.c demo/dashcolor.dem:
2685         Fix breakage to the pointinterval property that was caused by 
2686         opaque key support.  Add a demo plot illustrating pointinterval.
2687
2688 2010-11-26  Ethan A Merritt  <merritt@u.washington.edu>
2689
2690         * term/canvas.trm demo/html/webify_canvas.pl
2691         term/js/gnuplot_common.js term/js/gnuplot_dashedlines.js:
2692         Add support for dashed lines and rounded/butt line properties.
2693
2694 2010-11-24  Ethan A Merritt  <merritt@u.washington.edu>
2695
2696         * term/canvas.trm term/js/gnuplot_common.js term/js/gnuplot_mouse.js:
2697         Revamp the javascript support for the HTML5 canvas terminal.
2698         Move all global variables into a single object "gnuplot" declared in
2699         gnuplot_common.js.  This revision also adds polar mode mousing support.
2700
2701         * demo/html/Makefile.canvas demo/html/index.canvas 
2702         demo/html/mouseable.dem demo/html/mousebox.template 
2703         demo/html/webify_canvas.pl:
2704         Revamp the demos and build scripts to use the new javascript syntax.
2705
2706         See tracker item #3058147
2707
2708 2010-11-23  Ethan A Merritt  <merritt@u.washington.edu>
2709
2710         * term/js/gnuplot_common.js:  Rotated text should be zoom-able also.
2711
2712         * term/js/gnuplot_mouse.js:  Konqueror (webkit?) implementation of ctx
2713         does not like negative values of width or height.
2714
2715         * src/eval.c (fill_gpval_axis) term/canvas.trm:
2716         Export polar axis limits and logscale status for external mousing.
2717
2718 2010-11-20  Casey Carter   <ctcarter@users.sourceforge.net>
2719
2720         * demo/html/index.canvas demo/html/index.save demo/html/index.svg 
2721         term/canvas.trm:  syntax error in link record of standalone mode.
2722
2723 2010-11-18  Ethan A Merritt  <merritt@u.washington.edu>
2724
2725         * src/axis.c src/axis.h src/command.c src/eval.c src/graphics.c
2726         src/misc.c src/mouse.c src/plot2d.c src/save.c src/set.c src/setshow.h
2727         src/show.c src/tables.c src/tables.h src/unset.c
2728         demo/polar.dem demo/poldat.dem docs/gnuplot.doc:
2729
2730         Improved support for polar coordinate mode. 
2731         The polar axis gets syntax and properties equivalent to the x/y/z axes.
2732         - set/unset raxis (always drawn through the origin)
2733         - set rrange controls the extent of the axes and of the plot itself;
2734           the xrange and yrange are set to match, but can be changed afterward
2735         - set rtics (drawn to right of origin; optionally mirrored to the left)
2736         - set log r (does not affect scaling on x or y)
2737         - polar coordinate readout from mousing
2738         - filledcurves bounded by constant r
2739         - polar.dem (turn off rtics so the demo output remains as before)
2740           poldat.dem (add a plot showing raxis, rtics, and log scaling on r)
2741
2742         * src/set.c (set_grid): Clean up the option parsing for set grid.
2743
2744         * src/save.c: save output for "set view" could not be read in.
2745
2746 2010-11-16  Ethan A Merritt  <merritt@u.washington.edu>
2747
2748         * src/gadgets.c (clip_line):  When draw_clip_line() was made into a
2749         wrapper for clip_line() in May 2000, they differed in a single test.
2750         The version of the test from clip_line() was kept.  But this broke
2751         the case clip_line(x, ymin, x, ymax+eps), which clipped to ymin,ymin
2752         rather than to ymin,ymax. I do not know if there were any callers of
2753         clip_line() at the time that needed the variant test, but if so they no
2754         longer exist.  There is now only one other caller of clip_line().
2755         Restore the test to the version that is correct for draw_clip_line().
2756
2757         * src/graphics.c (place_grid xtick2d_callback plot_impulses)
2758         src/term.c (do_arrow): Simplify these routines to use draw_clip_line().
2759
2760 2010-11-13  Ethan A Merritt  <merritt@u.washington.edu>
2761
2762         * configure.in INSTALL src/Makefile.am src/term.c src/term.h:
2763         The copyright notice in bitmap.c is more restrictive than the gnuplot
2764         license. The new configuration option --without-bitmap-terminals
2765         omits this code from the gnuplot executable and also disables all
2766         terminals that depend on it. These are:
2767                 epson.trm hp500c.trm hpljii.trm hppj.trm pbm.trm
2768         This affects HP deskjet-era printers, but not HPGL or PCL5 printers.
2769
2770         * src/set.c:  Replace unnecessary memcpy() calls with direct assignment.
2771
2772         * docs/Makefile.in: Add gnuplot.pdf to the distributed package.
2773         Install it in the same directory as gnuplot.gih.
2774
2775 2010-11-12  Ethan A Merritt  <merritt@u.washington.edu>
2776
2777         * docs/gnuplot.doc command.c (help_command) util.h:
2778         "help" was collapsing all text to lower case, which broke "help 3D".
2779         Remove a vestigial call to lower_case().  Also make sure it is indexed.
2780
2781 2010-11-07  Ethan A Merritt  <merritt@u.washington.edu>
2782
2783         * src/axis.c src/axis.h src/set.c src/unset.c:
2784         Re-arrange the order of axes in the axis_table[] array so that all the
2785         parametric axes are at the end.  This makes it easy to iterate over only
2786         those axes that make sense for the "set/unset logscale" commands.
2787         Previously, commands like "set logscale tuv" were silently accepted,
2788         leading to strange internal state.
2789
2790         * src/plot2d.c:  Issue an error message if the user tries to plot in 
2791         polar mode with a style that is not supported.
2792         Bug #3072150
2793
2794         * src/axis.h (AXIS_INIT2D) src/set.c (set_logscale):
2795         Keep AXIS.log_base in sync with AXIS.base.
2796         Otherwise calls to AXIS_DO_LOG or AXIS_UNDO_LOG prior to the first plot
2797         command cause divide-by-zero or other math errors.
2798
2799 2010-11-07  Peter Juhasz  <juhaszp@users.sourceforge.net>
2800
2801         * src/datafile.c (df_readascii): The "labels" style did not work with 
2802         pseudocolumns (e.g. "using 1:2:0"). Now it correctly handles pseudocolumns 
2803         0, -1, -2.
2804
2805         * term/cairo.trm: Documentation fix: the section on the default size 
2806         for the pngcairo terminal was incorrect.
2807
2808 2010-11-06  Peter Juhasz  <juhaszp@users.sourceforge.net>
2809
2810         * src/plot3d.c src/plot3d.h src/set.c src/show.c src/save.c
2811         docs/gnuplot.doc demo/kdensity2d.dem: New option "kdensity2d" for 
2812         "set dgrid3d" to create two-dimensional kernel density plots.
2813
2814 2010-11-03  Shigeharu Takeno  <shige@iee.niit.ac.jp>
2815
2816         * docs/gnuplot.doc:  typos
2817         * docs/term-ja.diff docs/gnuplot-ja.doc:
2818         Sync Japanese documentation to gnuplot.doc rev 1.633
2819
2820 2010-11-02  Michael Murphy  <murphy-md@users.sourceforge.net>
2821
2822         * share/LaTeX/gnuplot-lua-tikz.sty:  Change the tikz default linetype 0
2823         axis style from dashed to dotted, and the color from black to 35% black.
2824         Tracker item #3098162
2825
2826 2010-10-31  Petr Mikulik  <mikulik@physics.muni.cz>
2827
2828         * demo/pm3dcolors.dem: Added first page with multiple palettes. Show
2829         color ranges in [0:1].
2830
2831 2010-10-28  Ethan A Merritt  <merritt@u.washington.edu>
2832
2833         * src/graphics.c (plot_boxes): Prevent out-of-range boxes from creating
2834         degenerate invisible boxes in the output file.  Can reduce file size for
2835         vector format output.
2836         Bug #3096750
2837
2838         * src/axis.c: The custom routine dbl_raise() was failing to handle NaN
2839         correctly, causing an infinite loop from e.g.   set yrange [*:NaN]
2840         Replace it with a call to the C library routine pow().
2841
2842 2010-10-26  Ethan A Merritt  <merritt@u.washington.edu>
2843
2844         * src/misc.c (parse_fillstyle):  Allow "border" as a keyword without
2845         necessarily having an immediately following linetype or color.
2846
2847         * src/plot2d.c (eval_plots):  fillcolor was not taking into account
2848         user-defined linetypes.
2849
2850         * src/plot3d.c src/misc.c:  Simplify calls to load_linetype() 
2851
2852         * lisp/gnuplot.el: Emacs 24 does not have make-local-hook
2853         contributed patch #3095458
2854
2855         * ChangeLog.2: Split off ChangeLog at the point 4.5 was tagged.
2856
2857         * docs/gnuplot.texi:  regenerate from gnuplot.doc v 1.633
2858
2859 2010-10-23  Ethan A Merritt  <merritt@u.washington.edu>
2860
2861         * configure.in: The AC_CHECK_LIB macro apparently always appends
2862         to LIBS (despite what the documentation says). We want to accummulate
2863         readline-associated libraries in TERMLIBS rather than LIBS, 
2864         so save and restore LIBS around the checks.
2865
2866 2010-10-21  Ethan A Merritt  <merritt@u.washington.edu>
2867
2868         * src/plot2d.c (boxplot_range_fiddling): trap and report an error
2869         if the x coordinate of a boxplot is undefined.
2870         Bug #3092435
2871
2872         * src/plot2d.c (get_data): Up until now this routine has returned
2873         the number of lines from which data were read, including lines
2874         containing undefined points. Change this to return the number of
2875         well-defined data points.  That way a file of junk is recognized as
2876         empty if read with either 'using 1:2' or 'using ($1):($2)'.
2877         Bug #3092435
2878
2879 2010-10-20  Graham Reed  <greed@users.sourceforge.net>
2880
2881         * configure.in src/alloc.c:  Test at configuration time whether the
2882         local implementation of malloc(0) returns 0 rather than a pointer.
2883         If so, work around it in gp_malloc().  Replaces alpha-specific fix
2884         of 2010-10-04.
2885
2886 2010-10-18  Ethan A Merritt  <merritt@u.washington.edu>
2887
2888         * src/plot2d.c (box_range_fiddling) src/graphics.c (plot_boxes):
2889         Catch a couple of corner cases of "plot ... with boxes".
2890         Bug #3075938
2891
2892 2010-10-14  Ethan A Merritt  <merritt@u.washington.edu>
2893
2894         * src/axis.c (gen_tics): A smart (or maybe that's dumb) compiler may 
2895         optimize out our tests for step size less that the machine precision.
2896         Try to forestall this by marking the steps as (float)(volatile double).
2897         Bug #3085168
2898
2899 2010-10-12  Ethan A Merritt  <merritt@u.washington.edu>
2900
2901         * src/pm3d.c: Reduce the size of the pm3d surface quadrangle structure
2902         by removing a redundant copy of the vertex coordinates. Add a pointer to
2903         track the current plot's line color.
2904         Bug #2997853
2905
2906 2010-10-11  James R. Van Zandt  <jrvz@comcast.net>
2907
2908         * src/specfun.c src/specfun.h src/eval.c docs/gnuplot.doc:  Adding
2909         support for the exponential integral E_n(x) as gnuplot function expint(n,x).
2910
2911 2010-10-10  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
2912
2913         * src/stdfn.c (not_a_number): Bit-pattern definition of NaN for MINGW
2914
2915 2010-10-09  Ethan A Merritt  <merritt@u.washington.edu>
2916
2917         * term/lua.trm (LUA_options): Null-terminate the "set term lua ..."
2918         command string at the first semicolon before passing it to lua.
2919
2920         * src/fit.c src/fit.h src/set.c docs/gnuplot.doc:
2921         New option "set fit quiet" prevents fit information sent to the log 
2922         file from being echoed also to stderr.
2923         Bug #2355210
2924
2925 2010-10-07  Ethan A Merritt  <merritt@u.washington.edu>
2926
2927         * src/gplt_x11.c: Protect against the case that the x11 colormap is not
2928         partitioned identically to the palette.
2929
2930 2010-10-06  Marco Cammarata  <marcocamma@users.sourceforge.net>
2931
2932         * docs/psdoc/ps_symbols.gpi: "set angle radian"
2933
2934 2010-10-06  Ethan A Merritt  <merritt@u.washington.edu>
2935
2936         * src/color.c src/pm3d.c src/pm3d.h set.c show.c docs/gnuplot.doc:
2937         Simplify the syntax for "set pm3d hidden3d". A linestyle is no longer
2938         required.  If no linestyle is given, the line properties are taken from
2939         the plot command line.
2940         Bug #2997853
2941
2942 2010-10-05  Ethan A Merritt  <merritt@u.washington.edu>
2943
2944         * src/getcolor.c (quantize_gray) src/getcolor.h src/gplt_x11.c:
2945         Continuation of defined palette revamp (2010-10-01). Break out the
2946         new code into a separate subroutine that can be shared with gnuplot_x11.
2947
2948         * src/color.c (draw_inside_color_smooth_box_bitmap):
2949         Assign colors to component colorbox rectangles by rounding the pixel
2950         coordinate up rather than down.  This empirically gives better results
2951         in gd.trm, and doesn't seem to hurt other terminals.
2952
2953         * term/post.trm term/pslatex.trm term/svg.trm term/PostScript/cp1251.ps
2954         src/term_api.h src/term.c docs/gnuplot.doc: Add support for codepage 1251,
2955         an alternative 8-bit Cyrillic encoding.
2956
2957 2010-10-04  Matthew Biggar  <biggarm@users.sourceforge.net>
2958
2959         * src/Makefile.am src/alloc.c:  Architecture (Alpha) specific work-
2960         around to insure that gp_malloc() does not fail on error if 0 bytes are
2961         successfully allocated.
2962
2963 2010-10-02  Ethan A Merritt  <merritt@u.washington.edu>
2964
2965         * src/stdfn.c (not_a_number): Although DJGPP version 2.04 is reported
2966         to support atod("NaN"), this version is not universal. Switch to using
2967         an explicit bit pattern for NaN.
2968
2969 2010-10-01  Ethan A Merritt  <merritt@u.washington.edu>
2970
2971         * src/plot2d.c (cp_free): Prevent use-after-free error if a plot
2972         structure containing dynamically allocated data is reused for a later
2973         plot.
2974
2975         * src/color.c (make_palette) src/getcolor.c (rgb1maxcolors_from_gray)
2976         docs/gnuplot.doc:
2977         Revamp the interaction of `set palette maxcolors` and defined palettes.
2978         Up until now, `set palette maxcolors N` meant both "allocate N colors"
2979         and "divide the color range into N equal parts".  This meant that a
2980         user-defined palette that used unequal divisions of the total range
2981         interacted badly with a limited number of palette colors.  Now we 
2982         guarantee that in the case of defined palette ranges, a gray value is
2983         never mapped to a color outside its proper range even if the ranges
2984         are very unevenly spaced.  If more color ranges are defined than the
2985         value of maxcolors, this may (or may not) result in increasing the
2986         effective value of maxcolors.  Outboard terminals that enforce maxcolors
2987         (e.g. x11) do not yet benefit from this change.
2988
2989         * configure.in src/datafile.c src/eval.c src/plot.c src/show.c
2990         term/lua.trm:  Remove conditional flag HAVE_ISNAN.
2991         Apparently we have been getting along OK with an unprotected call 
2992         to isnan() since Oct 2009.  That would seem to be good evidence 
2993         that we can remove the #ifdef protection elsewhere as well.
2994
2995 2010-09-30  Peter Juhasz  <juhaszp@users.sourceforge.net>
2996
2997         * src/plot2d.c (store_label eval_plots): Fix bug introduced by my patch
2998         of 2010-09-08 (references to uninitialized variables were found by 
2999         valgrind).
3000
3001 2010-09-29  Ethan A Merritt  <merritt@u.washington.edu>
3002
3003         * src/color.c (draw_inside_color_smooth_box_bitmap):
3004         The color box is constructed from 128 segments.  If any of these
3005         straddles a boundary within a defined palette, split it into 2 segments
3006         so that discrete color transitions are described with pixel accuracy.
3007         This does not fix imprecision in the palette itself, which can result
3008         if too few colors are allocated (set palette maxcolors).
3009
3010 2010-09-28  Petr Mikulik  <mikulik@physics.muni.cz>
3011
3012         * docs/titlepage.ipf docs/titlepage.tex: Years updated.
3013
3014 2010-09-28  Ethan A Merritt  <merritt@u.washington.edu>
3015
3016         * src/graphics.c (plot_image_or_update_axes): Add support for log-scale
3017         transformation of 2D image data.
3018
3019         * src/hidden3d.c: Disentangle variable color from the direction of 
3020         arrows.  Bug #3074212
3021
3022 2010-09-28  Volker Dobler  <vdobler@users.sourceforge.net>
3023
3024         * src/axis.c (load_one_range load_range) src/axis.h
3025         src/parse.c src/parse.h src/save.c src/set.c src/unset.c src/util.c
3026         demo/all.dem demo/autoscale.dem docs/gnuplot.doc:
3027
3028         Introduce a mechanism for constraining the axis limits chosen during
3029         autoscaling.  For example:
3030             set yrange [* : 100<*<200]
3031         constrains autoscaling on y such that the upper range limit must fall
3032         between 100 and 200.
3033
3034 2010-09-27  Peter Juhasz  <juhaszp@users.sourceforge.net>
3035
3036         * src/datafile.c (f_stringcolumn): The stringcolumn function didn't 
3037         recognize columns 0, -1, and -2. Now it treats them the same as the
3038         column function does.
3039
3040 2010-09-27  Ethan A Merritt  <merritt@u.washington.edu>
3041
3042         * src/graphics.c (apply_head_properties): Simplify the arrowhead code.
3043
3044         * src/graph3d.c src/hidden3d.c src/util3d.c src/util3d.h: Provide a
3045         3D wrapper apply_3dhead_properties() that dummies up an x-axis scale so
3046         that the 2D routine apply_head_properties() can be shared by 3D code.
3047         Bug #3074212
3048
3049         * src/term.c (do_arrow): To do proper foreshortening of 3D arrowheads
3050         would require a new approach. As an approximation, assume that any short
3051         arrow with a big arrowhead is the result of foreshortening.
3052         This affects 2D arrows also, but the visual effect is not bad.
3053
3054 2010-09-26  Ethan A Merritt  <merritt@u.washington.edu>
3055
3056         * src/command.c (replotrequest):  Once we have started to replot, the
3057         previous data no longer exists. Therefore we must set refresh_ok = 0.
3058
3059 2010-09-23  Ethan A Merritt  <merritt@u.washington.edu>
3060
3061         * src/axis.c (axis_checked_extend_empty_range):  When extending from
3062         an empty range, don't invert the axis direction by accident.
3063         Bug #3074365
3064
3065 2010-09-20  Ethan A Merritt  <merritt@u.washington.edu>
3066
3067         * src/plot2d.c (store2d_point):  Allow the use of "with circles" in
3068         polar coordinate mode.
3069
3070         * src/plot2d.c (get_data):  The combination of smoothing and variable
3071         color cannot work in general.  Disable variable color for all smoothed
3072         curves.  Later we may add back support for the case of lc palette z.
3073         Bug #3063366
3074
3075         * src/graphics.c (fill_between):  Fix filled curve clipping error.
3076         Bug #2963485
3077
3078 2010-09-19  Ethan A Merritt  <merritt@u.washington.edu>
3079
3080         * src/graphics.c (edge_intersect):  If for some reason we fail to find
3081         find the intersection points of a vector both of whose ends are out of
3082         range, issue a warning, pick an edge, and continue.
3083         I can't see any good reason to treat this as a fatal error.
3084         Bug #2824879
3085
3086         * docs/gnuplot.doc: Clarify the section on linetypes and linestyles.
3087
3088 2010-09-18  Ethan A Merritt  <merritt@u.washington.edu>
3089
3090         * src/eval.c src/internal.c src/internal.h docs/gnuplot.doc:
3091         New function value("X") returns the value of a variable named X.
3092         A = "foo"
3093         value("A") returns "foo"
3094         value(A) returns NaN, because there is no variable named foo
3095         value(2) returns 2 (numeric expressions have a natural value)
3096         Among other things, this allows you to read variable names from
3097         a data file and use the current value of those variables in a plot.
3098
3099         * src/util.c (gprintf):  Handle formats x/X/o/O for values that
3100         overflow (int) by switching to llx/llX/llo/llO and (long long).
3101         NB: This does _not_ extend the representation of negative numbers
3102         to 64 bits unless the representation overflows 32 bits.
3103
3104 2010-09-16  Ethan A Merritt  <merritt@u.washington.edu>
3105
3106         * tutorial/eg2.plt tutorial/eg6.plt tutorial/test_tikz.plt 
3107         tutorial/Makefile.am.in tutorial/header.tex tutorial/tutorial.tex:
3108         Update the LaTeX tutorial a bit.  More could be done.
3109
3110 2010-09-15  Ingo Thies  <ingo.thies@gmx.de>
3111
3112         * src/graph3d.c src/graph3d.h src/mouse.c src/set.c src/unset.c:
3113         Switch the middle button left/right mouse zoom behaviour in 3D plots
3114         so that the zoom response is logarithmic.  
3115
3116 2010-09-15  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3117
3118         * term/gd.trm:  As of libgd 2.0.36 you can now specify a TrueType font
3119         using either Fontconfig syntax or using the font file name directly.
3120         But switching from one form to the other was only possible as an 
3121         option of "set terminal".  This patch enables us to specify these two
3122         forms of the font name in "set title", "set xlabel", and so on.
3123
3124 2010-09-15  Ethan A Merritt  <merritt@u.washington.edu>
3125
3126         * src/term_api.h src/term.c (strlen_tex):  Add a special-case routine to
3127         estimate the true number of output characters in a LaTeX string
3128         containing markup. This is not a real LaTeX parser, but even a poor
3129         estimate is better than just calling strlen().
3130         Bug #1603348 and others
3131
3132         * term/latex.trm term/lua.trm term/pslatex.trm: Set flag TERM_IS_LATEX
3133         so that strings passed to these terminals are sent to strlen_tex() 
3134         rather than the normal enhanced text string length estimation.
3135
3136 2010-09-10  Ethan A Merritt  <merritt@u.washington.edu>
3137
3138         * src/graphics.c (boundary): When calculating the horizontal space
3139         required for x axis tick labels, we must ignore ticks that are outside
3140         the current axis range.
3141
3142         * src/mouse.c (apply_zoom): Tick labels generated by
3143         'using xticlabels(N)' may have changed while the plot was zoomed, so we
3144         must preserve them when un-zooming.
3145
3146 2010-09-08  Ethan A Merritt  <merritt@u.washington.edu>
3147
3148         * src/datafile.c (df_close):  Free matrix data that was stored in memory
3149         during input.  Otherwise we leak memory after every plot of matrix data.
3150
3151         * src/color.h src/gadgets.c src/gadgets.h src/misc.c src/term.c
3152         src/term_api.h:  Repair some lp_style_type definitions and initializers
3153         that were incorrect or incomplete.
3154
3155 2010-09-08  Peter Juhasz  <juhaszp@users.sourceforge.net>
3156
3157         * src/plot2d.c (store_label eval_plots): Extend variable color support
3158         for LABELPOINTS style by allowing "with labels tc X lc Y" where X, Y is
3159         one of "lc variable", "lc palette z", or "lc rgb variable".
3160
3161         * src/misc.c (lp_parse): Revert the patch of 2010-07-08 because 
3162         it accidentally disabled the coloring option "lc N".
3163         * src/graph3d.c (key_sample_line_pm3d key_sample_point_pm3d): 
3164         More correct fix to bug #3026477: the functions above failed to call
3165         the simpler key sample routines in case of plots with coloring option
3166         "lc N" and "lc rgb 'color'".
3167
3168 2010-09-06  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3169
3170         * docs/term-ja.diff docs/gnuplot-ja.doc:
3171         Sync Japanese documentation to gnuplot.doc rev 1.623
3172
3173 2010-09-04  Peter Juhasz  <juhaszp@users.sourceforge.net>
3174
3175         * src/set.c (set_logscale): Removed arbitrary limitation for log base
3176         (was >= 1.1, now > 1.0)
3177
3178 2010-09-03  Ethan A Merritt  <merritt@u.washington.edu>
3179
3180         * src/readline.c (readline): Fix Windows breakage (failure to
3181         recognize ^M as newline) caused by error in OSK code removal.
3182
3183 2010-08-31  Petr Mikulik  <mikulik@physics.muni.cz>
3184
3185         * src/os2/gnupmdrv.rc: Removed menu item Commands to clipboard.
3186
3187         * src/gpexecute.c (gp_execute): Removed bSend2gp and call to
3188         TextToClipboard.
3189
3190         * src/mouse.c (alert): Use DosBeep under OS/2.
3191
3192         * os2/gclient.c: Removed unused #define GNUPMDRV.
3193
3194 2010-08-30  Ethan A Merritt  <merritt@u.washington.edu>
3195
3196         * src/show.c (conv_text):
3197         Until now, the "show" and "save" commands have replaced all non-ascii
3198         characters with a byte-by-byte octal escape sequence.  This makes any
3199         labels, variables, titles, etc not human-readable if they contain UTF8
3200         encoded characters. Now we simply pass them through as-is if the current
3201         encoding is UTF-8. I think this is the correct thing to do for other
3202         8-bit encodings as well, but I can't test those easily.
3203
3204 2010-08-25  Ethan A Merritt  <merritt@u.washington.edu>
3205
3206         * src/plot2d.c (eval_plots):  Allow "fc <colorspec>" as an in-line
3207         option to the plot command for plot styles that use a fill.
3208
3209 2010-08-14  Ethan A Merritt  <merritt@u.washington.edu>
3210
3211         * src/gplt_x11.c:  The gnuplot_x11 side of Shige's fix.
3212
3213 2010-08-14  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3214
3215         * term/x11.trm:  The last font used inside an enhanced text string was
3216         not being cleared on exit.
3217
3218 2010-08-13  Ethan A Merritt  <merritt@u.washington.edu>
3219
3220         * src/ansichek.h src/gplt_x11.c src/plot.c src/readline.c src/show.c
3221         src/stdfn.h src/syscfg.h term/x11.trm:  Remove conditional code for 
3222         another obsolete platform (OSK/OS9, used for example on TRS-80).
3223
3224 2010-08-12  Ethan A Merritt  <merritt@u.washington.edu>
3225
3226         * src/command.c:  OSX history command could segfault if there was no
3227         previous history file.
3228
3229         * docs/gnuplot.doc:  Reorganize documentation for binary files.
3230
3231 2010-08-09  Ethan A Merritt  <merritt@u.washington.edu>
3232
3233         * configure.in src/plot.c: More work to enable autoconfigue on OSX.
3234
3235 2010-08-08  Olivier Mehani  <shtrom@users.sourceforge.net>
3236
3237         * src/util.c docs/gnuplot.doc:  Add ISO-IEC-80000 prefixes
3238         (ki Mi Gi etc) as gprintf format specifiers %b and %B, which are
3239         respectively the mantissa and exponent.  Also fix an out-of-range
3240         formatting bug.
3241
3242 2010-08-07  Ethan A Merritt  <merritt@u.washington.edu>
3243
3244         * src/plot2d.c: Do not create a data record for a blank line at the end
3245         of the input stream.
3246         Bugfix.
3247
3248         * src/plot2d.c (eval_plots):  Update GPVAL_DATA values after plot in
3249         tabulate mode just as for normal plotting mode.
3250         Bug #3041233
3251
3252         * docs/gnuplot.doc src/gadgets.h src/graphics.c src/save.c src/set.c
3253         src/show.c src/tables.c src/tables.h:
3254         New option "set key opaque".   If requested, the code makes two passes
3255         over each 2D plot command.  The actual graph is drawn during the first
3256         pass, and the key box with plot samples is drawn during the second pass.
3257
3258 2010-08-05  Ethan A Merritt  <merritt@u.washington.edu>
3259
3260         * configure.in src/command.c src/history.c src/mouse.c src/plot.c
3261         src/show.c:
3262
3263         Finally a work-around for the broken libreadline on OSX, which is really
3264         a wrapper for some version of libeditline.  Test for each potentially
3265         missing function in configure and deal with it if it's missing.  There
3266         may still be an issue with autoconfiguring support for the history
3267         functions.
3268         Bug #1839048 and others 
3269
3270 2010-07-30  Ethan A Merritt  <merritt@u.washington.edu>
3271
3272         * src/command.c src/command.h src/eval.c src/fit.c src/gp_types.h
3273         src/plot.c src/readline.c src/stdfn.c src/syscfg.h src/term.h:
3274         Remove vestigial tests for DOS16 or DOS386
3275
3276 2010-07-29  Allin Cottrell  <cottrell@wfu.edu>
3277
3278         * src/term.c src/term_api.h term/emf.trm term/svg.trm docs/gnuplot.doc:
3279         Add support for codepage 950, which is Microsoft's version of Chinese
3280         Big5 encoding.  Only the emf terminal (and maybe svg) do anything useful
3281         with it.   "set encoding cp950"
3282
3283 2010-07-28  Ethan A Merritt  <merritt@u.washington.edu>
3284
3285         * term/estimate.trm:  Always estimate escaped characters as requiring
3286         one character width.
3287         Bug #3036010
3288
3289 2010-07-27  Tim Mooney  <enchanter@users.sourceforge.net>
3290
3291         * configure.in:  If lua.pc is not present but liblua.so is found
3292         anyhow,  then set HAVE_LUA and LUA_LIBS explicitly.
3293         Bug #3035608
3294
3295 2010-07-26  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3296
3297         * term/win.trm src/win/wgraph.c:  Yet another windows terminal font fix.
3298         Bug #2972307
3299
3300 2010-07-25  Ethan A Merritt  <merritt@u.washington.edu>
3301
3302         * term/canvas.trm:  "set term canvas fontscale <fs>"
3303
3304         * src/graphics.c (do_plot do_key_layout): Separate out the code that
3305         allocates space for the graph legend, and collect the key sample code
3306         into a single place.
3307
3308 2010-07-15  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3309
3310         * docs/gnuplot.doc: typos
3311         * docs/term-ja.diff docs/gnuplot-ja.doc:
3312         Sync Japanese documentation to gnuplot.doc rev 1.617
3313
3314 2010-07-14  Ethan A Merritt  <merritt@u.washington.edu>
3315
3316         * src/hidden3d.c: Remove magic number -3 and the test (foo>=-2) in
3317         favor of LT_NODRAW and test (foo!=LT_NODRAW).
3318
3319         * src/hidden3d.c:  #define PT_ARROWHEAD and PT_BACKARROW
3320         * src/hidden3d.c (make_edge draw_edge build_networks) src/util3d.c
3321         (draw3d_line_unconditional):
3322         Handle arrow heads and other arrow style parameters in hidden3d mode.
3323         For surfaces, edge.style indicates whether this edge is seen from the
3324         top or the bottom.  Coopt this flag for VECTOR plots to indicate
3325         whether the vector points up (positive z) or down (negative z).
3326         Separate flag is needed because the end points are sorted on z.
3327
3328 2010-07-11  Peter Juhasz  <juhaszp@users.sourceforge.net>
3329             Ethan A Merritt  <merritt@u.washington.edu>
3330
3331         * src/util3d.c (draw3d_point_unconditional):  Remove incomplete local
3332         color handling; the shared code in term_apply_lp_properties now does a
3333         more complete job.
3334
3335         * src/graph3d.c (do_3dplot): Simplify the key sample code for contour
3336         plots with style "points".  Set a default color sequence for contours
3337         belonging to a surface drawn with "lc variable".
3338
3339 2010-07-10  Ethan A Merritt  <merritt@u.washington.edu>
3340
3341         * src/graph3d.c (do_3dplot): Fix bug introduced by patch of 23-Mar-2010.
3342         If the linetype of a 3D surface used "lc ..." then all contours of the
3343         surface were stuck with that same coloring rather than incrementing
3344         through successive line types.
3345
3346 2010-07-09  Ethan A Merritt  <merritt@u.washington.edu>
3347
3348         * src/term.c (term_apply_lp_properties): Yet another bandaid fix for
3349         problems with "lc var".  If the higher level code has failed to resolve
3350         LC_COLORFROMCOLUMN (or LT_DEFAULT) into an actual color, use LT_BLACK.
3351         Bug #3026477
3352
3353 2010-07-08  Ingo Thies  <ingo.thies@gmx.de>
3354
3355         * src/gadgets.h src/mouse.c src/set.c:  Allow continuous rotation of 3D
3356         plots when mousing; i.e., do not limit rotation angle to 0<rotx<180
3357
3358 2010-07-08  Ethan A Merritt  <merritt@u.washington.edu>
3359
3360         * src/misc.c (lp_parse): The coloring option "lc N" should not set a
3361         use_palette flag.  I think the option "lc variable" shouldn't either.
3362         Bug #3026477
3363
3364 2010-07-07  Peter Juhasz  <juhaszp@users.sourceforge.net>
3365
3366         * src/datafile.c src/gadgets.c src/gadgets.h src/gp_types.h
3367         src/graph3d.c src/graphics.c src/graphics.h src/plot2d.c src/save.c
3368         src/set.c src/show.c src/tables.c src/tables.h src/unset.c:
3369
3370         * docs/gnuplot.doc docs/plotstyles.gnu demo/all.dem demo/ellipses.dat
3371         demo/ellipses_style.dem demo/orbital_elements.dat demo/orbits.dem
3372
3373         New plot style "with ellipses".  Demos and documentation to match.
3374
3375 2010-07-07  Ethan A Merritt  <merritt@u.washington.edu>
3376
3377         * term/PostScript/prologue.ps:  Add a default definition 
3378             /g {setgray} def
3379         so that a missing palette initialization will result in normal 
3380         grayscale rather than an invalid PostScript file.
3381         Bug #3026477
3382
3383 2010-07-06  Ethan A Merritt  <merritt@u.washington.edu>
3384
3385         * src/graph3d.c (boundary3d): Prevent infinite loop or divide-by-zero
3386         if the requested plot is so small that x or y dimension goes to zero.
3387         Bug #3026145
3388
3389 2010-07-05  Akira Kakuto
3390
3391         * term/win.trm:  More fixes to font initialization.
3392         Bug #2972307 #2993504
3393
3394 2010-07-02  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3395
3396         * term/win.trm:  Explicitly initialize font.
3397         Bug #2972307
3398
3399 2010-07-01  Ethan A Merritt  <merritt@u.washington.edu>
3400
3401         * src/datafile.c (df_readbinary): Regardless of the current timefmt
3402         setting, if we are reading time data from a binary file it will come in
3403         as a floating point value rather than as a string.  So we can treat it
3404         like any other binary value.
3405         Thanks to Thomas Sefzick for pointing this out.
3406
3407         * src/datafile.c (df_readbinary): In binary mode, string-valued 
3408         functions were silently ignored.  Fix this, thus allowing binary files
3409         to be plotted "with labels".  For example: 
3410         plot 'foo' binary format='%double' using 0:1:("A") with labels
3411
3412 2010-07-01  Ethan A Merritt  <merritt@u.washington.edu>
3413
3414         * docs/gnuplot.doc src/axis.h src/command.c src/datafile.c src/gp_time.h
3415         src/internal.c src/time.c:
3416
3417         Track time coordinates to sub-second precision.
3418
3419         Time data read using the %S format specifier in "set timefmt" is now
3420         treated as a floating point number rather than an integer. This affects
3421         data read from an input file ("set xdata time"), the axis range and tic
3422         locations given for an axis using time coordinates ("set xrange",
3423         "set xtics"), and time conversions performed via calls to strptime().
3424
3425         Time data output formats ("set format" strftime()) now accept a 
3426         precision modifier to the %S format. For example, "%H:%M:%.3S" will
3427         print hour, minute, seconds to a precision of milliseconds.
3428         gnuplot> print strftime("%Y %D %H:%M:%.3S", 12345.6789)
3429                  2000 01/01/00 03:25:45.679
3430
3431         The maximum precision allowed for output is 6 digits (microseconds).
3432         6 digit accuracy is possible for absolute dates through the year 2550.
3433
3434
3435 2010-06-30  Ethan A Merritt  <merritt@u.washington.edu>
3436
3437         * src/plot2d.c (get_data): Add back the rather useless code that handles
3438         four columns of data for styles LINESPOINTS and POINTSTYLE, even though
3439         the variable color handling no longer needs it.  It is still called
3440         (foolishly) if the plot command is issued with no using spec at all.
3441
3442 2010-06-29  Peter Juhasz
3443
3444         * docs/gnuplot.doc: Document variable color for plot styles that were
3445         not previously supported.
3446
3447         * src/plot2d.c: The final piece of "with labels tc variable"
3448
3449 2010-06-29  Ethan A Merritt  <merritt@u.washington.edu>
3450
3451         * src/set.c (parse_label_options) src/plot2d.c (store_label)
3452         src/pm3d.c (set_plot_with_palette):
3453         Finish variable color support for text color in LABELPOINTS.
3454
3455 2010-06-28  Peter Juhasz
3456
3457         * src/graphics.c demo/varcolor.dem: Finish variable color support
3458         for plot style CANDLESTICKS.  Expand the demo.
3459
3460 2010-06-28  Ethan A Merritt  <merritt@u.washington.edu>
3461
3462         * src/color.h: New flag TC_VARIABLE (only used for textcolor)
3463
3464         * src/misc.c (parse_colorspec) src/set.c (set_key) 
3465         src/graphics.c (do_key_sample):  Accept "set key tc variable"
3466
3467 2010-06-27  Peter Juhasz
3468
3469         * src/graphics.c src/plot2d.c: Remove dead code supporting the old way
3470         of handling variable color.  Make "lc palette z" work.
3471         Since the new variable color mechanism frees up space in struct
3472         coordinate, use this to clean up the data storage for "with circles".
3473
3474         * demo/varcolor.dem:  General demo and debugging tool for the expanded
3475         support of variable color across almost all plot styles.
3476
3477         * src/graphics.c src/plot2d.c: Implement variable color for
3478         *ERRORBARS, *ERRORLINES, FINANCEBARS, CANDLESTICKS
3479
3480 2010-06-27  Ethan A Merritt  <merritt@u.washington.edu>
3481
3482         * src/graphics.h src/graphics.c plot2d.c:  Maintain a dynamically-
3483         allocated array of per-datapoint color values in the header of each 2D
3484         plot.  The array is allocated only if the plot uses variable color.
3485
3486         * src/plot2d.c: Store variable color data in the plot->varcolor[] array
3487         for plot styles VECTOR CIRCLES BOXES LINES DOTS IMPULSES POINTSTYLE
3488         LINESPOINTS XYERRORLINES XYERRORBARS BOXXYERROR LABELPOINTS BOXERROR
3489
3490         * src/graphics.c (check_for_variable_color):  Convert this routine to
3491         check and load variable color using the new mechanism.
3492         Add variable color support for BOXXYERROR, BOXERROR
3493
3494 2010-06-26  Peter Juhasz
3495
3496         * src/plot2d.c: In plots style "with circles", let a negative value for
3497         the radius indicate that the default radius should be used.
3498
3499 2010-06-24  Ethan A Merritt  <merritt@u.washington.edu>
3500
3501         * src/gadgets.c src/gadgets.h src/graphics.c src/plot2d.c src/save.c
3502         src/set.c src/show.c src/tables.c src/tables.h src/unset.c
3503         docs/gnuplot.doc:
3504
3505         New style element "set style circle radius <R>" specifies a default
3506         radius for function plots or 2-column data plots drawn "with circles".
3507
3508 2010-06-16  Ethan A Merritt  <merritt@u.washington.edu>
3509
3510         * src/plot2d.c (eval_plots): Function plots should not be affected by
3511         the current setting of "boxwidth" unless they really do contain boxes.
3512         Bugfix
3513
3514 2010-06-15  Ethan A Merritt  <merritt@u.washington.edu>
3515
3516         * src/datafile.c: Do not allow xticlabels(foo) in association with
3517         style BOXPLOT, since there are no x coordinates.
3518
3519         * src/gadgets.h: Add in missing fields of object initializers.
3520
3521 2010-06-11  Peter Juhasz
3522
3523         * src/graphics.c (boundary):  More correct fix for distorted
3524         vertical size of subplots in a multiplot.
3525
3526 2010-06-10  Ethan A Merritt  <merritt@u.washington.edu>
3527
3528         * src/graphics.c (boundary):  Fix a type that can distort the
3529         vertical size of subplots in a multiplot.
3530
3531 2010-06-02  Ethan A Merritt  <merritt@u.washington.edu>
3532
3533         * src/misc.c (need_fill_border): The fillstyle border color was not
3534         taking account of linetype redefinitions.
3535
3536 2010-05-30  Ethan A Merritt  <merritt@u.washington.edu>
3537
3538         * docs/gnuplot.doc:  Document recently added %s time format
3539         (seconds since start of 2000).
3540
3541 2010-05-24  Ethan A Merritt  <merritt@u.washington.edu>
3542
3543         * src/graph3d.c (do_3dplot):  Remove a restriction that limited depth-
3544         sorting of pm3d surfaces to those which were adjacent in the splot
3545         command.  If there was a reason for the original restriction, that 
3546         reason is now not remembered.
3547         Bug #3004793
3548
3549 2010-05-23  Ethan A Merritt  <merritt@u.washington.edu>
3550
3551         * term/emf.trm: Revise the enhanced text mode, especially text rotation.
3552
3553 2010-05-22  Ethan A Merritt  <merritt@u.washington.edu>
3554
3555         * term/canvas.trm (CANVAS_graphics ENHCANVAS_FLUSH):
3556         Fix a bug in applying the baseline of rotated enhanced text.
3557         Provide a dummy gnuplot_init() routine if a standalone html
3558         file with no mouse support is created.
3559
3560 2010-05-20  Ethan A Merritt  <merritt@u.washington.edu>
3561
3562         * term/estimate.trm (ENHest_writec strlen_utf8)
3563         src/term.c (estimate_strlen):
3564
3565         Teach estimate_strlen() to handle UTF-8 encoded strings.  The estimate
3566         is imperfect, but then again the estimate is already imperfect for any
3567         proportional font.  To truly do this more accurately would require
3568         customized implementations for each terminal type.  Any unicode code
3569         point below 0x3000 is treated as requiring one character width; code
3570         points above 0x3000 are treated as requiring two character widths.
3571
3572 2010-05-16  Ethan A Merritt  <merritt@u.washington.edu>
3573
3574         * src/hidden3d.c (draw_edge): Add support for coloring lines in
3575         hidden3d mode using 'lc variable' or 'lc rgb variable'.
3576
3577 2010-05-13  Ethan A Merritt  <merritt@u.washington.edu>
3578
3579         * term/cairo.trm (cairotrm_options): The "noenhanced" option was
3580         broken by the patch of 2009-07-03.  Fix it.
3581
3582         * term/cairo.trm (cairotrm_put_text): Enhanced text was applying
3583         the fontscale twice.  Fix it.
3584
3585 2010-05-11  Ethan A Merritt  <merritt@u.washington.edu>
3586
3587         * src/eval.c (magnitude):  Optimize for the predominant case
3588         (no imaginary component).
3589
3590 2010-05-10  Ethan A Merritt  <merritt@u.washington.edu>
3591
3592         * term/post.trm (PS_set_font): set ... font ",size" was not working
3593         for non-enhanced text.  Now it is.
3594
3595         * src/plot2d.c (parametric_fixup) src/plot3d.c (parametric_3dfixup):
3596         Delete vestigial code for auto-generation of a parametric plot title.
3597
3598 2010-05-09  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
3599
3600         * src/eval.c (magnitude): Yesterday's change breaks if the complex
3601         argument is {0,0}.
3602
3603 2010-05-08  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
3604
3605         * src/eval.c (magnitude): Make implementation robust to overflows
3606         and underflows.
3607
3608 2010-05-06  David Marx  <itsdmarx@users.sourceforge.net>
3609
3610         * src/syscfg.h: Tweaked version of _bool support for Sun/Solaris
3611
3612 2010-05-06  Ethan A Merritt  <merritt@u.washington.edu
3613
3614         * term/cairo.trm (cairotrm_graphics): Handle the special case of
3615         streaming pdfcairo output to stdout.  (Requires cairo version >=
3616         1.2) Bug #578311
3617
3618 2010-05-05  Ethan A Merritt  <merritt@u.washington.edu
3619
3620         * term/post.trm src/term.c: Move a global declaration out of post.trm so
3621         that gnuplot can be built without including the postscript terminal.
3622
3623 2010-05-02  Thomas Sefzick <thse@users.sourceforge.net>
3624
3625         * src/gadgets.h src/graphics.c src/save.c src/set.c set/show.c
3626         src/tables.c src/tables.h docs/gnuplot.doc:
3627
3628         New options "set key maxcolumns N maxrows M" to manually adjust the
3629         automatic layout of items in the figure legend. Implemented for 2D
3630         plots only.
3631
3632 2010-05-02  Ethan A Merritt  <merritt@u.washington.edu
3633
3634         * configure.in src/save.c src/set.c src/show.c src/unset.c src/fit.c
3635         src/fit.h docs/gnuplot.doc config/config.os2 config/config.wc
3636         config/config.nt config/config.dj2 config/config.oww config/config.cyg
3637         config/config.amg config/config.mgw:
3638
3639         Remove conditional flag GP_FIT_ERRVARS, default to "set fit errorvar".
3640         Tracker item #2985752
3641
3642         * src/misc.c (lp_parse): "lc variable" was being lost in some cases.
3643         Bugfix
3644
3645 2010-04-24  Ethan A Merritt  <merritt@u.washington.edu
3646
3647         * config.mgw config.cyg config.os2:  Enable HIDDEN_QUADTREE by default.
3648         Tracker item #2990173
3649
3650 2010-04-20  John Naylon  <jpbn@users.sourceforge.net>
3651
3652         * src/gp_types.h src/interpol.c src/plot2d.c src/tables.c
3653         docs/gnuplot.doc: New option "smooth cnormal", equivalent to 
3654         "smooth cummulative" with automatic normalization to the range
3655         [0:1].
3656
3657 2010-04-12  Ethan A Merritt  <merritt@u.washington.edu
3658
3659         * term/post.trm: Correct a typo that leads to serious problems with
3660         font size and placement (introduced by the fontscale code).
3661
3662 2010-04-04  Ethan A Merritt  <merritt@u.washington.edu
3663
3664         * term/cairo.trm: The cairo terminals were forgetting fontscale
3665         after the initial application.
3666         Bugfix
3667
3668         * src/wxterminal/gp_cairo.c term/cairo.trm: Use-after-free error caused
3669         a segfault on certain enhanced text strings.
3670         Bug #2947223
3671
3672 2010-03-28  Ethan A Merritt  <merritt@u.washington.edu
3673
3674         * docs/gnuplot.doc: State explicitly that the timefmt %y interprets
3675         a 2 digit year number as being in the range 1969-2068.
3676
3677 2010-03-24  Ethan A Merritt  <merritt@u.washington.edu
3678
3679         * term/tgif.trm (text_angle): Handle text rotation -270 same as +90.
3680         Bugfix
3681
3682 2010-03-23  Guy Mann  <guydmann@gmail.com>
3683
3684         * term/js/gnuplot_mouse.js (mouse_update):
3685         Repaint current canvas before each incremental update of the zoom box.
3686
3687 2010-03-22  Ethan A Merritt  <merritt@u.washington.edu
3688
3689         * src/misc.c (lp_parse): Re-write the lp_parse() routine to prevent the
3690         loading of a user-defined linetype from undoing other linestyle 
3691         properties given earlier in the same command.
3692
3693         * src/util3d.h src/util3d.c (draw3d_line_unconditional)
3694         src/hidden3d (draw_edge draw_line_hidden):  The code was passing in
3695         top and bottom colors for the hidden3d routines as integer linetypes.
3696         But loading a whole linetype lost any line properties given explicitly
3697         in the splot command. Change this so that the top and bottom colors are
3698         passed as t_colorspec structures instead.
3699
3700 2010-03-21  Tommaso Vinci  <ilbibi@users.sourceforge.net>
3701
3702         * Provide Humlicek's approximation to the Voigt/Faddeeva function
3703           voigt(x,y) = \frac{y}{\pi} \int{\frac{e^{t^2}}{(x-t)^2+y^2}}dt
3704
3705 2010-03-20  Ethan A Merritt  <merritt@u.washington.edu
3706
3707         * NEWS src/hidden3d.c src/plot3d.c src/graph3d.c docs/gnuplot.doc:
3708
3709         Add support for 'with impulses' in hidden3d code.  Previously the manual
3710         said 3D impulses were drawn "from the xy plane" but the code did not
3711         follow this, drawing instead from zmin.  Now the 3D code always draws
3712         impulses from z=0 just as the 2D code always draws from y=0.
3713
3714 2010-03-18  Ethan A Merritt  <merritt@u.washington.edu
3715
3716         * docs/gnuplot.doc:  Add index entries and update description of mouse
3717         scrolling and hotkeys.
3718
3719 2010-03-17  Ethan A Merritt  <merritt@u.washington.edu
3720
3721         * plot.c (main): Initialize c_token to a legal value at the start of
3722         interactive input.
3723
3724         * docs/gnuplot.doc src/set.c src/term_api.h src/wxterminal/wxt_gui.cpp
3725         src/wxterminal/wxt_term.h term/cairo.trm term/emf.trm term/gd.trm
3726         term/pdf.trm term/post.h term/post.trm term/wxt.trm:
3727
3728         New terminal option "fontscale <scale>".  This scale factor is applied
3729         to the nominal font size before use, so that you can scale the font 
3730         size up or down in parallel with scaling the output page up or down.
3731         This is mostly relevant for hardcopy output or embedded figures.
3732
3733 2010-03-14  Ethan A Merritt  <merritt@u.washington.edu
3734
3735         * INSTALL config/README config/makefile.amg config/makefile.ami
3736         config/makefile.dj2 config/makefile.unx config/term_pc.h configure.in
3737         docs/Makefile.in docs/README docs/gnuplot.doc src/Makefile.am
3738         src/Makefile.maint src/amiga.c src/command.c src/command.h src/graph3d.c
3739         src/graphics.c src/graphics.h src/makefile.all src/makefile.awc
3740         src/plot.c src/scanner.c src/stdfn.c src/stdfn.h src/syscfg.h src/term.c
3741         src/term.h src/variable.c term/amiga.trm:
3742
3743         Remove code specific to amiga platforms. 
3744         30 files changed, 43 insertions(+), 1941 deletions(-)
3745
3746         * config/makefile.dj2 config/makefile.unx config/term_pc.h
3747         configure.in docs/doc2texi.el src/eval.c src/eval.h src/makefile.all
3748         src/makefile.awc src/plot.c src/syscfg.h src/term.c src/term.h
3749         term/apollo.trm term/gpr.trm:
3750
3751         Remove code specific to support of Apollo workstations.
3752         The final gnuplot version in the apollo archives was gnuplot 2.0 (1996).
3753         15 files changed, 16 insertions(+), 1211 deletions(-)
3754
3755         * src/pm3d.c src/tables.c src/term.c term/gd.trm term/pm.trm
3756         term/post.trm: Remove bits of dead code.
3757
3758 2010-03-13  Ethan A Merritt  <merritt@u.washington.edu
3759
3760         * config/makefile.286 config/makefile.msc config/makefile.msw
3761         config/makefile.tc config/makefile.wc config/makefile.unx
3762         src/Makefile.am src/alloc.c src/alloc.h src/eval.c src/gnuplot.def
3763         src/graph3d.c src/help.c src/hidden3d.h src/misc.c src/plot.c
3764         src/plot2d.c src/set.c src/show.c src/syscfg.h src/term.c
3765         src/term_api.h src/unset.c src/util3d.c term/cgm.trm:
3766
3767         We have not supported 16-bit DOS or WIN since version 4.0.
3768         Remove the old cruft that was wrapped in conditional flags
3769         DOS16 WIN16 DOSX286 LITE
3770         23 files changed, 11 insertions(+), 324 deletions(-)
3771
3772 2010-03-13  Ethan A Merritt  <merritt@u.washington.edu>
3773
3774         * src/util.c (getusername): Fix segfault if neither USER or USERNAME
3775         are present in the environment.
3776
3777 2010-03-09  Ethan A Merritt  <merritt@u.washington.edu>
3778
3779         * src/gplt_x11.c (preset): Fix compilation error if XAPPLRESDIR is not
3780         externally defined.
3781
3782 2010-03-08  Ethan A Merritt  <merritt@u.washington.edu>
3783
3784         * docs/README docs/Makefile.in docs/pdffigures.tex docs/titlepag.tex:
3785         Split out dependence on the packages graphicx and picins into a separate
3786         file (pdffigures.tex) that is only needed by target "make pdffigures".
3787
3788 2010-03-07  Ethan A Merritt  <merritt@u.washington.edu>
3789
3790         * share/Makefile.am: Give up on figuring out a universally agreed on
3791         place where x11 app-defaults files should be installed.  Place ours in
3792         ${PREFIX}/share/gnuplot/4.5/app-defaults
3793
3794 2010-03-06  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
3795
3796         * INSTALL config/makefile.mgw config/makefile.cyg:
3797         Consolidate the instructions for building using mgw and cygwin into
3798         their respective makefiles.
3799
3800 2010-03-06  Ethan A Merritt  <merritt@u.washington.edu>
3801
3802         * src/plot2d.c (get_data): Both curves in 'with filledcurves' must
3803         use the same y axis properties.
3804         Bug #2941257
3805
3806         * src/util.c configure.in config/config.cyg config/config.dj2
3807         config/config.mgw config/config.ntconfig/config.os2 config/config.oww:
3808         Remove the test for pwd.h, the configuration flag HAVE_PWD_H, and the
3809         conditional code that copies GECOS information from the password file
3810         into the header of PostScript and PDF output files.  This addresses
3811         reported issues of privacy and reported problems with building a static
3812         executable.
3813
3814 2010-03-05  Ethan A Merritt  <merritt@u.washington.edu>
3815
3816         * src/internal.c (eval_reset_after_error f_call) src/internal.h
3817         src/util.c (int_error) eval.h (STACK_DEPTH):
3818         Add a recursion depth limit for calls to a user-defined function.
3819         Bump the maximum depth from 100 to 250.
3820         Bug #2954383
3821
3822 2010-03-05  Christoph Junghans (ottxor)
3823
3824         * src/Makefile.am:  Fix broken target "make clean"
3825
3826 2010-03-04  Thomas Sefzick <thse@users.sourceforge.net>
3827
3828         * src/svg.trm:  Make sure to reset ENHsvg_string_state after each use.
3829
3830 2010-03-03  Ethan A Merritt  <merritt@u.washington.edu>
3831
3832         * term/pdf.trm:  Remove requirement that the 'size' option must be the
3833         last option given.
3834
3835 2010-02-27  Ethan A Merritt  <merritt@u.washington.edu>
3836
3837         * graph3d.c (check_for_variable_color) plot3d.c (get_3ddata)
3838         plot3d.c (plot3d_impulses plot3d_lines plot3d_points):
3839         The presence of variable color was being tracked by a shared variable,
3840         rgb_from_column, but it was not being updated in some circumstances.
3841         Get rid of the variable and test the plot header directly when needed.
3842
3843         * term/emf.trm:  Tweak empirical corrections for character widths.
3844         Additional thin character -, really thin chars i,.:;|!
3845
3846 2010-02-24  Peter Juhasz
3847
3848         * src/save.c:  The 'save' command was not correctly handling plot styles
3849         circles, image, or rgbimage.
3850         Bug #2958235
3851
3852 2010-02-24  Alexander Taschner  <tachna@users.sourceforge.net>
3853
3854         * src/command.c src/win/wgraph.c term/win.trm:  Move declarations to
3855         conform with ANSI C.
3856
3857 2010-02-24  Ethan A Merritt  <merritt@u.washington.edu>
3858
3859         * term/cgm.trm (find_nearest_color):  When looking for RGB colors, check
3860         both the user-loaded colors and the default set of colors.  Otherwise 
3861         RGB fails if the user has loaded no colors.
3862
3863         * term/gd.trm:  Documentation for the mechanism for setting line colors
3864         in the 'set term' command is out of date, and anyhow the mechanism is
3865         needed only for the terminal background.  Line colors can now be handled
3866         in terminal-independent commands.  Revise the docs accordingly.
3867
3868 2010-02-23  Ethan A Merritt  <merritt@u.washington.edu>
3869
3870         * src/specfun.c (ibeta) docs/gnuplot.doc:
3871         The approximation used for the function ibeta(a,b,x) was taken from 
3872         Abramowitz & Stegun. However we failed to document that it is only
3873         usable on the domain x < (a-1)/(a+b-2).  Add this warning to the docs
3874         and make sure that the function itself returns a consistant error
3875         value (-1) if the domain or range is invalid.
3876         Bug #2957184
3877
3878 2010-02-22  Don Taber  <dtaber@topaflyers.com>
3879
3880         * src/win/wgraph.c (SelFont):  After a font change, call 
3881         do_string_replot("") so that it is immediately visible.
3882
3883 2010-02-18  Ethan A Merritt  <merritt@u.washington.edu>
3884
3885         * term/svg.trm: Use dynamic allocation for all font names. This prevents
3886         buffer overflow problems for very long font names.
3887
3888         * term/post.trm: Truncate over-long font names rather than allowing 
3889         buffer overflow.
3890
3891 2010-02-17  Christoph Junghans (ottxor)
3892
3893         * configure.in plot.c: New configuration option to add local packager to
3894         list of contacts for bug reporting.
3895         Bug #2951583
3896
3897 2010-02-17  Ethan A Merritt  <merritt@u.washington.edu>
3898
3899         * src/term.c (do_arc):  Avoid calling trunc() because some compilers
3900         are still back in the dark ages (pre C99).
3901
3902         * configure.in: Change default installation directory for x11 resources
3903         to /etc/X11/app-defaults.
3904         Bug #1953742
3905
3906 2010-02-17  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3907
3908         * src/plot.c (interrupt_setup): Ctrl+C crashes windows console build.
3909         SF Patch #2848002
3910
3911 2010-02-16  Peter Juhasz
3912
3913         * src/graphics.c src/plot2d.c src/term.c docs/gnuplot.doc
3914         demo/circles.dem demo/energy_circles.dat:  Extend plot style
3915         "with circles" to allow optional start and end values for each arc.
3916
3917 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3918
3919         * src/win/wgnuplib.h src/win/wgraph.c term/win.trm: Add the option
3920         "close" to the windows terminal driver. Update documentation
3921         accordingly.
3922
3923 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3924
3925         * term/win.trm: Fix for windows terminal ignoring explicit fontname and
3926         size for labels.
3927
3928 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3929
3930         * src/win/wmenu.c (SendMacro): Bugfix in call to _getcwd.
3931
3932 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3933
3934         * term/win.trm: Add the options "size" and "position" to the windows
3935         terminal driver. Update documentation accordingly.
3936
3937 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3938
3939         * src/win/wgraph.c src/win/wresourc.h: Add the possibility to
3940         save the current graph window as EMF file. Add a Ctrl+S shortcut for
3941         the graph window and add an entry to the window's system menu.
3942
3943         * term/win.trm: Update documentation accordingly.
3944
3945 2010-02-15  Benjamin Lindner  <lindnerb@users.sourceforge.net>
3946
3947         * src/win/wgraph.c: Update code to copy to clipboard as enhanced
3948         metafile, add Ctrl+C shortcut for graph window.
3949
3950         * term/win.trm: Update documentation accordingly.
3951
3952 2010-02-15  Ethan A Merritt  <merritt@u.washington.edu>
3953
3954         * docs/gnuplot.doc src/gadgets.h src/graphics.c src/save.c
3955         src/set.c src/show.c: New style option (candlesticks or
3956         financebars) for 'with boxplots'. Apply the current setting of
3957         'set bars' to boxplots drawn in candlestick style.
3958
3959 2010-02-12  Ethan A Merritt  <merritt@u.washington.edu>
3960
3961         * src/set.c (set_obj): Sanity check start and end angles of arc.
3962
3963 2010-02-11  Ethan A Merritt  <merritt@u.washington.edu>
3964
3965         * src/graphics.c (plot_boxes): Amazingly old bug that fails to apply 
3966         absolute boxwidth in the case where previous point was undefined.
3967
3968 2010-02-10  Shigeharu Takeno  <shige@iee.niit.ac.jp>
3969
3970         * docs/gnuplot-ja.doc docs/term-ja.diff:
3971         Sync Japanese documentation to gnuplot.doc rev 1.598
3972
3973 2010-02-07  Ethan A Merritt  <merritt@u.washington.edu>
3974
3975         * docs/gnuplot.doc: Clarify the documentation for xticlabels().
3976         * docs/Makefile.in: Use htlatex to generate html docs
3977
3978 2010-02-07  Christoph Junghans (ottxor)
3979
3980         * configure.in share/Makefile.am src/Makefile.am src/gplt_x11.c
3981         src/variable.c: Configurable X11 application resource path.
3982         Bug #2931287 #219323
3983
3984 2010-02-07  Ethan A Merritt  <merritt@u.washington.edu>
3985
3986         * src/graphics.c (boxplot_range_fiddling) src/plot2d.c (plot_boxplot):
3987         Make boxplot handling ignore any undefined points in the data set.
3988
3989 2010-02-06  Ethan A Merritt  <merritt@u.washington.edu>
3990
3991         * NEWS docs/gnuplot.doc src/save.c src/set.c src/show.c src/tables.c
3992         src/tables.h src/term_api.h src/unset.c src/variable.c term/post.trm:
3993
3994         Revise the search order for PostScript prologue files
3995         1) directory given by 'set psdir' [new command]
3996         2) directory given by environmental variable GNUPLOT_PS_DIR
3997         3) built-in header if present, otherwise default system directory
3998         4) loadpath [pretty useless, but that's what it did before]
3999
4000 2010-02-05  Ethan A Merritt  <merritt@u.washington.edu>
4001
4002         * src/graphics.c (plot_boxplot): Fix off-by-one error in calculating
4003         quartile boundaries.
4004
4005 2010-02-03  Christoph Junghans (ottxor)
4006
4007         * share/LaTeX/Makefile.am: Fix a logic error in testing the need
4008         to call texhash.
4009
4010 2010-02-03  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
4011
4012         * src/command.c (pause_command): Loop of waitforinput() for "pause -1"
4013         in console mode of Windows.
4014
4015 2010-02-02  Christoph Junghans (ottxor)
4016
4017         * configure.in share/LaTeX/Makefile.am:
4018         kpsexpand was used in share/LaTeX/Makefile.am even if it was not
4019         installed.  Add --texdir=DIR option to configure
4020         Bug #2934829
4021
4022 2010-02-02  Ethan A Merritt  <merritt@u.washington.edu>
4023
4024         * src/term.c (test_term): Iniitialize linetype structure before loading
4025         dynamic linetypes.
4026         Bug: points all showed as dots if user linetypes were not defined
4027
4028         * src/syscfg.h: Attempt to fix build problem under Sun Studio (no
4029         definition for _Bool).
4030         Bug #2915835
4031
4032 2010-02-01  Ethan A Merritt  <merritt@u.washington.edu>
4033
4034         * term/canvas.trm: Fix typo in javascript output.
4035         Bug #2943778
4036
4037 2010-02-01  Petr Mikulik  <mikulik@physics.muni.cz>
4038
4039         * src/command.c (pause_command): Use the default message for Windows
4040         pause dialog.
4041
4042 2010-01-31  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
4043
4044         * src/command.c (pause_command): Fixes for pause on Windows with wxt.
4045
4046         * src/wxterminal/wxt_gui.cpp (wxt_waitforinput): Fix for Windows.
4047
4048 2010-01-29  Ethan A Merritt  <merritt@u.washington.edu>
4049
4050         * src/scanner.c (scanner): There was no scanner rule covering a token
4051         starting with '.'. This caused ambiguity in the interpretation of '.E1'.
4052         Is it a strange representation of 0, or concatenation of a string
4053         variable E1?  Resolve this with a new rule that a number with an initial
4054         '.' must continue with a digit.
4055         Bugfix
4056
4057 2010-01-28  Petr Mikulik  <mikulik@physics.muni.cz>
4058
4059         * src/command.c (pause_command): Fix "pause mouse" for gnuplot.exe on
4060         Windows.
4061
4062 2010-01-25  Ethan A Merritt  <merritt@u.washington.edu>
4063
4064         * INSTALL: Add section explaining the libreadline problem on OSX.
4065
4066 2010-01-25  Petr Mikulik  <mikulik@physics.muni.cz>
4067
4068         * src/win/wgraph.c (drawgraph pattern_bitmaps): Synchronize fill
4069         patterns of the Windows terminal with other terminals.
4070
4071 2010-01-16  Ethan A Merritt  <merritt@u.washington.edu>
4072
4073         * src/variable.c (loadpath_handler):  Have "show loadpath" also list
4074         the environmental variable GNUPLOT_PS_DIR.
4075         Bug #2933345
4076
4077 2010-01-15  Christoph Junghans <ottxor@users.sourceforge.net>
4078
4079         * configure.in src/Makefile.am demo/Makefile.am.in:
4080         "make check" needs help if we did ./configure --program-suffix=FOO
4081         In this case make a temporary symlink so that 'make check' can find
4082         gnuplot_x11.
4083         Bug #2926141
4084
4085 2010-01-12  Alexander Täschner  <taschna@users.sourceforge.net>
4086
4087         * src/win/winmain.c (MyVFPrintF): Microsoft Visual C does not use
4088         va_copy() and va_end().
4089
4090 2010-01-12  <ottxor@users.sourceforge.net>
4091
4092         * configure.in share/Makefile.am:  Do not install LaTeX support files
4093         if there is no latex on the system.  Add configuration option
4094         --without-latex
4095         Bug #2928310
4096
4097 2010-01-12  Ethan A Merritt  <merritt@u.washington.edu>
4098
4099         * term/pdf.trm: Always start a new path with a moveto.
4100         Bug #2930705
4101
4102         * src/plot2d.c (eval_plots): In generating points for a function plot,
4103         only x and y were guaranteed to be initialized. Now to be safe we
4104         initialize all fields.
4105         Bug #2930705
4106
4107         * src/plot2d.c (store2d_point): steps, fsteps, and histeps were 
4108         incorrectly auto-scaling to yhigh (which is really variable color).
4109         Bug #2929314
4110
4111 2010-01-10  Ethan A Merritt  <merritt@u.washington.edu>
4112
4113         * docs/gnuplot.doc docs/plotstyles.gnu demo/boxplot.dem
4114         src/datafile.c src/gadgets.c src/gadgets.h src/gp_types.h
4115         src/graph3d.c src/graphics.c src/plot2d.c src/save.c
4116         src/set.c src/show.c src/tables.c src/tables.h src/unset.c:
4117
4118         New plot style "with boxplot" and corresponding "set style boxplot".
4119
4120 2010-01-10  Shigeharu Takeno  <shige@iee.niit.ac.jp>
4121
4122         * docs/gnuplot-ja.doc docs/term-ja.diff:
4123         Sync Japanese documentation to gnuplot.doc rev 1.595
4124
4125 2010-01-10  <ottxor@users.sourceforge.net>
4126
4127         * share/Makefile.am:  Do not install x11 appdefaults file if no
4128         X11 support is selected.  Bug #2928271
4129
4130 2010-01-06  Alexander Täschner  <taschna@users.sourceforge.net>
4131
4132         * config/config.nt src/datafile.c src/eval.c src/plot.c src/stdfn.c
4133         src/stdfn.h: Define a generic function not_a_number() in which we can
4134         hide platform-specific implementations.  Add a support for initializing
4135         NaN and GPVAL_NaN on Windows.
4136         Bug #2925544
4137
4138 2010-01-03  Ethan A Merritt  <merritt@u.washington.edu>
4139
4140         * src/datafile.c (df_readascii): Further revision to maintain the old
4141         behaviour of the string variables demo.  The demo uses a very unusual
4142         method to read time strings from the input file, but let's not break
4143         it unless necessary.
4144
4145 2010-01-02  Ethan A Merritt  <merritt@u.washington.edu>
4146
4147         * src/datafile.c (df_readascii): Time format "%s" should be able to
4148         handle any numeric input. Convert input of the form   'using ($1)' or
4149         'using (f($1))' to a string so that it can be passed to gstrptime().
4150         Bug #2899511
4151
4152 2010-01-01  Ethan A Merritt  <merritt@u.washington.edu>
4153
4154         * term/PostScript/prologue.ps term/PostScript/prologues.h:
4155         Update version in PostScript headers.
4156         Define a user-configurable flag SuppressPDFMark.
4157
4158         * term/post.trm: Re-arrange stuff in the prolog so that users can either
4159         set SuppressPDFMark to true in an individual file or make a permanent
4160         change by setting it in the shared prolog file.
4161
4162 2009-12-31  Ethan A Merritt  <merritt@u.washington.edu>
4163
4164         * src/command.c src/gadgets.c src/gadgets.h src/graph3d.c src/graphics.c
4165         src/misc.c src/plot2d.c src/plot3d.c src/set.c src/show.c src/tables.c
4166         src/tables.h src/term_api.h src/term.c src/unset.c src/util3d.c
4167         demo/tango_colors.gp docs/gnuplot.doc:
4168
4169         Allow the user to redefine the properties of basic linetypes.
4170         The redefinitions are persistent; i.e. they are not affected by "reset".
4171         The command options are identical to those for "set style line".
4172         New command:
4173                 set linetype N {various line properties}
4174                 set linetype cycle M
4175
4176         The new line colors and widths can be set to cycle after going through
4177         M linetypes.  E.g. for M=8, the color of linetypes 9, 17, 25 ... are the
4178         same as that of linetype 1.
4179
4180 2009-12-30  Peter Kalinin  <pkalinin@users.sourceforge.net>
4181
4182         * term/metapost.trm (MP_options):
4183         The metapost terminal sets the line thickness for plots via drawoptions,
4184         then uses 'draw GPtext ...' to place the text. The draw inherits options
4185         from drawoptions, which results in altered thicknesses of lines.
4186         Replace 'draw GPtext' with 'addto currentpicture also GPtext'.
4187
4188 2009-12-30  Shigeharu Takeno  <shige@iee.niit.ac.jp>
4189
4190         * src/win/wgnuplib.h src/win/wgraph.c term/win.trm:
4191         Monochrome option of win terminal seems to have no effect.
4192             set term win mono
4193             plot x
4194         draws a red line. I think the timing of calling ReadGraphini() is not
4195         correct. This should be done only once on first entry before setting
4196         the terminal options.
4197
4198 2009-12-30  Thomas Sefzick <thse@users.sourceforge.net>
4199
4200         * src/graph3d.c: Fix incorrect color assignment of contour lines when
4201         'set style increment user' is set.
4202
4203 2009-12-28  Ethan A Merritt  <merritt@u.washington.edu>
4204
4205         * src/plot.c (get_data) src/graphics.c (plot_c_bars)
4206         src/tabulate.c (print_table) docs/gnuplot.doc:
4207
4208         Allow an optional 6th column in CANDLESTICKS style that specifies the
4209         width of each individual candle.
4210
4211 2009-12-24  Thomas Sefzick <thse@users.sourceforge.net>
4212
4213         * src/tabulate.c src/time.c:
4214         Support the "%s" format specifier to strftime as per the unix man page.
4215         If the output format string is exactly "%s" then 'output_number()' in
4216         'src/tabulate.c' returns the number of seconds since the beginning of
4217         the epoch as a number.  All other cases ("%s" in combination with any
4218         other character) are treated in 'time.c'.
4219
4220 2009-12-24  Ethan A Merritt  <merritt@u.washington.edu>
4221
4222         * src/tabulate: Fix buffer overflow.
4223
4224         * configure.in:  The cross-compilation patch causes a recursive 
4225         definition of CC in docs/Makefile.  I have attempted to fix this by
4226         revising the definition of CC_FOR_BUILD, but I don't know if this
4227         will break cross-compilation again.
4228
4229 2009-12-24  Robert Schwebel <r.schwebel@pengutronix.de>
4230
4231         * configure.in docs/Makefile.in:
4232         When cross compiling gnuplot, build the documentation generation tools
4233         in docs/ with CC_FOR_BUILD (host compiler), not with the cross compiler.
4234
4235 2009-12-22  Ethan A Merritt  <merritt@u.washington.edu>
4236
4237         * src/win/wgraph.c (drawgraph: W_line_type):  Change initial line
4238         template for LT_BACKGROUND to 0 (lt -1) rather than 1 (lt 0).
4239         Possible fix for bug #1952287
4240
4241 2009-12-19  Juergen Wieferink  <wieferink@freenet.de>
4242
4243         * src/command.c, src/command.h, src/misc.c, src/misc.h
4244         (lf_push, lf_pop): Save if-state.
4245
4246         * src/command.c, src/command.h, src/misc.c, src/misc.h
4247         (lf_push, lf_pop, load_file, do_string):
4248         Refactor duplicate code from load_file() and do_string() into lf_push()
4249
4250         * misc.h, misc.c: Add field cmdline to LFS to allow correct
4251         deallocation.  Check for infinite recursion.
4252
4253         * src/misc.c (prepare_call, expand_call_args, load_file):
4254         Refactor code related to the call command out of load_file().
4255
4256         * src/command.c (history_command): Use do_string() now that it can
4257         detect recursions.
4258
4259         * command.c, command.h, plot.c:
4260         Remove eval_depth and reset_eval_depth().  The new recursion detection
4261         in lf_push() should supercede this.
4262
4263 2009-12-18  Ethan A Merritt  <merritt@u.washington.edu>
4264
4265         * src/tables.h src/tables.c src/show.c src/save.c src/graph3d.h:
4266         Move all the DGRID3D_* options into a shared table.
4267
4268         * src/set.c: Replace the set_dgrid3d() routine with a version that uses
4269         a shared option table and handles input values contained in variables.
4270
4271         * docs/gnuplot.doc: bring dgrid3d syntax into line with the code
4272
4273 2009-12-12  Ethan A Merritt  <merritt@u.washington.edu>
4274
4275         * docs/plotstyles.gnu demo/bldg.png demo/barchart_art.dem Makefile.am.in
4276         New demo showing 
4277         a) input of png image using binary filetype=png
4278         b) rescaling rectangular images to act as plot elements
4279
4280 2009-12-11  Ethan A Merritt  <merritt@u.washington.edu>
4281
4282         * src/graphics.c (boundary):  Tweak auto-placement of plot borders so
4283         that it is closer to what was used prior to version 4.2.4.  This makes
4284         the right margin slightly wider than in 4.2.6, and the left margin
4285         slightly narrower.
4286
4287 2009-12-08  Ethan A Merritt  <merritt@u.washington.edu>
4288
4289         * term/emf.trm (ENHemf_put_text): Left/right/center justification of
4290         enhanced text was not taking into account the text angle. Now it does.
4291         Bugfix.
4292
4293         * src/breaders.c (gd_filetype_function): Make load of jpeg or gif image
4294         conditional on support by the installed libgd.
4295
4296         * src/unset.c (reset_command): Reset options to plot style filledcurve.
4297         Bug #2911203
4298
4299 2009-12-05  Ethan A Merritt  <merritt@u.washington.edu>
4300
4301         * src/command.c (undefine_command):
4302         'undefine  A* B' should not affect BFOO.
4303         Bugfix.
4304
4305         * src/internal.c (f_mult):  Check for integer overflow when performing
4306         internal integer multiplication.
4307         Bug #2908270
4308
4309 2009-12-04  Tatsuro Matsuoka  <tmacchant3@yahoo.co.jp>
4310
4311         * config/makefile.mgw config/makefile.cyg:  Create installation
4312         directories $(DESTDIR)/$(GNUPLOT_PS_DIR) $(DESTDIR)/$(GNUPLOT_LUA_DIR)
4313
4314 2009-12-04  Ethan A Merritt  <merritt@u.washington.edu>
4315
4316         * src/datafile.c (df_open): The variables that track matrix and binary
4317         data input (df_matrix, df_num_bin_records) must be re-inititialized
4318         for every file.
4319
4320 2009-12-03  Ethan A Merritt  <merritt@u.washington.edu>
4321
4322         * src/set.c (set_margin): Limit range of set ?margin at screen <foo>
4323         to 0 < foo < 1.
4324
4325         * src/datafile.c (f_stringcolumn) src/plot2d.c (eval_plots):
4326         Enforce restrictions on which plot types can accept matrix data.
4327
4328 2009-12-01  Ethan A Merritt  <merritt@u.washington.edu>
4329
4330         * config/makefile.cyg config/makefile.dj2 config/makefile.mgw
4331         config/makefile.os2 src/Makefile.am term/lua.trm term/Makefile.am.in:
4332         Install the script gnuplot-tikz.lua under $pkgdatadir rather than under
4333         $pkglibexecdir.
4334         Fixes build problems under cygwin and mingw.
4335         Thanks to Tatsuro Matsuoka.
4336
4337         * docs/gnuplot.doc:  Provide an example of using 'set palette defined'
4338         to approximate default MATLAB coloring.
4339         Thanks to Mike <mws115@usa.com>
4340
4341 2009-11-26  Ethan A Merritt  <merritt@u.washington.edu>
4342
4343         * src/datafile.c:  Remove unused global df_binary.
4344
4345 2009-11-16  Juergen Wieferink  <wieferink@freenet.de>
4346
4347         * src/command.c (do_string_and_free) src/misc.c (load_file): Fix memory
4348         issues of patch 2009-10-30 (SF Patch #2898455 and Bug #2895620).
4349
4350 2009-11-16  Petr Mikulik  <mikulik@physics.muni.cz>
4351
4352         * docs/gnuplot.doc: Fix support web page URL.
4353
4354         * src/show.c (show_version): Less info help lines.
4355
4356 2009-11-14  Philipp K. Janert <janert@ieee.org>
4357
4358         * src/command.c (undefine_command): Added support for wildcards in
4359         variable names.
4360
4361         * docs/gnuplot.doc: Associated documentation.
4362
4363 2009-11-12  Thomas Sefzick <thse@users.sourceforge.net>
4364
4365         * term/canvas.trm:  Fix initialization failure on non-unix platforms.
4366
4367 2009-11-11 Petr Mikulik  <mikulik@physics.muni.cz>
4368
4369         * docs/gnuplot.doc: Updated introduction.
4370
4371 2009-11-06  Allin Cottrell  <cottrell@wfu.edu>
4372
4373         * src/wxterminal/gp_cairo.c (gp_cairo_convert):  Work around a font
4374         problem in the win32 backend for pango/cairo character rendering.
4375         Conditional on WIN32 and libpango > 1.21, request rendering by freetype
4376         rather than win32. Fix suggested by cairo developer Behdad Esfahbod.
4377
4378 2009-11-04  Petr Mikulik  <mikulik@physics.muni.cz>
4379
4380         * src/term.c (enhanced_recursion): Replace in-line warnings sent to
4381         stderr by instead calling int_warn().
4382
4383 2009-11-02  Ethan A Merritt  <merritt@u.washington.edu>
4384
4385         * src/breader.c:  Give df_libgd_get_pixel() a valid return value even
4386         if it's only a dummy function because there is no png support.
4387
4388 2009-11-01  Petr Mikulik  <mikulik@physics.muni.cz>
4389
4390         * config/makefile.dj2 config/makefile.cyg config/makefile.mgw
4391         config/makefile.nt config/makefile.os2: Added GNUPLOT_JS_DIR.
4392
4393         * term/canvas.trm (CANVAS_graphics): Fix // vs \ and / for jsdir and
4394         Windows.
4395
4396 2009-10-31  Petr Mikulik  <mikulik@physics.muni.cz>
4397
4398         * src/show.c (show_version): Fit width of welcome messages into 80
4399         characters.
4400
4401 2009-10-31  Ethan A Merritt  <merritt@u.washington.edu>
4402
4403         * src/plot.h src/util.h:  Tell gcc that routines bail_to_command_line(),
4404         int_error(), graph_error(), and os_error() do not return. 
4405         #ifdef __GNUC__ ...  __attribute__((noreturn));
4406         This avoids spurious warnings about uninitialized variables from
4407         call sites like:
4408             int foo;
4409             if (END_OF_COMMAND || !(foo = try_to_get_string()))
4410                 int_error(c_token,"missing string");
4411             baz = foo;
4412
4413 2009-10-30  Juergen Wieferink  <wieferink@freenet.de>
4414
4415         * src/command.c, src/command.h (do_string, do_string_and_free):
4416         Use to different functions depending on whether the command string has
4417         to be freed.  Don't reset screen_ok.
4418
4419         * src/command.c, src/command.h (do_string_replot), src/fit.c
4420         (fit_interrupt): Use do_string() instead of do_line().
4421
4422         * src/command.c, src/misc.c, src/mouse.c, src/plot.c src/term.c:
4423         Adjust calls to do_string().
4424
4425         * src/plot2d.c src/graph3d.c src/gplt_x11.c term/lua.trm term/latex.trm
4426         src/wxterminal/gp_cairo_helpers.c:
4427         Silence gcc -Wall warnings.
4428
4429         * src/misc.c: Remove latin1 char.
4430
4431         * term/x11.trm: Silence valgrind warning.
4432
4433         * demo/vector.dem, demo/fit.dem: Add closing quotes.
4434
4435 2009-10-30  Petr Mikulik  <mikulik@physics.muni.cz>
4436
4437         * src/win/winmain.c (MyFPrintF MyVFPrintF MyPrintF): Workaround for
4438         vsnprintf(NULL,0,...) returning zero (MingW 3.4).
4439
4440         * docs/gnuplot.doc: Document "linetype <n>" option of linecolor and
4441         textcolor.
4442
4443 2009-10-28  Ethan A Merritt  <merritt@u.washington.edu>
4444
4445         * term/luz.trm term/lua/gnuplot-tikz.lua: Remove conditional tests
4446         for gnuplot version 4.3.  We're past that now.
4447
4448 2009-10-27  Ethan A Merritt  <merritt@u.washington.edu>
4449
4450         * src/save.c (save_fillstyle):  Repair missing brackets in if/else.
4451
4452 2009-10-26  Ethan A Merritt  <merritt@u.washington.edu>
4453
4454         * src/graphics.c src/axis.c src/term.c:  Replace in-line warnings sent
4455         to stderr by instead calling int_warn();
4456
4457 2009-10-24  David Marx  <itsdmarx@users.sourceforge.net>
4458
4459         * src/wxterminal/wxt_gui.cpp:  The pieces of a concatenated string
4460         literal must be wrapped in wxT() to satisfy the Sun Studio CC compiler.
4461         Bug #2883574
4462
4463 2009-10-24  Ethan A Merritt  <merritt@u.washington.edu>
4464
4465         * src/color.c (make_palette): Remove useless warning message.
4466
4467         * src/internal.c (f_power):  Check for integer overflow from i**j and
4468         return a real value (well, actually a complex value) if it is needed.
4469         Bug #2881789
4470
4471 2009-10-23  Ethan A Merritt  <merritt@u.washington.edu>
4472
4473         * src/plot2d.c (get_data): The mechanism for flagging "lc variable"
4474         was not being triggered for plot types VECTOR, CIRCLES, BOXES.
4475         Bug fix
4476
4477 2009-10-22  David Marx  <itsdmarx@users.sourceforge.net>
4478
4479         * src/wxterminal/wxt_gui.cpp:  _T() macro has been deprecated in favor
4480         of wxT().
4481         Bug #2883574
4482
4483 2009-10-18  Ethan A Merritt  <merritt@u.washington.edu>
4484
4485         * VERSION FAQ.pdf src/version.c
4486         config/makefile.mgw configure.in docs/doc2texi.el docs/titlepag.tex
4487
4488         Bump version of CVS development tree to 4.5