help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [was: urgent help with plot: solved] gnuplot commands


From: Quentin Spencer
Subject: Re: [was: urgent help with plot: solved] gnuplot commands
Date: Fri, 23 Sep 2005 10:15:05 -0500
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

roberto wrote:

On 9/22/05, roberto <address@hidden> wrote:
On 9/22/05, roberto <address@hidden> wrote:
###############################################
clear all
r_up = linspace(.1,10,5);
T = [];

for i = 1:length(r_up)
        [E,c,a,T(i)] = E_X2rad(110,60,r_up(i));
        T = [T T(i)];
# inserted here just to check output
        fdisp(stdout, T(i));
end
plot(r_up,T,'*');
###############################################
but if i look inside T, well it has 6 elements (not 5) and they are

0.012465  0.306810  0.595773  0.873184  1.277914  1.277914

as you can see the last one is repeated twice, i do NOT know why...
so plot cannot plot anything at all
thank you for any help

thank you all the same, i solved the problem;
now i'd like to know the following if you can give me some advice:
when i use these lines:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
gset title  "angle - radius; N = 50"
gset xlabel "radius [m]"
gset ylabel "angle [rad]"
gset term postscript eps color
gset output "angle_to_radius.eps"
replot;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

i get this warnings:
warning: gset deprecated and will be removed from a future
warning: version of Octave.
warning: You should use the higher-level plot functions
warning: ("plot", "mesh", "semilogx", etc.) instead
warning: of the low-level plotting commands.
warning: If you absolutely must use this function, use the
warning: internal version __gnuplot_set__ instead.

i checked in the online manual but did not find anything really
useful; i'd like to know how to handle the interaction between octave
and gnuplot, such as to take control over all the capabilities of
gnuplot from inside an octave code: can you please address me to some
online reference where i can get this information?

thank you all

I don't think the interaction is well documented, because the intention is for users to use the high-level commands listed in the warning message. If you want to get rid of the warnings, you can replace gset with __gnuplot_set__ and they will go away. Any low-level gnuplot command can be accessed using the __gnuplot_raw__ command. The gnuplot commands are documented in the gnuplot documentation, which is probably the best place to look for information. However, most of your example above can be duplicated without using low-level gnuplot commands, but using the commands xlabel, ylabel, title, and print from octave-forge. I suggest installing octave-forge and see if it provides the necessary capabilities you're looking for.

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]