-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a BoxPlot class #88
Comments
Tagging myself in as I think I can help with this one. |
I've made a start on this one - branch 88 in my fork. |
👍 Will try to get to it. |
Also, pretty sure we can add matplotlib as a dependency on travis... Let me go check that... |
Yeah looks fine: http://docs.travis-ci.com/user/languages/python/ Here's a SO question (mainly due to a problem with python 3 so not relevant): http://stackoverflow.com/questions/1739494/travis-ci-matplotlib-dependency-and-python3 |
I'm hitting the matlibplot problem again - must be something I don't understand about the library. Line 47 in run_tournament.py ought to give the same results as line 48, but doesn't. |
I've got some time, so taking a look now. |
Found the error somewhere, I think your numpy array is carrying out integer division... Finding where that happens now. |
Think I've fixed it: sending you a PR (apologies in advance if I just confused myself). |
Ok, I think I have to actually 'request that you pull', I can't seem to get github to send you a nice pull request as I did not fork your fork... https://github.com/drvinceknight/Axelrod/tree/88 Let me know if that doesn't work :) 👍 |
That branch failed on travis for me by the way (but I just checked that outputs where the same, didn't run tests). |
I'll have a look some time tomorrow - thanks for the help |
My pleasure (if I understood the issue correctly obviously). On Sat, Mar 7, 2015 at 9:38 PM Owen Campbell notifications@github.com
|
Yep - that works!! (But why did that need adding to the method, when it's not required within run_tournament.py)? I'll finish this off and submit a PR when I'm done |
Awesome!
Because at the top of Any chance of you de-numpying? No problem if not, can get to that at another time. |
Agggghhhhhhh!!!! Missed that subtlety entirely!!! OK - I'll sort out the de-numpification and the try-catch for matplotlib before I create the PR. |
(By the way: the test suite you wrote, really is excellent I'm just writing a bunch of tests for #52 and it makes it really easy: thanks!)
Hehe, yeah pretty much my first go to when debugging Python: 'integer division'? Really no problem if the de-numpy thing doesn't happen, I expect that'll be a weekend job to go through everything at some point... |
On second thoughts, I'll leave the de-numpification for a separate PR. |
Yeah, completely fine: we're in transition :D On Sun, Mar 8, 2015 at 2:55 PM Owen Campbell notifications@github.com
|
You're welcome. I had to write it for myself in order to understand properly what most of the code was actually doing!! |
This class should handle the production of a matlibplot boxplot based on a ResultSet instance passed to its init method.
The functions to generate the boxes/whiskers, xticks, and title should be separate methods with tests for each.
The method which would return an instance of matlibplot.Figure probably cannot be tested as Travis does not have matlibplot installed.
run_tournament.py would handle the creation of .png files based on the Figure object returned from this class.
The text was updated successfully, but these errors were encountered: