[Top][All Lists]

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

Re: Print Problem: Figure Background won't get printed

From: Mike Miller
Subject: Re: Print Problem: Figure Background won't get printed
Date: Sun, 21 Feb 2016 13:09:49 -0800
User-agent: Mutt/1.5.24 (2015-08-30)

On Sun, Feb 21, 2016 at 11:07:33 -0800, aikon96 wrote:
> Yeah thats exactly the point.
> I changed the color of the X/Y-ticks to white with this lines:
> set(gca, 'YColor', [1 1 1])
> set(gca, 'XColor', [1 1 1]) 
> So, when I am plotting this figure, I get exactly what I want (first pic).
> White labeled ticks, black background of figure. So black background white
> text -> ticks are visible.
> After doing this command:
> print('test.png') 
> The just plotted figure is getting converted to png. But the problem is, the
> black background isn't there anymore,. The background somehow changed from
> black to white, but I don't know why. So white text on white background is
> not visible anymore...

Yes, I'm seeing the same behavior. The background color of the figure
does not seem to be respected in printed plots. I don't know whether
this is the expected behavior in Matlab or not.

Another example:

  plot (0:10, 0:10);
  set (gcf, "color", 0.5 * ones (1, 3));
  set (gca, "color", "none");
  print test.png;


reply via email to

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