Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: modify surf default behavior
Date: Thu, 4 Jun 2009 16:11:01 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 38
Message-ID: <h08rml$fgn$1@fred.mathworks.com>
References: <h06cdq$b1h$1@fred.mathworks.com> <h08nre$m1d$1@fred.mathworks.com> <h08p62$lt7$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244131861 15895 172.30.248.38 (4 Jun 2009 16:11:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 4 Jun 2009 16:11:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:544848


"Alan B" <monguin61@yahoo.com> wrote in message <h08p62$lt7$1@fred.mathworks.com>...
> > Why not just write your own wrapper function? Call it
> > mysurf, or something like that. This way surf will work
> > as it is designed for others, or for the case in the future
> > when you don't want that. (It will happen too.)
> > 
> > John
> > 
> > (I'm going to write my own wrapper for surf. I'll call
> > it smurf. Of course, it will always use a pure blue
> > colormap.)
> 
> Of course you're correct here, if I modify the default behavior, SOMETHING will eventually break. Its more a question of curiosity. Incidentally, I have never wanted to use surf without axis vis3d, as far as I can remember. Do you have an example where that would be desired?
> 

UNLESS I intend to rotate a 3-d figure, I prefer surfs
in their default shape. axis vis3d changes that shape,
leaving a lot of gray space in the figure that is unused.


> There are a few other functions with behavior that bothers me. For example, 'open nonexistentFunction' errors, and since I have 'dbstop if error' enabled, every time I make a typo using 'open' at the command line, I get open.m needlessly opening up in my editor. My personal preference would be a warning or message instead of an error, and I would like to continue using 'open' instead of 'myopen' simply because I'm lazy. I have a hard time imagining how making that change might break anything. (I also wouldn't mind being able to enable 'dbstop if error' on a by-function basis)
> 
> If this can't be done, its not a big deal. Just thought I'd ask.

Many of these things can be controlled with preferences
that you can set, and that list is growing with every
release.

I'll admit that my solution is usually to customize things
for my preferences. I mentioned the other day that I always
seem to type "close all" with no space in the middle. So
I wrote a closeall function for my own use.

I rarely leave "dbstop if error" enabled permanently for
just these reasons though. It is convenient when I need it,
but the rest of the time it slows me down.

John