[Master Index] [Index for .]

inplot

(./inplot.m)


Function Synopsis

[h]=inplot(xvec,yvec,sran,c1,bds1,c2,bds2,c3,bds3)

Help text

 function [h]=inplot(xvec,yvec,sran,c1,bds1,c2,bds2,c3,bds3)

 This function plots the data (xvec,yvec) and then plots a subset in the upper
 left corner of the screen to give you a "picture-in-a-picture".   
 Jeff Butera, jvbutera@eos.ncsu.edu, 30 November 95 (with much help from 
 Mike Buksas).

 Required INPUTS:
   xvec - vector of x data points
   yvec - vector of y data points, same length as xvec
   sran - 2 vector of form [smin,smax] for subset to be plotted.
          Note that (smin,smax) must be a subset of (min(xvec),max(xvec)).

 Optional INPUTS:
   c   - a character, either 'w','p', or 's'
   bds - 4 vector in form [xmin xmax ymin ymax]

  If c=='p' then bds specifies the axis bounds for the outermost Plot.
  If c=='s' then bds specifies the axis bounds for the Subplot.
  If c=='w' then bds specifies the absolute bounds of the Window location.
   The bounds for the window location will be "clipped" so the subplot window
   does not run off the top or sides of the main plot.

 OUTPUTS:
   h - a 2 vector of handles.  The first entry is the main graph and
       the second is the subplot graph.

 Examples: x=[-500:500]; y=randn(1,1001);
  inplot(x,y,[-200 -180])
  inplot(x,y,[200 230],'w',[-400 400 4 10])
  inplot(x,y,[300 315],'p',[-500 500 -3 8],'w',[-400 400 4 7])
  inplot(x,y,[180 197],'s',[175 200 -1 1],'w',[-400 400 4 11])

Produced by mat2html on Thu Oct 9 14:13:05 1997
Cross-Directory links are: OFF