JPhrases/Plotting
< JPhrases
Jump to navigation
Jump to search
10D. Plotting
m0=: #"0&1 Stacks of 1s of length y followed by 0s m1=: #.&.|: Decimal value of 2-item Boolean list y m2=: ] { ' +ox'"_ One of four characters chosen by y m3=: m2@m1@m0"1 Horizontal barchart of two intgr series y m4=: #"0&'x' Stack of 'x's of length y followed by ' 's m5=: [: i. [: >: >./ Dense indices from 0 thru max y m6=: [: >: [: i. >./ Dense indices from 1 thru max y d7=: [ + [: i. [: -. - Dense indices from x thru y m8=: <./ , >./ Min and max of y m9=: #/.~ Frequency count of items of y m10=: <./ d7 >./ Integers from min y to max y, inclusive m11=: [: >: [: i. ] Integers from 1 thru y, inclusive m12=: [: i. [: >: ] Integers from 0 through y, inclusive m13=: m25 d18 'x'"_ Barchart of y on vertical axis using ' x' m14=: m25 d18 1: Barchart of y on vertical axis using 0 1 m15=: |.@|:@m13 Barchart of y on horizontl axis using ' x' m16=: |.@|:@m14 Barchart of y on horizontl axis using 0 1 m17=: [: -. m20 Table with i{y trailing 0s on row i d18=: #"0 x replications of y m19=: |.@|:@m23 Barchart of y (up the page) m20=: [: |."1 m22 Table with i{y trailing 1s on row i m21=: [: -. m22 Table with i{y leading 0s on row i m22=: d18&1 y replications of 1, trailing 0s m23=: d18&'x' Barchart of y (across the page) d24=: [ {. ] # 1: List of y 1s followed by x-y 0s m25=: [: <: [: m9 m11@(>./) ,] Count of y among 1 through max y m26=: [: <: [: m9 m12@(>./) ,] Count of y among 0 through max y m27=: [: <: [: m9 m10 , ] Count of y among min through max y d28=: [:+/\{.@],>:@[#(}.-}:)@]%>:@[ Interpolate x values between items of y d29=: $@]$((* <.@:% #@]) /:@/:@,) Classify y into x groups