[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How to set x-axis tic values without moving the graph ?
From: |
William Krekeler |
Subject: |
RE: How to set x-axis tic values without moving the graph ? |
Date: |
Mon, 2 May 2011 13:22:56 +0000 |
Easiest way to control the labeling of the x axis is to define an x axis array.
You can also remap the x tick labels in the axis properties but 1) that is
harder, 2) basic plot mechanisms should be learned first.
Assuming linearity mapping your 722 points to 0 to -180 then you would need
code similar to the following:
# start code
myarray = rand( 1, 100 ); % test purposes only
points = length( myarray );
range = [ -180 180 ];
xticksSize = diff(range) + 1;
stepSize = xticksSize / points;
xticks = range(1):stepSize:range(2);
semilogy( xticks, myarray, "color", "g" );
# end code
William Krekeler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: How to set x-axis tic values without moving the graph ?,
William Krekeler <=