plot scroll bars, x-axis spacing

  • Follow


With R2010a, the default behavior for plots, with regards to the x-axis, appears to be trying to cram all data points into one graph no matter how many observations. Some signals are impossible to inspect this close together. If there a way to accomplish the following, please let me know how (thanks in advance):

1. Instead of horizontal panning, use horizontal scroll bars.

2. Have the initial figure/plot view x-axis spacing set to a value that allows more space between data points for easier horizontal inspection.

3. Use most of the available horizontal viewing space instead of having large left and right margins around a plot.
0
Reply radar 12/5/2010 11:25:26 AM


"radar" <able@tds.net> wrote in message 
news:420154864.58759.1291566356778.JavaMail.root@gallium.mathforum.org...
> With R2010a, the default behavior for plots, with regards to the x-axis, 
> appears to be trying to cram all data points into one graph no matter how 
> many observations.

That is consistent with the default value for the axes XLimMode property, 
yes.

http://www.mathworks.com/help/techdoc/ref/axes_props.html#XLimMode

> Some signals are impossible to inspect this close together. If there a way 
> to accomplish the following, please let me know how (thanks in advance):
>
> 1. Instead of horizontal panning, use horizontal scroll bars.

Search the File Exchange for "scrollplotdemo" for some of the examples that 
demonstrate this type of technique.

> 2. Have the initial figure/plot view x-axis spacing set to a value that 
> allows more space between data points for easier horizontal inspection.

Not really possible the what I think you're describing it.  You can set the 
limits explicitly or you can let MATLAB determine the limits from your 
plotted data; there's no real option to tell MATLAB "determine the limits 
yourself, but add a margin of 10% around what you think they should be."

> 3. Use most of the available horizontal viewing space instead of having 
> large left and right margins around a plot.

Change the XLim and/or Position and Units properties of the axes.

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Reply Steven_Lord 12/5/2010 10:42:43 PM


1 Replies
704 Views

(page loaded in 0.036 seconds)

Similiar Articles:













7/22/2012 7:14:35 AM


Reply: