Repository navigation
Conversation
| @@ -469,6 +466,9 @@ def show_rag(labels, rag, img, border_color='black', edge_width=1.5, | |||
| >>> lc = graph.show_rag(labels, g, img) | |||
| >>> cbar = plt.colorbar(lc) | |||
There was a problem hiding this comment.
the doctest here is failing (see travis build), please import matplotlib as plt
|
Please correct the doctest, otherwise LGTM. |
|
Once @emmanuelle 's comment is addressed, I'm +1. |
|
I'm actually 👎 on this. I remember there was a huge amount of discussions on how to treat @mdboom have you tried to "play" with a list of ignored [sub]packages in PyInstaller build config to exclude Qt-related parts? |
|
The discussion I have in mind is there: #2103 |
|
So, if I understand well, the discussion in #2103 was rather in favor of limiting the matplotlib dependency. Since scikit-image is a library and not a tool for the end-user only, if other projects can use it for a different purpose than interactive image processing, good for them. |
|
I am fine with the proposed change in this PR. No strong opinion either way. |
|
@mdboom Could you update the PR to fix the doctest? I'm with @emmanuelle and @ahojnnes on this. |
|
I think we should merge this. I've done a rebase and pushed to #2596 |
|
I'm actually not sure what the correct "protocol" is in this case. Keep the PR open and annoy the original author by further requests? Enable Travis-CI on my own branch, run the test suite on a commit there, and verify it works before merging? Make a new PR? |
|
@stefanv +1 I think that should be discussed on the ML. |
Description
I have a new project that for various reasons I won't get into must be delivered as a standalone PyInstaller .exe.
With skimage importing matplotlib at the top level, all of matplotlib, and thus all of Qt and a bunch of other stuff gets pulled in.
Maybe it's weird getting a PR to reduce the use of matplotlib from me of all people... ;) But this particular app doesn't use matplotlib at all.
Checklist
I'm a little unsure about how to write a unit test for this -- the test suite still rightly and understandably imports matplotlib, so we can't just assert that it wasn't imported.