Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 923 by benjamin...@gmail.com: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues http://code.google.com/p/moose-technology/issues/detail?id=923
ESValueLabelDecorator>>chooseNonOverlappingValues has the line... chosenValues add: (self values minValue: [:each | each value]).
but minValue: injects (Float infinity) so that if 'self values' is empty then (Float infinity) is added to choseValues, which later are #rounded causing an error in the Morph drawing and subsequent RSOD for the EyeSee morph.
I am not sure if I've done something wrong that causes 'self values' to be empty, but in any case, this should not kill the Morph.
Just for further information, here is the triggering code... browser transmit from: #navigationtree; to: #attributes; andShow: [ :a | a eyesee title: 'Optimize' ; diagram: [ :renderer :input | renderer scatterplot diagramTitle: '@', input absorbedLoad asString , 'kW' ; x: #ratedOutput ; y: [ :m | m powerLossForAbsorbedLoad: input absorbedLoad ] ; valueAxis ; addXDecorator: ESValueLabelDecorator new ; models: (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1 ratedOutput < m2 ratedOutput ]). ].
where if in a Workspace I do... models:= (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1 ratedOutput < m2 ratedOutput ])'. models collect: [ :m | m ratedOutput -> m powerLossForAbsorbedLoad: 24 ] explore
...then all the data looks okay.
Comment #1 on issue 923 by benjamin...@gmail.com: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues http://code.google.com/p/moose-technology/issues/detail?id=923
Here is an example to isolate the problem from my own code...
The following works as expected... |diag| diag := ESDiagramRenderer new. (diag scatterplot) y: [ :x | x squared ]; x: #value; valueAxis; models: {1. 2. 3. 4. 5}. diag open
However replace with the line... y: [ :x | x squared negated ];
and you get the error
Updates: Status: WontFix
Comment #2 on issue 923 by tu...@tudorgirba.com: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues http://code.google.com/p/moose-technology/issues/detail?id=923
I think this won't get fixed if we focus on Graph-ET
Comment #3 on issue 923 by benjamin...@gmail.com: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues http://code.google.com/p/moose-technology/issues/detail?id=923
fair enough