[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48873] Matlab incompatibilities in plot routi

From: Rik
Subject: [Octave-bug-tracker] [bug #48873] Matlab incompatibilities in plot routines revealed through dump_plot_demos
Date: Mon, 19 Sep 2016 20:54:40 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #33, bug #48873 (project octave):

@Panxto: I think you're right that we probably want to disable Graphics
Anti-aliasing.  However, could you take a look at modifying the existing
configuration, rather than hardcoding the values?  There is currently code
that allows the user themselves to set these values as options when they
print.  From 'help print'

          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
          N are 1, 2, or 4.

And if I grep for antialias in scripts/plot/util/private I find

__ghostscript__.m:36:  opts.antialiasing = false;
__ghostscript__.m:37:  opts.antialiasing_textalphabits = 4;,
__ghostscript__.m:38:  opts.antialiasing_graphicsalphabits = 4;
__ghostscript__.m:75:  if (opts.antialiasing && isempty (strfind (opts.device,
__ghostscript__.m:78:                       gs_opts, fix
__ghostscript__.m:79:                       fix
__print_parse_opts__.m:51:  arg_st.ghostscript.antialiasing = false;
__print_parse_opts__.m:52:  arg_st.ghostscript.antialiasing_textalphabits =
__print_parse_opts__.m:53:  arg_st.ghostscript.antialiasing_graphicsalphabits
= 4;
arg_st.ghostscript.antialiasing_textalphabits = str2num (arg(end));
arg_st.ghostscript.antialiasing_graphicsalphabits = str2num (arg(end));
__print_parse_opts__.m:310:    arg_st.ghostscript.antialiasing = true;
__print_parse_opts__.m:322:    arg_st.ghostscript.antialiasing = false;

Probably, all that needs to be done is to change the documentation and the
initial values of 

antialiasing_graphicsalphabits = 4


antialiasing_graphicsalphabits = 1

I also see there is a spare ',' at the end of __gostscript__.m:37 that should
be removed.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]