# HG changeset patch # User Pantxo Diribarne # Date 1474322643 -7200 # Node ID 34f98c1e4d568a59e6aecb2eb6abe0a9a5c34419 # Parent b3268dbf97818082995fbe82da4c691046db5cdf Disable anti-aliasing for graphics in raster outputs (bug #48873). * print.m: Document that by default antialiasing is enabled for text only * __ghostscript__.m: Change default value for ghostscript option -GraphicsAlphaBits to 1. * __print_parse_opts__.m: likewise diff -r b3268dbf9781 -r 34f98c1e4d56 scripts/plot/util/print.m --- a/scripts/plot/util/print.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/print.m Tue Sep 20 00:04:03 2016 +0200 @@ -79,8 +79,8 @@ ## Octave is able to produce output for various printers, bitmaps, and ## vector formats by using Ghostscript. For bitmap and printer output ## anti-aliasing is applied using Ghostscript's TextAlphaBits and -## GraphicsAlphaBits options. The default number of bits for each is 4. -## Allowed values for @var{N} are 1, 2, or 4. +## GraphicsAlphaBits options. The default number of bits are 4 and 1 +## respectively. Allowed values for @var{N} are 1, 2, or 4. ## ## @item -d@var{device} ## The available output format is specified by the option @var{device}, and diff -r b3268dbf9781 -r 34f98c1e4d56 scripts/plot/util/private/__ghostscript__.m --- a/scripts/plot/util/private/__ghostscript__.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/private/__ghostscript__.m Tue Sep 20 00:04:03 2016 +0200 @@ -34,8 +34,8 @@ opts.device = ""; opts.epscrop = false; opts.antialiasing = false; - opts.antialiasing_textalphabits = 4;, - opts.antialiasing_graphicsalphabits = 4; + opts.antialiasing_textalphabits = 4; + opts.antialiasing_graphicsalphabits = 1; opts.resolution = 150; opts.papersize = ""; opts.pageoffset = [0 0]; diff -r b3268dbf9781 -r 34f98c1e4d56 scripts/plot/util/private/__print_parse_opts__.m --- a/scripts/plot/util/private/__print_parse_opts__.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/private/__print_parse_opts__.m Tue Sep 20 00:04:03 2016 +0200 @@ -50,7 +50,7 @@ arg_st.ghostscript.resolution = 150; arg_st.ghostscript.antialiasing = false; arg_st.ghostscript.antialiasing_textalphabits = 4; - arg_st.ghostscript.antialiasing_graphicsalphabits = 4; + arg_st.ghostscript.antialiasing_graphicsalphabits = 1; arg_st.loose = false; arg_st.lpr_binary = __quote_path__ (__find_binary__ ("lpr")); arg_st.name = "";