÷ƒ’À;è TeX output 1997.02.18:0955‹ÿÿÿÿ ª� ýs o� ýÞ�‘lh1óDÓítG®G®cmr17¹Dra�Œqwing–7thistogram“bars“inside“the“L�Ÿüdú�‘úKGóX«Q cmr12ºAŽŽ‘¹”¹T�‘ý[™Ÿ¸-EŽ‘;gXŽŸ�’´k`óÖÆG®G®cmss17¿picture¹{en•Œqvironmen“t��Ÿùº¯ó!",š cmsy10¾ŽŽŽŸ�����’Ö„]ºRainer‘ê¨Sc�¬rh‘ú opfŽŽŸ��’Â*vsc�¬rho�SŽepf@uni-mainz.deŽŽŽŽŽŸ&37�’Ý 1997/02/13ŽŸ.�’æ!Kót ‰: cmbx9ÇAbstractŽŸ¬Ñ�‘oßüóo´‹Ç cmr9ÆThis–üarticle“describ�AÇes“an“enhancemenš¾9t“of“the“L�Ÿýó5�‘ü«‡ó¹Aa¨cmr6ÁAŽŽ‘© ÆT�‘þuAŸïÿEŽ‘˜ŸX“óÒoÇw cmss9ÊpictureÆ{en˜vironmen˜tŽŸ �‘bto–Tdra�¾9w“histogram“bars.ŽŸ!Ä��‘Ió!ÂÖN ff cmbx12Ì1Ž‘aLËUser‘ffin�ŒÌterfaceŽŸç�‘IóKñ`y cmr10²This–ì—is“a“macro“collection“to“draš¸ãw“histogram“bars“inside“a“ó#m#½R cmss10Îpicture²{en˜vironmen˜t.Ž����‘À$ó"ߤN cmtt9Í\histogramŽŽŽŽ¤ �‘I²Use–UUis“as“follo�¸ãws:Ž¡�‘Xó$ßê cmmi10µx�ŸÿóÙ“ Rcmr7±0Ž–|s²,µy�Ÿÿ±0Ž“²)(µx�Ÿÿ±1Ž“²,µy�Ÿÿ±1Ž“²)...(µx�Ÿÿó 0e—rcmmi7´nŽ–q~²,µy�Ÿÿ´nŽ“²)Ž¡�‘XThe–Ò!cošGordinate“pairs“sp˜ecify“the“upp˜er“left“corner“of“the“histogram“bars,‘ñSi.e.Ž¡�‘Ithis–$'will“draš¸ãw“a“horizon˜tal“line“from“(µx�Ÿÿ´iŽ–TLµ;›ª¨y�Ÿÿ´iŽ“²)–$'to“(µx�Ÿÿ´i±+1Ž‘ tOµ;˜y�Ÿÿ´iŽ‘TL²),‘-ýthen“a“v�¸ãertical“line“fromŽ¡�‘I(µx�Ÿÿ´i±+1Ž› tOµ;‘ª¨y�Ÿÿ´iŽ‘TL²)–Óto“(µx�Ÿÿ´i±+1Ž˜µ;‘ª¨y�Ÿÿ´i±+1Ž˜²)“if“Ï\noverticallines“²w�¸ãas“sp�Geci ed,‘òpelse“from“(µx�Ÿÿ´i±+1Ž˜µ;‘ª¨y�Ÿÿ±0Ž‘|s²)Ž����‘òf Í\noverticallinesŽŽŽŽ��¡��‘ûÙÌ\verticallinesŽŽŽŽ¡�‘I²to‘UU(µx�Ÿÿ´i±+1Ž– tOµ;�‘ª¨²maxŽ‘G(µy�Ÿÿ´iŽ‘TLµ;‘ª¨y�Ÿÿ´i±+1Ž“²)).Ž¡�‘XDefault–Õis“Ï\verticallines².‘^òµy�Ÿÿ±0Ž‘™H²should“b�Ge“less“or“equal“the“minim�¸ãum“of“all“theŽ¡��‘Iµy�Ÿÿ´iŽŽ‘T�À²(i.e.‘qÇother–UUcases“ha•¸ãv“e–UUnot“b�Geen“tested).Ž¡�‘XLet's–UUstart“with“an“example:‘qÇto“get“the“follo�¸ãwing“picture:Ž Åâê������’ˆJ"ŸÝÛ\„ŽCVÌÌŽ��’ˆ°ˆ ÿY˜óäO£ linew10­6ŽŽŽ�’€'_ŸÕ¸™„ÌÌÎ�‘öž™š-ŽŽ��’ˆ}VŸÛù„°ÆfeŽŽ��’Ž.ŸÛù„°ÆfeŽŽ��’ÁeŸÛù„°ÆfeŽŽ��’ÇØŸÛù„°ÆfeŽŽ��’úLΟÛù„°ÆfeŽŽ��’ÿý”ŸÛù„°ÆfeŽŽ��’34ŠŸÛù„°ÆfeŽŽ��’8åPŸÛù„°ÆfeŽŽ��ŸÝ÷b�’‰8ìÆ1ŽŽŽ��ŸÝ÷b�’ ¨2ŽŽŽ��ŸÝ÷b�’ûd3ŽŽŽ��ŸÝ÷b�’3ð 4ŽŽŽ��Ÿß]�’JM`²mlŽŽŽ�’‚ÿŸ¹‡„fd°ÆŽ�’‚ÿŸœ�©„fd°ÆŽ��Ÿ¼9�‘{'^5ŽŽŽ��ŸŸ£[�‘v']10ŽŽŽ�� ÿ|lï�‘z™%nŽŽŽ�’³^UŸñÆBehandler‘UU1Ž��’ˆ}VŸÕR3„ aŒfeŽŽ�’ˆ°ˆŸÊ#Ù„fd°ÆŽ��’Ž.ŸÕR3„ aŒfeŽŽ�’ŽaNŸÊ#Ù„fd°ÆŽ��’“ÞâŸÕR3„ aŒfeŽŽ�’”ŸÊ#Ù„fd°ÆŽ��’™�¨ŸÕR3„ aŒfeŽŽ�’™ÂÚŸÕ…e„fd°ÆŽ��’Ÿ@nŸÕR3„sÞfeŽŽ�’Ÿs Ÿ¹‡„fd°ÆŽ��’¤ñ4ŸÕR3„sÞfeŽŽ�’¥$fŸ¾ÂM„fd°ÆŽ��’ª¡úŸÕR3„ÃfeŽŽ�’ªÕ,ŸÄs„fd°ÆŽ��’°RÀŸÕR3„RfeŽŽ�’°…òŸÊ#Ù„fd°ÆŽ��’¶†ŸÕR3„'ÕjfeŽŽ�’¶6¸Ÿ­¯û„fd°ÆŽ��’»´LŸÕR3„'ÕjfeŽŽ�’»ç~Ÿ¾ÂM„fd°ÆŽ��’ÁeŸÕR3„36öfeŽŽ�’Á˜DŸ¢No„fd°ÆŽ��’ÇØŸÕR3„36öfeŽŽ�’ÇI Ÿ¢No„fd°ÆŽ��’ÌÆžŸÕR3„36öfeŽŽ�’ÌùП¾ÂM„fd°ÆŽ��’ÒwdŸÕR3„ÃfeŽŽ�’Òª–ŸÕ…e„fd°ÆŽ��’Ø(*ŸÕR3„sÞfeŽŽ�’Ø[\Ÿ¹‡„fd°ÆŽ��’ÝØðŸÕR3„sÞfeŽŽ�’Þ "ŸÏÔŸ„fd°ÆŽ��’㉶ŸÕR3„"$¤feŽŽ�’ã¼èŸ³`Á„fd°ÆŽ��’é:|ŸÕR3„"$¤feŽŽ�’ém®ŸÊ#Ù„fd°ÆŽ��’îëBŸÕR3„RfeŽŽ�’ïtŸÄs„fd°ÆŽ��’ôœŸÕR3„RfeŽŽ�’ôÏ:ŸÄs„fd°ÆŽ��’úLΟÕR3„36öfeŽŽ�’ú€Ÿ¢No„fd°ÆŽ��’ÿý”ŸÕR3„36öfeŽŽ�’0ÆŸ¹‡„fd°ÆŽ��’®ZŸÕR3„'ÕjfeŽŽ�’ጟ­¯û„fd°ÆŽ��’ _ ŸÕR3„'ÕjfeŽŽ�’ ’RŸÊ#Ù„fd°ÆŽ��’æŸÕR3„ÃfeŽŽ�’CŸ¾ÂM„fd°ÆŽ��’À¬ŸÕR3„ÃfeŽŽ�’óÞŸÊ#Ù„fd°ÆŽ��’qrŸÕR3„RfeŽŽ�’¤¤ŸÄs„fd°ÆŽ��’""8ŸÕR3„RfeŽŽ�’"UjŸÊ#Ù„fd°ÆŽ��’'ÒþŸÕR3„RfeŽŽ�’(0ŸÄs„fd°ÆŽ��’-ƒÄŸÕR3„RfeŽŽ�’-¶öŸÏÔŸ„fd°ÆŽ��’34ŠŸÕR3„°ÆfeŽŽ�’3g¼ŸÏÔŸ„fd°ÆŽ��’8åPŸÕR3„°ÆfeŽŽŽŽŽŽ‘IŸff‰ff�ÿrŸ @���‘ ÷ˆŸý-:óq¡% cmsy6ÅŽŽ‘LÜó|{Ycmr8ÀThis–ÕX le“has“všÃŽersion“n˜um˜b�Ÿ'EŽ‘ãxX“commands:ŽŸ÷�‘[æXÍ\setlength{\unitlength}{1mm}ޤ �‘[æX\begin‘¹–{picture}(100,65)(-10,-15)Ž©�‘[æX\thicklinesŽ¡�‘[æX\put(0,-3){\vector(0,1){50}}Ž¡�‘[æX\put(-3,0){\vector(1,0){90}}Ž¡�‘[æX\thinlinesަ�‘[æX\put(0,0){\line(0,-1){2}}Ž¡�‘[æX\put(2,0){\line(0,-1){2}}Ž¡�‘[æX\put(20,0){\line(0,-1){2}}Ž¡�‘[æX\put(22,0){\line(0,-1){2}}Ž¡�‘[æX\put(40,0){\line(0,-1){2}}Ž¡�‘[æX\put(42,0){\line(0,-1){2}}Ž¡�‘[æX\put(60,0){\line(0,-1){2}}Ž¡�‘[æX\put(62,0){\line(0,-1){2}}ަ�‘[æX\put(0,-1){\makebox(2,0)[t]{\small‘¹–1}}Ž¡�‘[æX\put(20,-1){\makebox(2,0)[t]{\small‘¹–2}}Ž¡�‘[æX\put(40,-1){\makebox(2,0)[t]{\small‘¹–3}}Ž¡�‘[æX\put(60,-1){\makebox(2,0)[t]{\small‘¹–4}}Ž¡�‘[æX\put(70,-1){\makebox(0,0)[t]{ml}}ަ�‘[æX\put(0,10){\line(-1,0){2}}Ž¡�‘[æX\put(0,20){\line(-1,0){2}}ަ�‘[æX\put(-3,8){\makebox(0,4)[r]{5}}Ž¡�‘[æX\put(-3,18){\makebox(0,4)[r]{10}}Ž¡�‘[æX\put(-3,30){\makebox(0,4)[r]{n}}ަ�‘[æX\put(15,-10){Behandler‘¹–1}ަ�‘[æX\histogram(0,0)(0,4)(2,4)(4,4)(6,0)(8,10)(10,8)(12,6)(14,4)Ž¡�’‹&4(16,14)(18,8)(20,18)(22,18)(24,8)(26,0)(28,10)(30,2)Ž¡�’‹&4(32,12)(34,4)(36,6)(38,6)(40,18)(42,10)(44,14)(46,4)Ž¡�’‹&4(48,8)(50,4)(52,6)(54,4)(56,6)(58,2)(60,2)(62,0)Ž¡�‘[æX\end{picture}ŽŸ ;ÿ��‘IÌ2Ž‘aLËImplemen�ŒÌtationŽŸç��‘Lüs±1Ž‘Sª®ó©±�Ê cmsy9Éh�Êpack�¾9ageŽ‘#g ÉiŽ©:����‘3PÍ\hist@xŽŽ���Ÿ �‘3P\hist@yŽŽŽŽ���¤ ¡�‘“b\hist@ystartŽŽŽŽŽ‘I²Here's–¢±hoš¸ãw“it“is“implemen˜ted:‘u rst“w˜e“allo�Gcate“three“coun˜ters“that“are“needed“laterޤ �‘Ion.‘ã½Ï\hist@x–%ü²and“Ï\hist@y“²are“the“µx“²and“µy‘�Õ²co�Gordinate“of“the“ó(ý': cmti10Ócurr–ÿ}'ent‘SÝp“oint²,‘Z&i.e.Ž¡�‘Ithe–TDp�Goinš¸ãt“that“serv˜es“as“a“start“for“the“next“b�Go˜x“of“the“histogram.‘qlÏ\hist@ystartŽ¡�‘I²holds–UUthe“µy‘±.²cošGordinate“of“the“ rst“p˜oin�¸ãt,“i.e.‘qǵy�Ÿÿ±0Ž‘|s².ŽŸ ¾��‘Lüs±2Ž‘Sª®Í\newcount\hist@xޤ ��‘Lüs±3Ž‘Sª®Í\newcount\hist@yŽ¡��‘Lüs±4Ž‘Sª®Í\newcount\hist@ystartަ����‘ó­ \noverticallinesŽŽ���Ÿ �‘ý 6\verticallinesŽŽŽŽŽ‘I²W‘ÿ*ªe–­Åneed“a“switcš¸ãh“to“decide“if“the“v˜ertical“lines“of“the“histogram“b�Go˜xes“are“to“b�GeŽŸ �‘Idra�¸ãwn–UUfrom“µy�Ÿÿ´iŽ‘©¡²to“µy�Ÿÿ´i±+1Ž‘ɤ²or“from“µy�Ÿÿ±0Ž‘ÑȲto�“maxŽ‘ñË(µy�Ÿÿ´iŽ‘TLµ;‘ª¨y�Ÿÿ´i±+1Ž‘ tO²).‘qÇDefault“is“the“latter.ŽŽŸ�’ø2ŽŽŒ‹� ª� ýs o� ý´��‘Lüs±5Ž‘Sª®Í\newif\ifhist@vertޤ ��‘Lüs±6ŽŽ¡��‘Lüs7Ž‘Sª®Í\let\verticallines\hist@verttrueŽ¡��‘Lüs±8Ž‘Sª®Í\let\noverticallines\hist@vertfalseŽ¡��‘Lüs±9ŽŽ¡��‘I10Ž‘Sª®Í\hist@verttrueŽ©����‘Ž\histogramŽŽŽ‘I²The–?ÿÏ\histogram“²command“takš¸ães“the“starting“p�Goin˜t“as“argumen˜t“and“initializesޤ �‘Ithe–¹Ãcoun�¸ãters.‘ŸÏ\hist@x²,›ÞÏ\hist@y“²and“Ï\hist@ystart“²are“set“to“µx�Ÿÿ±0Ž‘|s²,˜µy�Ÿÿ±0Ž‘ 66²and“µy�Ÿÿ±0Ž‘|s²,Ž¡�‘Iresp�Gectiv�¸ãely‘ÿ*ª.ޤ��‘I±11Ž‘Sª®Í\def\histogram(#1,#2){\hist@x–¹–#1“\hist@y“#2“\hist@ystart\hist@yŽŸ�‘I²Then–UUthe“macro“Ï\hist@next“²is“used.Ž¡��‘I±12Ž‘]ÚÍ\hist@next}ަ����‘Ž\hist@nextŽŽŽ‘IÏ\hist@next– ²lošGoks“at“the“next“tok�¸ãen“to“see“if“there“is“another“op˜en“paren�¸ãtheses.‘X[IfŽŸ �‘Ithis–UUis“the“case“it“calls“Ï\hist@box²,“otherwise“Ï\hist@end².Ž¡��‘I±13Ž‘Sª®Í\def\hist@next{\@ifnextchar‘¹–({\hist@box}{\hist@end}}ަ����‘À$\hist@boxŽŽŽ‘I²The–¦macro“Ï\hist@box“²do�Ges“nearly“all“the“w�¸ãork.‘]8The“ rst“thing“to“do“is“to“set“theޤ �‘Itemp�Gorary– counš¸ãter“Ï\@tempcnta“²to“µx�Ÿÿ´i±+1Ž‘'±ó !",š cmsy10¸‘³bµx�Ÿÿ´iŽ‘TL².‘™Remem˜b�Ger“that“Ï\hist@x“²is“the“µxŽ¡�‘I²cošGordinate–ã5of“the“last“p˜oinš¸ãt“(i.e.‘hµx�Ÿÿ´iŽ‘TL²)“whereas“the“macros“ rst“argumen˜t“is“µx�Ÿÿ´i±+1Ž‘ tO².Ž¡�‘ISo–UUw�¸ãe“writeŽ©��‘I±14Ž‘Sª®Í\def\hist@box(#1,#2){\@tempcnta‘¹–-\hist@xŽŸ ��‘I±15Ž‘a×pÍ\advance\@tempcnta‘¹–#1ŽŸ�‘I²The–æänext“step“is“easy:‘”ædraš¸ãw“the“horizon˜tal“part“of“the“histogram“b�Go˜x.‘&uThe“lineŽ¡�‘Istarts–UUat“(µx�Ÿÿ´iŽ–TLµ;‘ª¨y�Ÿÿ´iŽ“²)–UUand“has“length“Ï\@tempcnta\unitlength².ަ��‘I±16Ž‘a×pÍ\ifnum–¹–\@tempcnta“>\z@ޤ ��‘I±17Ž‘yw^Í\put(\hist@x,\hist@y){\line(1,0){\@tempcnta}}\elseŽ¡��‘I±18Ž‘yw^Í\put(\hist@x,\hist@y){\line(-1,0){-\@tempcnta}}\fiޤ�‘I²No�¸ãw–UUset“Ï\hist@x“²to“µx�Ÿÿ´i±+1Ž‘ tO²:ަ��‘I±19Ž‘a×pÍ\hist@x‘¹–#1Ž¡�‘I²If–UUÏ\verticallines“²wš¸ãas“set“w˜e“ rst“set“Ï\@tempcnta“²to�“maxŽ‘ñË(µy�Ÿÿ´iŽ‘TLµ;‘ª¨y�Ÿÿ´i±+1Ž‘ tO²):ަ��‘I±20Ž‘a×pÍ\ifhist@vertޤ ��‘I±21Ž‘p2Í\ifnum–¹–\hist@y“>#2“\@tempcnta\hist@yŽ¡��‘I±22Ž‘yw^Í\else–¹–\@tempcnta“#2“\fiŽŸ�‘I²then–³Òw�¸ãe“set“Ï\@tempcntb“²to“the“same“v‘ÿqÇalue“and“Ï\@tempcnta“²to“the“length“of“theŽŸ �‘Iline–UUto“dra�¸ãw.ަ��‘I±23Ž‘p2Í\@tempcntb\@tempcntaŽ¡��‘I±24Ž‘p2Í\advance\@tempcnta‘¹–-\hist@ystartޤ�‘I²W‘ÿ*ªe–UUdra�¸ãw“the“lineަ��‘I±25Ž‘p2Í\put(\hist@x,\@tempcntb){\line(0,-1){\@tempcnta}}%Ž¡�‘I²whic�¸ãh–UU nishes“this“case.ަ��‘I±26Ž‘a×pÍ\elseŽ¡�‘I²In–Iîthe“other“case“(i.e.‘múif“Ï\noverticallines“²wš¸ãas“set)“w˜e“ha˜v˜e“to“dra˜w“a“line“fromŽŸ �‘Iµy�Ÿÿ´iŽ‘©¡²to–UUµy�Ÿÿ´i±+1Ž‘ tO².‘qÇW‘ÿ*ªe“set“Ï\@tempcnta“²to“µy�Ÿÿ´i±+1Ž‘­/¸‘8àµy�Ÿÿ´iŽŽ¦��‘I±27Ž‘p2Í\@tempcnta‘¹–-\hist@yŽŸ ��‘I±28Ž‘p2Í\advance\@tempcnta‘¹–#2ŽŽŸ�’ø²3ŽŽŒ‹Πª� ýs o� ý´�‘I²and–UUdra�¸ãw“the“line.Ž©��‘I±29Ž‘p2Í\ifnum–¹–\@tempcnta“>\z@ޤ ��‘I±30Ž‘~0ôÍ\put(\hist@x,\hist@y){\line(0,1){\@tempcnta}}\elseŽ¡��‘I±31Ž‘~0ôÍ\put(\hist@x,\hist@y){\line(0,-1){-\@tempcnta}}\fiޤ�‘I²Thš¸ãus–UUendeth“the“dra˜wing.ަ��‘I±32Ž‘a×pÍ\fiŽ¡�‘I²Finally–~Žw�¸ãe“set“Ï\hist@y“²to“µy�Ÿÿ´i±+1Ž‘òݲand“call“Ï\hist@next“²to“lošGok“for“the“next“co˜ordinateޤ �‘Ipair.ަ��‘I±33Ž‘a×pÍ\hist@y‘¹–#2\hist@next}ŽŸ����‘yºhist@endŽŽŽ‘I²There–ëŒis“only“one“thing“wš¸ãe“left“out:‘ž4what“if“there“is“no“more“op�Gen“paren˜thesis?Ž¡�‘IThat's–UUthe“easy“part:‘qÇdo“nothing.ަ��‘I±34Ž‘Sª®Í\def\hist@end{}ŽŸ�‘I²F‘ÿ*ªrank–8VMittelbac�¸ãh“suggested“that“the“µx²{cošGordinate“should“sp˜ecify“the“midp˜oin�¸ãt“ofŽ¡�‘Ithe–»çhistogram“bar,›Õ‹not“the“upp�Ger“left“corner.‘¥}Ho•¸ãw“ev“er,˜I‘»Ídon't–»çsee“ho�¸ãw“this“willŽ¡�‘Iwš¸ãork–UUif“the“bars“ha˜v˜e“di eren˜t“widths.‘qÇWhat“do“y˜ou“think“ab�Gout“it?Ž¡�‘XW›ÿ*ªell,–UUthat's“all.‘qÇUse“it“and“enjo�¸ãy˜.ŽŽŸ�’ø4ŽŽŒø$Bƒ’À;説 ó(ý': cmti10ó$ßê cmmi10ó 0e—rcmmi7óKñ`y cmr10óÙ“ Rcmr7óäO£ linew10ù(‹ßßßßßß