Processed: Re: Bug#453128: octave-plplot: doesn't work at all

2007-11-29 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> severity 453128 important
Bug#453128: octave-plplot: doesn't work at all
Severity set to `important' from `grave'

> retitle 453128 octave-plplot: usage documentation out of date; hard to setup
Bug#453128: octave-plplot: doesn't work at all
Changed Bug title to `octave-plplot: usage documentation out of date; hard to 
setup' from `octave-plplot: doesn't work at all'.

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#453128: octave-plplot: doesn't work at all

2007-11-29 Thread Wesley J. Landaker
severity 453128 important
retitle 453128 octave-plplot: usage documentation out of date; hard to setup
thanks

On Thursday 29 November 2007 09:18:16 Andrew Ross wrote:
> Can you confirm exactly what you are doing? The octave instructions
> are from upstream and not Debian specific. They are also out of date (as
> it says at the top of the file). Under Debian the basic commands are in
> the path. You don't need to add anything to .octaverc.

The error message I showed was exactly what I got when I followed the 
directions as well as I could.

My .octaverc was:
addpath("/usr/share/plplot_octave/")

I want plplot to be the default, so I followed those directions. I used 
addpath instead of the LOADPATH that the documentation says to use (mostly 
talking about INSTALL.octave.gz and USAGE.octave.gz).

The documentation makes it very clear that the usual and standard way to use 
plplot is to set it up in your .octaverc to be the default. It only 
mentions toggle_plplot_use as an alternate way to do it if you wanted to 
also be able to keep using gnuplot (which I don't).

> All you need to do is start octave, type toggle_plplot_use to switch
> from gnuplot plotting (default) to octave plotting, then type the plot
> commands. You need to make sure you install the required drivers. For
> interactive display this is likely to be plplot9-driver-xwin.

Okay, I removed my ~/.octaverc and tried it this way, and it seemed to work, 
so this isn't a grave bug--I've adjusted accordingly. However, it's still 
very difficult to get it working without better documentation.

The way you suggested works, but doesn't make plplot the default, which is 
the desired effect. (Calling "toggle_plplot_use" in .octaverc does appears 
to do it, though).

From USAGE.octave.gz, it says:

"""
You must add the plplot_octave script installation directory to Octave
LOADPATH *before* the standard Octave LOADPATH. The best way to do this
is to create a .octaverc file in your home directory. By default

LOADPATH ="/share/plplot_octave//:"

If you also want to use Octave's standard plotting package, gnuplot, you
must set LOADPATH as:

LOADPATH ="/share/plplot_octave//:\
  /share/octave//:"

and use the command "toggle_plplot_use" to switch between the two plot 
packages.
"""

The key is that I want plplot to be the default--which was easy with 
octave2.1--I don't want to call toggle_plplot_use in my programs. The 
current documentation makes it sound like this is easy to do, but I still 
can't make it work with octave2.9 unless I use the toggle_plplot_use method 
you just suggested. It does work if I put toggle_plplot_use in 
my .octaverc. That's okay with me, it just doesn't match how it's 
documented.

> I agree the documentation is out of date and I will correct it upstream.
> toggle_plplot_use does not use LOADPATH on octave2.9 it uses addpath
> instead.

I adjusted the severity and retitled the bug, since this is mainly a 
documentation issue.

Anyway, thanks for the help; I'm glad to have this working for myself. But 
it would be nice if it clearly documented how to get it to work by default, 
otherwise it's a regression from use with octave2.1, and it may be hard for 
other users in the future unless it's updated.

Thanks! =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Bug#453128: octave-plplot: doesn't work at all

2007-11-29 Thread Andrew Ross
On Tue, Nov 27, 2007 at 08:26:23AM -0700, Wesley J. Landaker wrote:
> octave-plplot doesn't work at all, e.g.:
> 
> octave:1> plot([1:10])
> usage: plot (y)
>plot (x, y, ...)
>plot (x, y, fmt, ...)   plot (x, y, property, value, ...)
> error: evaluating if command near line 28, column 3
> error: called from `__plt__' in file 
> `/usr/share/octave/2.9.17/m/plot/__plt__.m'
> error: called from `plot' in file `/usr/share/plplot_octave//plot.m'

Octave-plplot 5.8.0RC1~3 works fine for me for i386 on testing / 
unstable.

Can you confirm exactly what you are doing? The octave instructions 
are from upstream and not Debian specific. They are also out of date (as
it says at the top of the file). Under Debian the basic commands are in
the path. You don't need to add anything to .octaverc.

All you need to do is start octave, type toggle_plplot_use to switch
from gnuplot plotting (default) to octave plotting, then type the plot 
commands. You need to make sure you install the required drivers. For
interactive display this is likely to be plplot9-driver-xwin.

I agree the documentation is out of date and I will correct it upstream.
toggle_plplot_use does not use LOADPATH on octave2.9 it uses addpath
instead.

Andrew




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#453128: octave-plplot: doesn't work at all

2007-11-27 Thread Wesley J. Landaker
Subject: octave-plplot: doesn't work at all
Package: octave-plplot
Version: 5.8.0~RC1-3
Severity: grave
Justification: renders package unusable

octave-plplot doesn't work at all, e.g.:

octave:1> plot([1:10])
usage: plot (y)
   plot (x, y, ...)
   plot (x, y, fmt, ...)   plot (x, y, property, value, ...)
error: evaluating if command near line 28, column 3
error: called from `__plt__' in file 
`/usr/share/octave/2.9.17/m/plot/__plt__.m'
error: called from `plot' in file `/usr/share/plplot_octave//plot.m'

Also, the documentation says to use LOADPATH, which doesn't work for octave2.9 
anymore;
you have to use the addpath function instead.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (45, 'unstable'), 
(40, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.9 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave-plplot depends on:
ii  libplplot9   5.8.0~RC1-3 Scientific plotting library
ii  octave2.91:2.9.17-1  GNU Octave language for numerical 

octave-plplot recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]