MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Zoom 2D

  • To: mathgroup at
  • Subject: [mg77051] Zoom 2D
  • From: dh <dh at>
  • Date: Sat, 2 Jun 2007 04:12:04 -0400 (EDT)

Hello All,

after having learned more of the new dynamic abilities, I may post an 

improved version of a Zoom function for 2 dimensional Graphics. The code 

below will create a small palette with one button. If you select some 2 

dim. graphics and click this button, a new notebook will be open with 

two panes and a coordinate pair. The upper pane contains the original 

graphics overlaid with an transparent rectangle overlaid. This recatngle 

may be resized and defines the region to enlarge. The lower panel 

contains the enlarged region. Clicking into the lower panel prints the 

coordinates below the panels.

You are welcom to comment.


(*Creates a Palette with a zoom button*)


If[!MatchQ[Head[g0],Graphics| GraphicsBox],CreateDialog[{TextCell["Zoom: 

No Input available."],DefaultButton[]}];Return[];];
















  • Prev by Date: Re: How to change symbolic values to numbers
  • Next by Date: Re: How to change symbolic values to numbers
  • Previous by thread: May 2007
  • Next by thread: Developing Applications using Mathematica