Thread Subject: R2009a: Setting default DefaultAxesBox property...

Subject: R2009a: Setting default DefaultAxesBox property...

From: Andrey Kazak

Date: 24 Jun, 2009 17:33:02

Message: 1 of 5

Greetings!

I run the following command:
  set(0,'DefaultAxesBox', 'off');

And even which the factory default DefaultAxesBox property value is "off" (according to help), I still have Box when I run simple plot...

Could you help me to figure out the reason of such behaviour please?

Subject: R2009a: Setting default DefaultAxesBox property...

From: Doug Schwarz

Date: 24 Jun, 2009 18:27:07

Message: 2 of 5

In article <h1to0e$mm0$1@fred.mathworks.com>,
 "Andrey Kazak" <AK@nospam.ru> wrote:

> Greetings!
>
> I run the following command:
> set(0,'DefaultAxesBox', 'off');
>
> And even which the factory default DefaultAxesBox property value is "off"
> (according to help), I still have Box when I run simple plot...
>
> Could you help me to figure out the reason of such behaviour please?


The plot function changes some of the properties of the axes. Box is
one, but there are others such as XLim and YLim. If you don't want that
to happen then you should use the line function instead of plot or else
just set the Box property back to 'off' after plotting with

  set(gca,'Box','off')

or

  box off

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Subject: R2009a: Setting default DefaultAxesBox property...

From: Andrey Kazak

Date: 24 Jun, 2009 18:40:19

Message: 3 of 5

Doug Schwarz <see@sig.for.address.edu> wrote in message <see-D91EDF.14270724062009@news.frontiernet.net>...
> In article <h1to0e$mm0$1@fred.mathworks.com>,
> "Andrey Kazak" <AK@nospam.ru> wrote:
>
> > Greetings!
> >
> > I run the following command:
> > set(0,'DefaultAxesBox', 'off');
> >
> > And even which the factory default DefaultAxesBox property value is "off"
> > (according to help), I still have Box when I run simple plot...
> >
> > Could you help me to figure out the reason of such behaviour please?
>
>
> The plot function changes some of the properties of the axes. Box is
> one, but there are others such as XLim and YLim. If you don't want that
> to happen then you should use the line function instead of plot or else
> just set the Box property back to 'off' after plotting with
>
> set(gca,'Box','off')
>
> or
>
> box off
>
> --
> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.

Thank you Doug!

How can I see full list of properties altered by the functions such as plot? Is it in help?

Subject: R2009a: Setting default DefaultAxesBox property...

From: Andrey Kazak

Date: 26 Jun, 2009 01:15:18

Message: 4 of 5

Any thoughts?...

Subject: R2009a: Setting default DefaultAxesBox property...

From: Andrey Kazak

Date: 3 Jul, 2009 05:57:01

Message: 5 of 5

Could anybody help me to find further details on the topic please?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
defaultaxesbox Sprinceana 3 Jul, 2009 02:25:16
property Sprinceana 3 Jul, 2009 02:25:16
axes Sprinceana 3 Jul, 2009 02:25:16
gui Sprinceana 3 Jul, 2009 02:25:16
rssFeed for this Thread

Contact us at files@mathworks.com