Talk:Stem-and-leaf plot: Difference between revisions

m
lang tags replaced by syntaxhighlight
(→‎Less Useful for negative numbers?: Lets not add negatives either.)
m (lang tags replaced by syntaxhighlight)
 
(3 intermediate revisions by 3 users not shown)
Line 40:
 
:: I would prefer we leave out negatives. Stem plots look crap for negative numbers. --[[User:Paddy3118|Paddy3118]] 08:18, 18 December 2009 (UTC)
 
::: I rather agree about leaving out negatives, it does complicate the programming. &nbsp; It took a few extra REXX statements to handle the case of &nbsp; '''-0''' &nbsp; and &nbsp; '''0''' &nbsp; to be handled as separate indices. &nbsp; It would be nice to have a companion Rosetta Code task to handle negative numbers &nbsp; (and also zeroes). &nbsp; An '''extra credit''' at this late point would be a day late and a dollar short. &nbsp; '''But''', I disagree about the stem plots looking like crap for negative numbers. &nbsp; See the output for the 2<sup>nd</sup> REXX version. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 00:57, 4 June 2016 (UTC)
 
:: Should I appear smug at this point? ;) --[[User:Glennj|glennj]] 16:09, 16 December 2009 (UTC)
Line 55 ⟶ 57:
243 109 226 66 179 201 61 84 93 83 181 88</pre>
::: Generated using:
<langsyntaxhighlight lang="j"> require 'stats/distribs/normal'
randomize=: ] /: 0 ?@$~ #
showStemLeaf dat=: (84 20,:184 40) ([: randomize ,@:(<.@:rnorm"1 0)) 30 30
Line 81 ⟶ 83:
│25│ │
│26│7 │
└──┴─────────────┘</langsyntaxhighlight>
--[[User:Tikkanz|Tikkanz]] 01:22, 18 December 2009 (UTC)
 
Line 89 ⟶ 91:
 
:The task is an exercise in producing a visual layout of information. Think about what wouldn't look out of place in a book or article. If you choose monospaced text, it might work, but you lose a lot of options about particular spacing and vertical rule style (and you may not even be able to make an unbroken line, depending on the text renderer). —[[User:Kevin Reid|Kevin Reid]] 00:45, 17 December 2009 (UTC)
 
:: But if you've read the WP article on these things, you'll know that they were only ever popular when created using monospaced fonts. Going for anything else... it's not really in the spirit of the things. –[[User:Dkf|Donal Fellows]] 10:10, 18 December 2009 (UTC)
 
I too have problems with this. You need mono-spaced text to get the height (width) of each line right. If rendered in, say, HTML then I guess you could use a highlight colour to create solid bars of colour. --[[User:Paddy3118|Paddy3118]] 11:33, 25 December 2009 (UTC)
3,022

edits