Relative axis scaling in graph doesn't work with negative values
-
frog
If you've not already done the fix, it's presumably just a matter of removing the outer
max()from line 66 ofcore/gui/balance_graph.py:ymax = max(0, max(point[1] for point in self._data))becomes
ymax = max(point[1] for point in self._data)I've not had time to get all the dependencies together to get it building yet, so can't yet test to see if it makes sense or breaks any tests...
-
Virgil Dupras
Yeah, it's probably a very simple fix. But what I have to do (which I haven't done yet) is to check whether there was a reason for this axis behavior.
-
Virgil Dupras
(if there's a reason, there's a test for it, so yeah, it's a matter of making the fix and see if it breaks any test)
-
Virgil Dupras
- State changed from new to accepted
I could reproduce the bug. In a new file, put a "negative" transaction for 10k and the scale of the NW graph will go from 0 to -20000. Make it "positive" and the scale goes from 9900 to 10100.
-
Virgil Dupras
- Assigned user set to Virgil Dupras
-
Virgil Dupras
- State changed from accepted to fixed
(from [8a89761616c0]) [#257 Relative axis scaling in graph doesn't work with negative values state:fixed] Made Y axis scaling work for negative values in balance graph. https://bitbucket.org/hsoft/moneyguru/changeset/8a89761616c0/
-
Virgil Dupras
@frog: It didn't break any test, and yes, it was this line.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.