Re: graphs and scale factor
- From: "S N RAY" <suryanarayana_gs@xxxxxxxxx>
- Date: Thu, 30 Oct 2008 11:27:02 +0000 (UTC)
My questions regarding the curve fitting to images using the hold method have got much things to do with the scaling issue I realize.
So how can I get help.
The problems is as follows:
The image is generated using for ex: ( 809x 100) matrix.The command is : figure,pcolor();shading interp;
Then the values in the original data is summed to get a (1 x 809) matrix. That is all rows added. This one row , 809 column matrix is plotted using 'plot'. Here the y axis is in the range
( - 5.25x10^5 to -5.65x10^5 ). How to change the y axis for this existing range to the new range of 1 to 100 WITHOUT ofcourse any change in the shape or size of the curve because , ultimately I want to bring upon this curve on the
pcolor() image using ' hold ' command.
Walter Roberson <roberson@xxxxxxxxxxxx> wrote in message <lcMJk.12872$vs7.7224@xxxxxxxxxxxx>...
O G wrote:.
When I plot a figure, often times MATLAB will automatically scale the y-axis data and put
something like 'x 10^5' just above the y-axis. Is there a way I can control this behavior.
I'd like to be able to turn it off/on, and also adjust the scale factor to something else.
I know that I can always modify the data directly, but I wanted to control this with plot
function options.
The behaviour is completely automatic (at least up to R2007a). You cannot deliberately
turn it on, and you cannot adjust the scale factor.
What you can do is force it to be off, by
h = plot(x,y);
for K=1:length(h)
set(h(K),'YLabel',num2str(get(h(K),'YTick')))
end
That is, supplying your own formatted text strings for the YLabel turns off the
automatic scaling indicator.
If you -want- to use scaling, then you will need to set the YLabel to the text of
the scaled values, and you will have to text() the scale factor into some
appropriate position.
- References:
- graphs and scale factor
- From: O G
- Re: graphs and scale factor
- From: Walter Roberson
- graphs and scale factor
- Prev by Date: Switch-Case weird behaviour
- Next by Date: min avoiding zeros
- Previous by thread: Re: graphs and scale factor
- Next by thread: inaccuracy in strfind when looking for neighboring nodes
- Index(es):
Relevant Pages
|
Loading