(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



(* :Name: EPM`StemPlots` *)


(* :Book: Essentials of Programming in Mathematica *)


(* :Author: Paul Wellin *)


(* :Summary: This package contains the functions defined in Chapter 6 Programs *)


(* :Context: EPM`StemPlots` *)


(* :Package Version: 1.0 *)


(* :Copyright: Copyright 2015, Paul R Wellin *)


(* :History: Version 1.0 by Paul Wellin, Dec 2012 *)


(* :Keywords: stem plots *)


(* :Source: StemPlots.nb *)


(* :Mathematica Version: 10.3 *)


(* Tested in Mathematica 11.1 *)


Remove[StemPlot]


BeginPackage["EPM`StemPlots`"]


StemPlot::usage="StemPlot[\!\(\*
StyleBox[\"data\", \"TI\"]\)] returns a stem plot of the discrete data, \!\(\*
StyleBox[\"data\", \"TI\"]\).";


StemPlot::badarg="The first argument to StemPlot must be a list of numbers.";


Options[StemPlot]=Options[ListPlot];


Begin["`Private`"];


StemPlot[lis_,opts:OptionsPattern[]]:=
If[MatchQ[lis,{__?NumericQ}|{{__?NumericQ}..}],
ListPlot[lis,opts,Filling->Axis],
Message[StemPlot::badarg]
]


End[];


EndPackage[]



