-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add posibility to turn off color bar in 2d plot #1343
Conversation
I like it overall, but perhaps we should change the name of there parameter? Something like |
And indeed something is up with the build server. Perhaps a Sphinx issue. Do you have any idea @kohr-h? |
There's been an update do |
Remove the |
After rebasing, the error should be fixed. |
Definitely That said, feature creep is a real issue here. I'd say yes to changes that are very simple to implement with an additional flag in an |
f922bb9
to
1ea77c2
Compare
odl/util/graphics.py
Outdated
@@ -160,6 +160,11 @@ def show_discrete_data(values, grid, title=None, method='', | |||
axis_fontsize : int, optional | |||
Fontsize for the axes. Default: 16 | |||
|
|||
colorbar : bool, optional | |||
Argument relevant for 2d plots using ``method`` 'imshow'. If the plot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 quick comments:
- ``method`` 'imshow' -> ``method='imshow'``
- "If" can't start a main clause, I guess "Whether" would be more correct. But generally, explanations like "If ``True``, include a colorbar in the plot." are preferred.
1ea77c2
to
94cb2cc
Compare
Great! I will merge after the tests |
Example on how #1342 could be implemented. I found no tests for
odl.util.graphics
, but a minimal working example that shows how it works is given bywhich gives the following images
Is this desirable? Or is it only adding unnecessary complexity to plotting?