(1) Improved support for gnuplot "mono", and "color" options. * __gnuplot_drawnow__.m: Pass variable "mono" into gnuplot_set_term(). (gnuplot_set_term): Accept "mono" variable and supply "mono" or "color" to the gnuplot command string based upon the availability of those options. Change "nargin == 5" to "nargin >= 5" where appropriate. * __gnuplot_draw_axes__.m: Remove redundant !mono in conditional test for markerfacecolor and markeredgecolor. (2) Avoid conflict between axes and figure backgroud colors for gnuplot. * __gnuplot_draw_figure__: Avoid drawing the axes background rectangle if the color is similar to that of the plot background color dependent upon mono setting. (3) Move the special condition for the lua terminal to __gnuplot_print__.m. * __gnuplot_drawnow__.m: Remove special condition for lua. * __gnuplot_print__.m: Add special condition for lua. (4) Add support for gnuplot terminals {"emtex", "latex", "epslatex", "cairotex", "pdflatex", "pdflatexstandalone"} * print.m (print): Clarify in the help text that it is pslatexstandalone, that isn't available in gnuplot. pdflatex and pdflatexstandalone device outputs have been added via the cairolatex terminal. Also indicate paperunits and paperposition control the size latex-based devices. Add comments about these possible devices: eepic, pstricks, texdraw, emtex, latex, cairolatex, tikzstandalone, eepic, pstricks, texdraw, tkcanvas and canvas. * __gnuplot_has_terminal__.m (__gnuplot_has_terminal__): Map term pdflatex to cairolatex before checking gnuplot support. * __gnuplot_print__.m (__gnuplot_print__): Add "emtex", "latex", "epslatex", "cairolatex", "pdflatex" and "pdflatexstandalone" to the latex devices case. Do better parse test for suffix. For term based on "pdflatex", map to "cairolatex pdf". For the tex-based cases make figure paperunits and position control the eventual size after processing with latex. Add "lua" and "tikzstandalone" to the "tikz" case and add "standalone" option if warranted. If the term is "lua", map to tikz (code from __gnuplot_drawnow__.m). (5) Coding improvements to __gnuplot_draw_axes__.m * __gnuplot_draw_axes__.m (__gnuplot_draw_axes__): Place a newline character after all binary data has been written to avoid gnuplot dropping the first character of the followup gnuplot command. (create_fontspec): Add an empty string test to the conditional for ",%d" case. (__gnuplot_write_data__): Remove incorrect, speculative FIXME comment about efficiency. Increase efficiency slightly by using logical indexing instead of find(). (get_fontname_and_size): Make unknown/default font an empty string, not "{}". (6) Coding improvements to __gnuplot_draw_axes__ * __gnuplot_draw_axes__.m (__gnuplot_draw_axes__): Place a newline character after all binary data has been written to avoid gnuplot dropping the first character of the followup gnuplot command. Remove redundant !mono in conditional test for markerfacecolor and markeredgecolor. (create_fontspec): Add an empty string test to the conditional for ",%d" case. (__gnuplot_write_data__): Remove incorrect, speculative FIXME comment about efficiency. Increase efficiency slightly by using logical indexing instead of find(). (get_fontname_and_size): Make unknown/default font an empty string, not "{}". (7) Font handling improvements for gnuplot. * __gnuplot_print__.m (font_spec): Add a comma before the numerical fontsize specification string. Check that the font properties aren't empty before using them as strings. (8) For gnuplot, move "gif", "jpeg" and "png" to the "pdfcairo" case. __gnuplot_print__.m: Move "gif", "jpeg" and "png" to the "pdfcairo" case. (9) Add support for additional gnuplot terminals and remove ghostscript dependence from other devices. * __gnuplot_print__.m: Add "epscairo" and "eepic" to the "pdfcairo" case. Add "jpeg", "jpg", "postscript" and "tkcanvas" to the "canvas" case. If the formats/languages aliases, i.e., postscript device with external translation, "png16m" or "pdfwrite" are detected, use a gnuplot terminal if possible before utilizing a postscript conversion. (10) Fix indexing bugs in __print_parse_pots__.m * __print_parse_opts__.m: Fix several bugs where strings indexed with {a:b} should be indexed with (a:b). Use !any(.) rather than all(!.).