annotate scripts/mkinstalldirs @ 16993:78f57b14535c

Overhaul ez* family of plot functions. * scripts/plot/ezcontour.m, scripts/plot/ezcontourf.m, scripts/plot/ezmesh.m, scripts/plot/ezmeshc.m, scripts/plot/ezpolar.m, scripts/plot/ezsurfc.m: Redo docstring. Match function output names to docstring. * scripts/plot/ezplot.m: Add %!demo block with sinc function. Redo docstring. Match function output names to docstring. scripts/plot/ezplot3.m: Add %!demo block showing 'animate' option. Redo docstring. Match function output names to docstring. * scripts/plot/ezsurf.m: Add %!demo block showing 'circ' argument. Redo docstring. Match function output names to docstring. * scripts/plot/private/__ezplot__.m: Implement 'circ' option for ezsurf, ezmesh. Implement 'animate' option for ezplot3. Implement new algorithm for finding valid axis setting for mesh, surf, contour plots based on function gradient. Eliminate complex Z values along with singularities because these are not plottable by mesh, surf. Implement Matlab-compatible 2-pass approach to finding valid domain for plot. Use 500 points for point-style plot functions ezplot, ezplot3, ezpolar rather than previous 60 for a smoother plot. Use better regexprep() calls to format "pretty print" title string. Relax input checking and allow 3rd parametric function to be a function of 1 variable only. Clean up code and use Octave coding conventions.
author Rik <rik@octave.org>
date Wed, 17 Jul 2013 10:09:44 -0700
parents 6929a31e7624
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2334
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
1 #!/bin/sh
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
2 # mkinstalldirs --- make directory hierarchy
3285
6929a31e7624 [project @ 1999-10-13 21:59:11 by jwe]
jwe
parents: 2334
diff changeset
3 # Author: Noah Friedman <friedman@gnu.org>
2334
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
4 # Created: 1993-05-16
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
5 # Last modified: Wed Jan 25 09:35:21 1995
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
6 # Public domain
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
7
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
8 errstatus=0
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
9
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
10 dirmode=0755
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
11
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
12 for file in ${1+"$@"} ; do
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
13 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
14 shift
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
15
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
16 pathcomp=
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
17 for d in ${1+"$@"} ; do
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
18 pathcomp="$pathcomp$d"
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
19 case "$pathcomp" in
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
20 -* ) pathcomp=./$pathcomp ;;
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
21 esac
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
22
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
23 if test ! -d "$pathcomp"; then
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
24 echo "mkdir $pathcomp" 1>&2
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
25 mkdir "$pathcomp" || errstatus=$?
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
26 echo "chmod $dirmode $pathcomp" 1>&2
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
27 chmod $dirmode "$pathcomp" || errstatus=$?
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
28 fi
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
29
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
30 pathcomp="$pathcomp/"
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
31 done
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
32 done
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
33
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
34 exit $errstatus
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
35
893481f3a763 [project @ 1996-07-19 02:42:08 by jwe]
jwe
parents:
diff changeset
36 # mkinstalldirs ends here