about the embed graph and the rectangle wrapped range

hi I am plotting a wave and use dotted rectangle wrapping a part of that wave, meanwhile I also plot a embed window show the larger picture of that wrapped part.

here my question is how to make a precise plotting to make sure the embed graph has exactly the same y and x rang as the are that the rectangle plots.

hopping I stated my question clearly

my pic is attached.
another question is

how to plot a dotted frame surround the embed wave? I can plot a frame of solid line, shadowed line, double line by right click the embed graph and choosing frame.... but I did not find dotted option.
The rectangle on the big graph should be plotted in axis coordinates. In the Create Rectangle or the Modify Rectangle dialog, in the Coordinate System box select Axis Bottom or Axis Left or whatever axis names are appropriate. You will see that these selections cause the dialog to generate SetDrawEnv xcoord= bottom,ycoord= left which you can use in code if you are programming a user function to create your graph.

The Frame options for an embedded graph do not include dotted lines. You will need to use the drawing tools to draw a suitable rectangle around your small graph.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com