Re: OctPlot ver 0.2.0 released

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: OctPlot ver 0.2.0 released

Rafael Laboissiere
* Shai Ayal <[hidden email]> [2004-11-21 21:31]:

> >2) Running the demo in README fails with the following error message:
> >
> >   octave:1> setup_octplot
> >   octave:2> h=plot(sin( (0:10000)/10000*2*pi),"b-");
> >   error: `octplot_command' undefined near line 40 column 10
> >   error: evaluating assignment expression near line 40, column 8
> >   error: evaluating for command near line 39, column 3
> >   error: called from `get' in file `/var/tmp/octplot/src/get.m'
> >   error: evaluating assignment expression near line 22, column 7
> >   error: called from `gcf' in file `/var/tmp/octplot/src/gcf.m'
> >   error: evaluating assignment expression near line 27, column 6
> >   error: called from `gca' in file `/var/tmp/octplot/src/gca.m'
> >   error: evaluating assignment expression near line 112, column 6
> >   error: called from `plot' in file `/var/tmp/octplot/src/plot.m'
> >   error: evaluating assignment expression near line 2, column 2
> >
> >   The patch attached below fixes the problem.
>
> this runs ok with my 2.1.57. is this some feature of later releases tahe
> end does not work in cells ? I fixed this in cvs since it will do no harm

Using end for indexing cells does not work here:

$ octave-config --version
2.1.63
$ octave -q
octave:1> a={1,2,3};
octave:2> a{end}
error: invalid use of end
error: evaluating argument list element number 1

If this did work in 2.1.57, then its failing in 2.1.63 is probably
unintended.  I am Cc:ing this message to octave-maintainers.

> Thanks for the contour algorithm. I am kind of hoping that OpenGL will
> take care of me for 3D plots and shading. If not, I will turn to PLplot.
>
> btw, how did you solve the problem of displaying rotated text fot the
> axis labels ?

The xwin driver of PLplot uses its own Hershey fonts, which are generated by
regular plline commands.  No X11 fonts are used.

--
Rafael


Reply | Threaded
Open this post in threaded view
|

Re: OctPlot ver 0.2.0 released

John W. Eaton-6
On 21-Nov-2004, Rafael Laboissiere <[hidden email]> wrote:

| Using end for indexing cells does not work here:
|
| $ octave-config --version
| 2.1.63
| $ octave -q
| octave:1> a={1,2,3};
| octave:2> a{end}
| error: invalid use of end
| error: evaluating argument list element number 1
|
| If this did work in 2.1.57, then its failing in 2.1.63 is probably
| unintended.  I am Cc:ing this message to octave-maintainers.

Please try the following patch.

Thanks,

jwe


src/ChangeLog:

2004-11-22  John W. Eaton  <[hidden email]>

        * pt-arg-list.cc (tree_argument_list::convert_to_const_vector):
        Check to see whether object is a function or function handle
        instead of constant.
 

Index: src/pt-arg-list.cc
===================================================================
RCS file: /usr/local/cvsroot/octave/src/pt-arg-list.cc,v
retrieving revision 1.22
diff -u -r1.22 pt-arg-list.cc
--- src/pt-arg-list.cc 17 Nov 2004 15:27:54 -0000 1.22
+++ src/pt-arg-list.cc 22 Nov 2004 05:36:04 -0000
@@ -174,7 +174,9 @@
   // way of asking an octave_value object this question?
 
   bool stash_object = (list_includes_magic_end
-       && object && object->is_constant ());
+       && object
+       && ! (object->is_function ()
+     || object->is_function_handle ()));
 
   if (stash_object)
     {