# HG changeset patch # User jwe # Date 1200606948 0 # Node ID ad944c3cc888de32c9e39cc59d8462b91e550f43 # Parent 4036b9a748867c179be0da3c305898e53842860c [3-0-0-branch @ 2008-01-17 21:55:48 by jwe] diff -r 4036b9a74886 -r ad944c3cc888 doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in Wed Jan 16 19:27:15 2008 +0000 +++ b/doc/interpreter/contributors.in Thu Jan 17 21:55:48 2008 +0000 @@ -94,6 +94,7 @@ Oyvind Kristiansen Piotr Krzyzanowski Volker Kuhlmann +Tetsuro Kurita Miroslaw Kwasniak Rafael Laboissiere Kai Labusch diff -r 4036b9a74886 -r ad944c3cc888 scripts/ChangeLog --- a/scripts/ChangeLog Wed Jan 16 19:27:15 2008 +0000 +++ b/scripts/ChangeLog Thu Jan 17 21:55:48 2008 +0000 @@ -1,3 +1,8 @@ +2008-01-17 Tetsuro KURITA + + * plot/print.m: Handle PDF output. + * plot/drawnow.m: Add "PDF" in a list of enhanced_terminals. + 2008-01-16 John W. Eaton * plot/__go_draw_axes__.m (__do_enhanced_option__): New subfunction. diff -r 4036b9a74886 -r ad944c3cc888 scripts/plot/drawnow.m --- a/scripts/plot/drawnow.m Wed Jan 16 19:27:15 2008 +0000 +++ b/scripts/plot/drawnow.m Thu Jan 17 21:55:48 2008 +0000 @@ -212,7 +212,7 @@ ## should not be interpreted in that case. if (compare_versions (__gnuplot_version__ (), "4.0", ">")) enhanced_terminals = {"aqua", "dumb", "png", "jpeg", "gif", "pm", ... - "windows", "wxt", "svg", "postscript", "x11"}; + "windows", "wxt", "svg", "postscript", "x11", "pdf"}; else enhanced_terminals = {"x11", "postscript"}; endif diff -r 4036b9a74886 -r ad944c3cc888 scripts/plot/print.m --- a/scripts/plot/print.m Wed Jan 16 19:27:15 2008 +0000 +++ b/scripts/plot/print.m Thu Jan 17 21:55:48 2008 +0000 @@ -86,6 +86,8 @@ ## PBMplus ## @item svg ## Scalable vector graphics +## @item pdf +## Portable document format ## @end table ## ## Other devices are supported by "convert" from ImageMagick. Type @@ -219,7 +221,7 @@ dev_list = {"aifm", "corel", "fig", "png", "pbm", "dxf", "mf", "svg", ... "hpgl", "ps", "ps2", "psc", "psc2", "eps", "eps2", ... "epsc", "epsc2", "emf", "pstex", "pslatex", ... - "epslatex", "epslatexstandalone"}; + "epslatex", "epslatexstandalone", "pdf"}; convertname = ""; [idx, errmsg] = cellidx (dev_list, dev); if (! idx) @@ -369,6 +371,28 @@ options = strcat (" size ", size); endif new_terminal = strcat ("svg", options); + + elseif (strcmp (dev, "pdf")) + ## Portable Document format + options = " "; + if (use_color >= 0) + options = "color"; + else + options = "mono"; + endif + if (force_solid > 0) + options = strcat (options, " solid"); + elseif (force_solid < 0) + options = strcat (options, " dashed"); + endif + if (! isempty (font)) + options = strcat (options, "\"", font, "\" "); + endif + if (! isempty (fontsize)) + options = strcat (options, " ", fontsize); + endif + + new_terminal = strcat ("pdf ", options); endif