[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to Prefer cairo, if available
From: |
Thomas D. Dean |
Subject: |
Patch to Prefer cairo, if available |
Date: |
Thu, 06 Aug 2015 13:30:28 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
This seems to work on my system,
Ubuntu 14.04,
octave 4.1.0+,
gnuplot 5.1 patchlevel 0
I added preferences for cairo for pdf and png.
> hg diff
diff -r 011a364b4d78 scripts/plot/util/private/__print_parse_opts__.m
--- a/scripts/plot/util/private/__print_parse_opts__.m Fri Jun 05
15:51:04 2015 -0400
+++ b/scripts/plot/util/private/__print_parse_opts__.m Thu Aug 06
13:27:17 2015 -0700
@@ -297,6 +297,18 @@
arg_st.formatted_for_printing = true;
endif
+ ## fixups for gnuplot - prefer pngcairo over png
+ ## and pdfcairo over pdf
+ if (strcmp (arg_st.devopt, "png"))
+ if (__gnuplot_has_terminal__ ("pngcairo"))
+ arg_st.devopt = "pngcairo" ;
+ endif
+ elseif (strcmp (arg_st.devopt, "pdf"))
+ if (__gnuplot_has_terminal__ ("pdfcairo"))
+ arg_st.devopt = "pdfcairo" ;
+ endif
+ endif
+
aliases = gs_aliases ();
if (any (strcmp (arg_st.devopt, fieldnames (aliases))))
arg_st.devopt = aliases.(arg_st.devopt);
Tom Dean
- Print Plot Results in all Black plot in file, Thomas D. Dean, 2015/08/03
- Re: Print Plot Results in all Black plot in file, Mike Miller, 2015/08/03
- Re: Print Plot Results in all Black plot in file, Markus Appel, 2015/08/03
- Re: Print Plot Results in all Black plot in file, Thomas D. Dean, 2015/08/04
- Re: Print Plot Results in all Black plot in file, Dmitri A. Sergatskov, 2015/08/04
- Re: Print Plot Results in all Black plot in file, Thomas D. Dean, 2015/08/04
- Re: Print Plot Results in all Black plot in file, Ben Abbott, 2015/08/04
- Patch to Prefer cairo, if available,
Thomas D. Dean <=