(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 8093, 256]*) (*NotebookOutlinePosition[ 8860, 282]*) (* CellTagsIndexPosition[ 8816, 278]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell[TextData[{ StyleBox["S", FontSlant->"Italic", FontColor->RGBColor[0.700008, 0, 0]], StyleBox["c", FontSlant->"Italic", FontColor->RGBColor[0.8, 0.2, 0]], StyleBox["i", FontSlant->"Italic", FontColor->RGBColor[0.8, 0.4, 0]], StyleBox["e", FontSlant->"Italic", FontColor->RGBColor[0.900008, 0.500008, 0]], StyleBox["n", FontSlant->"Italic", FontColor->RGBColor[1, 0.6, 0]], StyleBox["t", FontSlant->"Italic", FontColor->RGBColor[0.6, 0.6, 0]], StyleBox["i", FontSlant->"Italic", FontColor->RGBColor[0.4, 0.6, 0.300008]], StyleBox["f", FontSlant->"Italic", FontColor->RGBColor[0.300008, 0.500008, 0.4]], StyleBox["i", FontSlant->"Italic", FontColor->RGBColor[0, 0.4, 0.6]], StyleBox["c", FontSlant->"Italic", FontColor->RGBColor[0.300008, 0.2, 0.700008]], StyleBox[" ", FontSlant->"Italic"], StyleBox["A", FontSlant->"Italic", FontColor->RGBColor[0.4, 0, 0.8]], StyleBox["r", FontSlant->"Italic", FontColor->RGBColor[0.500008, 0.100008, 0.700008]], StyleBox["t", FontSlant->"Italic", FontColor->RGBColor[0.6, 0.100008, 0.700008]], StyleBox["s", FontSlant->"Italic", FontColor->RGBColor[0.700008, 0.2, 0.700008]], StyleBox["LLC", FontFamily->"Helvetica", FontSize->10, FontColor->RGBColor[0, 0.349996, 0]] }], "Title", Editable->False, Selectable->False, Deletable->False, CellFrame->{{0, 0}, {0, 2}}, ShowCellBracket->False, CellMargins->{{38, 38}, {0, 10}}, Copyable->False, CellFrameColor->RGBColor[0, 0.502007, 0.502007], TextAlignment->Center, TextJustification->1, FontFamily->"Times New Roman"], Cell["\<\ Copyright \[Copyright] 1999\[LongDash]2006, Scientific Arts, LLC. \ Permission for use granted for non-commercial purposes.\ \>", "Caption", Editable->False, Selectable->False, Deletable->False, ShowCellBracket->False, Copyable->False, TextAlignment->Center], Cell[CellGroupData[{ Cell["ToArrowAxes", "Section", Editable->False], Cell[CellGroupData[{ Cell["Function definition: ToArrowAxes", "Subsection", Editable->False], Cell[TextData[{ "The following cell, when executed will load the ", StyleBox["Graphics`Arrow`", "MR"], " package and create the complete definition for the ToArrowAxes function" }], "Text", Editable->False], Cell[BoxData[ \(\(ClearAll[ToArrowAxes];\)\)], "Input", CellLabel->"In[80]:=", Editable->False, InitializationCell->True], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(Needs["\"];\)\)\)], "Input",\ CellLabel->"In[81]:=", Editable->False, InitializationCell->True], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(Options[ToArrowAxes] = Options[Arrow];\)\)\)], "Input", CellLabel->"In[82]:=", Editable->False, InitializationCell->True], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(ToArrowAxes::usage = "\";\)\)\)], "Input", CellLabel->"In[83]:=", Editable->False, InitializationCell->True], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(ToArrowAxes::whoops = "\";\)\)\)], "Input", CellLabel->"In[84]:=", Editable->False, InitializationCell->True], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(ToArrowAxes[ pl_, \((frac : \(\((_?NumberQ)\) : 1/20\))\), opts___?OptionQ] /; Head[pl] === Graphics || Message[ToArrowAxes::whoops] := \[IndentingNewLine]\ \[IndentingNewLine]Module[{x0, y0, xi, xf, yi, yf, xdelta, ydelta, xiarrow, xfarrow, yiarrow, yfarrow, \ prim, gopts}, \[IndentingNewLine]\[IndentingNewLine]\[IndentingNewLine]{\ {xi, xf}, {yi, yf}} = PlotRange /. AbsoluteOptions[pl, PlotRange]; \[IndentingNewLine]{x0, y0} = AxesOrigin /. AbsoluteOptions[pl, AxesOrigin]; \[IndentingNewLine]\[IndentingNewLine]xdelta = \ \((xf - xi)\) frac; \[IndentingNewLine]ydelta = \((yf - yi)\) frac;; \[IndentingNewLine]\[IndentingNewLine]xiarrow = Arrow[{xi, y0}, \ {xi - xdelta, y0}, opts]; \[IndentingNewLine]xfarrow = Arrow[{xf, y0}, \ {xf + xdelta, y0}, opts]; \[IndentingNewLine]yiarrow = Arrow[{x0, yi}, \ {x0, yi - ydelta}, opts]; \[IndentingNewLine]yfarrow = Arrow[{x0, yf}, \ {x0, yf + ydelta}, opts]; \[IndentingNewLine]\[IndentingNewLine]Show[ Graphics[{xiarrow, xfarrow, yiarrow, yfarrow}, PlotRange \[Rule] {{xi - xdelta, xf + xdelta}, {yi - ydelta, yf + ydelta}}], FullGraphics[ pl /. Graphics[prim : {___}, gopts_] :> Graphics[prim, Axes \[Rule] True, gopts]], DisplayFunction \[Rule] \ $DisplayFunction]\[IndentingNewLine]];\)\)\)], "Input", CellLabel->"In[85]:=", Editable->False, InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell["Examples of use: ToArrowAxes", "Subsection", Editable->False], Cell[BoxData[ \(\(pl1 = Plot[x\^2\ Sin[x], {x, \(-2\), 4}, PlotRange \[Rule] All];\)\)], "Input", CellLabel->"In[86]:=", Editable->False], Cell[BoxData[ \(\(ToArrowAxes[pl1];\)\)], "Input", CellLabel->"In[87]:=", Editable->False], Cell[BoxData[ \(\(ToArrowAxes[pl1, 1/4];\)\)], "Input", CellLabel->"In[88]:=", Editable->False], Cell[BoxData[ \(\(ToArrowAxes[pl1, 1/4, \ HeadCenter \[Rule] 0];\)\)], "Input", CellLabel->"In[89]:=", Editable->False], Cell[BoxData[ \(\(ToArrowAxes[pl1, 1/4, \ HeadCenter \[Rule] .5];\)\)], "Input", CellLabel->"In[90]:=", Editable->False] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"5.2 for Macintosh", ScreenRectangle->{{0, 1409}, {0, 878}}, AutoGeneratedPackage->None, ScreenStyleEnvironment->"Brackets", WindowToolbars->"EditBar", WindowSize->{735, 734}, WindowMargins->{{228, Automatic}, {Automatic, 37}}, StyleDefinitions -> "HelpBrowser.nb" ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 1684, 60, 62, "Title"], Cell[3463, 115, 281, 9, 15, "Caption"], Cell[CellGroupData[{ Cell[3769, 128, 49, 1, 61, "Section"], Cell[CellGroupData[{ Cell[3843, 133, 73, 1, 36, "Subsection"], Cell[3919, 136, 214, 5, 40, "Text"], Cell[4136, 143, 131, 4, 26, "Input", InitializationCell->True], Cell[4270, 149, 167, 5, 42, "Input", InitializationCell->True], Cell[4440, 156, 183, 5, 42, "Input", InitializationCell->True], Cell[4626, 163, 675, 11, 170, "Input", InitializationCell->True], Cell[5304, 176, 260, 6, 58, "Input", InitializationCell->True], Cell[5567, 184, 1743, 34, 394, "Input", InitializationCell->True] }, Open ]], Cell[CellGroupData[{ Cell[7347, 223, 69, 1, 36, "Subsection"], Cell[7419, 226, 165, 5, 31, "Input"], Cell[7587, 233, 98, 3, 26, "Input"], Cell[7688, 238, 103, 3, 26, "Input"], Cell[7794, 243, 127, 3, 26, "Input"], Cell[7924, 248, 129, 3, 26, "Input"] }, Open ]] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)