[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to set x-axis tic values without moving the graph ?
From: |
wahaj87 |
Subject: |
How to set x-axis tic values without moving the graph ? |
Date: |
Fri, 29 Apr 2011 04:54:48 -0700 (PDT) |
Hi
I have a two dimensional graph in octave. I have used command :
semilogy("myarray","color","g");
It worked fine, as I require log scale for y-axis.
On x-axis it shows number of points (722) in my array named "myarray"
labeled from 0 to 800, with tics at difference of 100.
But I want that it should label 0 to -180, center point which is 722/2= 361
should be labeld 0, and point 722 should be labeled as 180. ie;
0...100...200...300...(361)...400...600...700...800 should be seen as
-180............................0............................180
I tried command set(gca,"xtick",[-180,180]) but it only show one tic on
xaxis labeled 180 like give below:
...............180..............................................
How to solve this problem ?
--
View this message in context:
http://octave.1599824.n4.nabble.com/How-to-set-x-axis-tic-values-without-moving-the-graph-tp3483494p3483494.html
Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to set x-axis tic values without moving the graph ?,
wahaj87 <=