help-octave
[Top][All Lists]
Advanced

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

Re: revised: How to set xtics in 2-D plot in Octave 3.0.0 on a PC with W


From: Tatsuro MATSUOKA
Subject: Re: revised: How to set xtics in 2-D plot in Octave 3.0.0 on a PC with Windows Vista
Date: Thu, 28 Feb 2008 18:42:11 +0900 (JST)

Hello

JWE wrote:
>It's not really a column vector, it's a character matrix.
>
>Notice that if you write
>
>  ["Pi/4", "Pi/2", "Pi", "3*Pi/2", "2*Pi"]
>
>the individual elements are all concatentated into a single character
>string:
>
>  Pi/4Pi/2Pi3*Pi/22*Pi
>
>Also, if you write
>
>  ["Pi/4"; "Pi/2"; "Pi"; "3*Pi/2"; "2*Pi"]
>
>each of the rows is padded with space characters so the size of the
>resulting matrix is 5x6 (in Matlab you would have to pad the elements
>with spaces yourself).  It is probably better and easier to use a cell
>array instead.  Then you can use either one row or one column.  For
>example,
>
>  set (ax, "xticklabel", {"Pi/4", "Pi/2", "Pi", "3*Pi/2", "2*Pi"});
>
>should also work.

I have mislead.  Surely, [String;String;String] should be a Matrix.
In addtion, I have confirmed the above works.

Thanks!!!!!


Please tell me to which file I should make the patch.

************************************************************
          ax=gca();
          set (ax, "xtick", [pi/4, pi/2, pi, 1.5*pi, 2*pi]);
          set (ax, "xticklabel", {"Pi/4", "Pi/2", "Pi", "3*Pi/2", "2*Pi"});

creates a plot with manually set of the tics in x axis.
*****************************************************************

+++++++++++++
         ax = gca ();
         set (ax, "position", [0.5, 0.5, 0.5, 0.5]);
+++++++++++++ 
were not found in plot.txi

Should the patch make for against Graphics-Objects.html ????

Regards

Tatsuro  


--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/


reply via email to

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