Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
Samuel GOUGEON wrote
> clf
> plot(Ixs,course(Ixs))
> ax  =  gca();
> ax.data_bounds(1:2)  =  [1  length(course)];

Thank you Christophe ans Samuel*!*
it works!

Between my experiment*:*
coursePn = ones( course ) .* %nan ;
coursePn( Ixs ) = course( Ixs ) ;
plot( coursePn , 'r*') // but without lines between the points




--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035491.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Samuel Gougeon

Le 14/02/2017 à 16:06, Erhy a écrit :

Hello Samuel,
Christophe's method is nearly acceptabel for me,
so you see what I mean.


I caught it: you meant "X axis redimensioned to (1:size(course,'r')) !
Why not simply
plot(course)
??
It ranges from 1 to 10.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
Hello Samuel,
Christophe's method is nearly acceptabel for me,
so you see what I mean.

But  I miss the value with index 9 in the plot modified by Christophe's
method.

Erhy



--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035488.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Samuel Gougeon

Le 14/02/2017 à 13:05, Erhy a écrit :

e.g.
course = [ 1 0.5 2 3 0.75 0.3 0.4 0.9 0.4 0.5 ]';
y = 2 : size(course,'r') - 1;
// find indices of minimums in course
Ixs = 1 + find( course( y - 1 ) > course( y ) & course( y + 1 ) > course( y
) );

I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r')


"X axis redimensioned to 1": Do you mean: ranging from 0 to 1, or plotting a 
single component (=> which kind of plot? With a marker?), or..?


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
e.g.
course = [ 1 0.5 2 3 0.75 0.3 0.4 0.9 0.4 0.5 ]';
y = 2 : size(course,'r') - 1;
// find indices of minimums in course
Ixs = 1 + find( course( y - 1 ) > course( y ) & course( y + 1 ) > course( y
) );

I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r')  

Thank you for help
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] C/C++ compiler for Mac OS Sierra

2017-02-14 Thread Paul Bignier


Hello Reinaldo,

You don't have to install the whole Xcode to have gcc (pointing to 
clang) available, you can simply install the command-line tools 
.


Regards,
Paul

On 02/13/2017 07:46 PM, Reinaldo Golmia Dante wrote:

Hi Scilab users,

I would like to install only a C/C++ compiler for Mac OS Sierra. I had 
installed Xcode, but it was very heavy (about 4.5GB) for the SMD disk 
in my MacBook Air. I'd like to install Eclipse IDE C++ to program 
C/C++, but I think it requires a C/C++ compiler, doesn't it?


Thank you in advance.

Best,
Reinaldo.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users