[16960] in Athena Bugs

home help back first fref pref prev next nref lref last post

sgi 8.2.19: matlab

daemon@ATHENA.MIT.EDU (Richard J Nelson)
Mon Jul 12 17:03:33 1999

Message-Id: <199907122103.RAA14563@m4-035-8.mit.edu>
To: bugs@MIT.EDU
Date: Mon, 12 Jul 1999 17:03:21 EDT
From: Richard J Nelson <rjnelson@MIT.EDU>

System name:		m4-035-8.mit.edu
Type and version:	IP32 8.2.19
Display type:		CRM

What were you trying to do?
  From within MATLAB 5.3, I was trying to force the graphics object 'axes'
  to print in white--instead of the default (black), or in any other color.

What's wrong?
  Normally, when something is plotted in MATLAB (using, say, the 'plot'
  command), the graphics object 'axes' is generated in black.  It is
  usually possible to change this color by using 'set(gca)'.  For example,
  suppose I want to plot y=sin(x), and I type:

    x=[0:0.01:1]*2*pi;
    y=sin(x);
    figure(1);
    plot(x,y);
    set(gca,'Box','off');

  I want to print a hard copy of this plot, but I decide that I don't want the
  y-axis to appear on the plot: just the x-axis and the plot.  So I try:

    set(gca,'YColor',[1 1 1]);

  In the graphics window I see the y-axis color change from black to white.
  (The color map has black as [0 0 0] and white as [1 1 1].)  Things LOOK
  like they should, but they do not PRINT like they should: the y-axis still
  prints in black.

What should have happened:
  When I print the graph (using 'print -P<printername>'), the plot should
  have no markings along the y-axis: no tick marks, no tick labels, and no
  axis line.

  Incidentally, removing all tick marks (as in 'set(gca,'YTick',[]);') does
  remove the ticks, but the axis still prints.  Also, MATLAB will not allow
  you to define a zero width for the axis itself
  (i.e., 'set(gca,'LineWidth',0);') is not allowed.

  Finally, I have noticed that this is NOT a problem in MATLAB version 5.1, but
  only in versions 5.2 and 5.3.

Please describe any relevant documentation references:
	[Please replace this line with your information.]

home help back first fref pref prev next nref lref last post