Mercurial > hg > octave-terminal
changeset 11616:ad944c3cc888 release-3-0-x
[3-0-0-branch @ 2008-01-17 21:55:48 by jwe]
author | jwe |
---|---|
date | Thu, 17 Jan 2008 21:55:48 +0000 |
parents | 4036b9a74886 |
children | ca0cbc46abce |
files | doc/interpreter/contributors.in scripts/ChangeLog scripts/plot/drawnow.m scripts/plot/print.m |
diffstat | 4 files changed, 32 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/contributors.in +++ b/doc/interpreter/contributors.in @@ -94,6 +94,7 @@ Oyvind Kristiansen Piotr Krzyzanowski Volker Kuhlmann +Tetsuro Kurita Miroslaw Kwasniak Rafael Laboissiere Kai Labusch
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 Tetsuro KURITA <tkurita@mac.com> + + * plot/print.m: Handle PDF output. + * plot/drawnow.m: Add "PDF" in a list of enhanced_terminals. + 2008-01-16 John W. Eaton <jwe@octave.org> * plot/__go_draw_axes__.m (__do_enhanced_option__): New subfunction.
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -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
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -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