# HG changeset patch # User Ben Abbott # Date 1282952329 14400 # Node ID 811f8611995d94d8c9583aa4ef65456686ecb097 # Parent 888c75785221266ff84cf62af41596b65585ea72 __print_parse_opts__.m: Fix tests. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-08-27 Ben Abbott + + * plot/__print_parse_opts__.m: Fix tests. + 2010-08-27 Jordi GutiƩrrez Hermoso * plot/__go_draw_axes__.m (__calc_dimensions__): Delete. diff --git a/scripts/plot/__print_parse_opts__.m b/scripts/plot/__print_parse_opts__.m --- a/scripts/plot/__print_parse_opts__.m +++ b/scripts/plot/__print_parse_opts__.m @@ -155,10 +155,12 @@ endif endif - if (any (strcmp ({"ps", "ps2", "eps", "eps2"}, arg_st.devopt))) - arg_st.use_color = -1; - else - arg_st.use_color = 1; + if (arg_st.use_color == 0) + if (any (strcmp ({"ps", "ps2", "eps", "eps2"}, arg_st.devopt))) + arg_st.use_color = -1; + else + arg_st.use_color = 1; + endif endif if (arg_st.tight_flag) @@ -201,7 +203,8 @@ "pcx", "pcx", "pcx", "pgm", "pgm", ... "ppm", "ppm", "tex"}; - if (strcmp (get (arg_st.figure, "__backend__"), "gnuplot") + if (isfigure (arg_st.figure) + && strcmp (get (arg_st.figure, "__backend__"), "gnuplot") && __gnuplot_has_feature__ ("epslatex_implies_eps_filesuffix")) suffixes(strncmp (dev_list, "epslatex", 8)) = {"eps"}; endif