Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Figure axes disappear when I set background to white

Subject: Figure axes disappear when I set background to white

From: Rohan

Date: 15 Apr, 2011 15:52:05

Message: 1 of 6

Sorry if posted elsewhere.
The only deviation from the default I have made is:

set(fh,'color', 'white');

so fh = figure(1);
set(fh, ‘color’, ‘white’);

This does change the background to white (from gray), which is my intention, but it causes the Y and X axes (but not their right and top "box" counterparts) to disappear or what I assume is turn them to white.

I tried using the set(gcf,'color','white') command, but it resulted in the same. I'm a total noob, so any guidance is greatly appreciated. Thanks

Rohan

Subject: Figure axes disappear when I set background to white

From: Rohan

Date: 15 Apr, 2011 18:34:04

Message: 2 of 6

After toying with the code, I found that in fact my use of 'linesmoothing', 'on' causes the Y and X axes (but not the rest of the box) to disappear. Anyone else find this and/or knows a way to get around this problem?



"Rohan " <rohan.gidvani@gmail.com> wrote in message <io9pj5$icd$1@fred.mathworks.com>...
> Sorry if posted elsewhere.
> The only deviation from the default I have made is:
>
> set(fh,'color', 'white');
>
> so fh = figure(1);
> set(fh, ‘color’, ‘white’);
>
> This does change the background to white (from gray), which is my intention, but it causes the Y and X axes (but not their right and top "box" counterparts) to disappear or what I assume is turn them to white.
>
> I tried using the set(gcf,'color','white') command, but it resulted in the same. I'm a total noob, so any guidance is greatly appreciated. Thanks
>
> Rohan

Subject: Figure axes disappear when I set background to white

From: Sven Schoeberichts

Date: 7 Aug, 2012 23:13:18

Message: 3 of 6

I am experiencing the same problem. Do you have an answer how to fix it?

Subject: Figure axes disappear when I set background to white

From: dpb

Date: 7 Aug, 2012 23:52:18

Message: 4 of 6

On 8/7/2012 6:13 PM, Sven Schoeberichts wrote:
> I am experiencing the same problem. Do you have an answer how to fix it?

_WHAT_ background color?

You just posted this w/ no context obviously in browsing some existing
thread but w/o context can't say much other than just 'Huh?'

--

Subject: Figure axes disappear when I set background to white

From: Sven Schoeberichts

Date: 10 Aug, 2012 20:26:13

Message: 5 of 6

dpb <none@non.net> wrote in message <jvs9np$cr9$1@speranza.aioe.org>...
> On 8/7/2012 6:13 PM, Sven Schoeberichts wrote:
> > I am experiencing the same problem. Do you have an answer how to fix it?
>
> _WHAT_ background color?
>
> You just posted this w/ no context obviously in browsing some existing
> thread but w/o context can't say much other than just 'Huh?'
>
> --

The question is:

"After toying with the code, I found that in fact my use of 'linesmoothing', 'on' causes the Y and X axes (but not the rest of the box) to disappear. Anyone else find this and/or knows a way to get around this problem?"

A picture might help explain:

http://img571.imageshack.us/img571/7346/screenshotfrom201208102.png

Subject: Figure axes disappear when I set background to white

From: dpb

Date: 11 Aug, 2012 00:12:12

Message: 6 of 6

On 8/10/2012 3:26 PM, Sven Schoeberichts wrote:
...

> "After toying with the code, I found that in fact my use of
> 'linesmoothing', 'on' causes the Y and X axes (but not the rest of the
> box) to disappear. Anyone else find this and/or knows a way to get
> around this problem?"
>
> A picture might help explain:
>
> http://img571.imageshack.us/img571/7346/screenshotfrom201208102.png

Sample code that reproduces the problem would help more...

I know of no 'linesmoothing' property but I do have an older release.
But a search of current documentation online returned zero hits...

--

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us