Skip to content
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

FIX: marker size issue in plot_connectome #2185 #2186

Merged
merged 9 commits into from
Oct 28, 2019
Merged

FIX: marker size issue in plot_connectome #2185 #2186

merged 9 commits into from
Oct 28, 2019

Conversation

robbisg
Copy link
Contributor

@robbisg robbisg commented Oct 17, 2019

fixes #2185

@codecov
Copy link

codecov bot commented Oct 17, 2019

Codecov Report

Merging #2186 into master will increase coverage by <.01%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2186      +/-   ##
==========================================
+ Coverage   92.34%   92.35%   +<.01%     
==========================================
  Files         149      149              
  Lines       18867    18872       +5     
  Branches     2302     2300       -2     
==========================================
+ Hits        17423    17429       +6     
- Misses        924      925       +1     
+ Partials      520      518       -2
Impacted Files Coverage Δ
nilearn/plotting/displays.py 88.31% <33.33%> (-0.22%) ⬇️
nilearn/datasets/tests/test_func.py 99.41% <0%> (ø) ⬆️
nilearn/plotting/tests/test_js_plotting_utils.py 97.6% <0%> (+0.01%) ⬆️
nilearn/datasets/func.py 81.42% <0%> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 510e724...1cae5f1. Read the comment docs.

Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I know that it is hard if not impossible to test. You confirm that it solves #2185 ?

@jeromedockes
Copy link
Member

LGTM. I know that it is hard if not impossible to test. You confirm that it solves #2185 ?

not really, the scattered points are a PathCollection in the matplotlib axis collections, and the PathCollection has a get_sizes() method

@jeromedockes
Copy link
Member

LGTM. I know that it is hard if not impossible to test. You confirm that it solves #2185 ?

not really, the scattered points are a PathCollection in the matplotlib axis collections, and the PathCollection has a get_sizes() method

although I agree it may not be worth the trouble

Copy link
Contributor Author

@robbisg robbisg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I edited as suggested!

@jeromedockes
Copy link
Member

I edited as suggested!

thanks!

@jeromedockes
Copy link
Member

jeromedockes commented Oct 18, 2019 via email

List and numpy array accepted
Co-Authored-By: jeromedockes <jerome@dockes.org>
Copy link
Member

@jeromedockes jeromedockes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot @robbisg !

@robbisg
Copy link
Contributor Author

robbisg commented Oct 18, 2019

It was a pleasure @jeromedockes !! Thank all of you for developing this package!!

@kchawla-pi
Copy link
Collaborator

An entry in whats_new under Fixes section for 0.6.0a

@kchawla-pi
Copy link
Collaborator

THis is almost complete, we need to correct the Flake8 stylistic erro. It is the last entry if you click on details for TravisCI. I am reproducing the log here for convenience:

Running flake8 on the diff in the range 510e724..25d969f (6 commit(s)):

--------------------------------------------------------------------------------

nilearn/plotting/displays.py:417:1: W293 blank line contains whitespace

nilearn/plotting/displays.py:420:1: W293 blank line contains whitespace

This means that the blank lines indicated here contain spaces or tab characters. These should be removed.

@robbisg
Copy link
Contributor Author

robbisg commented Oct 18, 2019

@kchawla-pi I hope now it's ok. If not, can you suggest me the edit? Thank you! ;)

@kchawla-pi
Copy link
Collaborator

kchawla-pi commented Oct 24, 2019

Hey @robbisg That wasn't what I had meant, but it's not a complicated change, though unfamiliar. I'll look at this tomorrow.

@kchawla-pi
Copy link
Collaborator

kchawla-pi commented Oct 25, 2019

Hey yeah, in the next set of change you did most of the formatting fix. There's only one remaining.

In nilearn/plotting/displays.py:419:15 (line 419, position 15), that line is not indented with spaces that are multiple of 4. Fix that to satisfy Flake8.

             marker_size = np.asarray(marker_size)[relevant_coords]

The indentation is 14 spaces long, so make it a multiple of 4, while keeping it at the appropriate level.

In your commit message, explain why the change was made, for example "Fixed improper indentation" . Git can already tell us which files were changed and what changes were made to the code.

@kchawla-pi kchawla-pi merged commit 7ca7d11 into nilearn:master Oct 28, 2019
@robbisg robbisg deleted the fix_plot_glass_brain branch October 28, 2019 10:11
kchawla-pi added a commit to illdopejake/nilearn that referenced this pull request Nov 9, 2019
…nt_modify_fetch_dev

* 'master' of https://github.com/nilearn/nilearn:
  Verbose doc building to ease tracking of progress & diagnose stalls (nilearn#2203)
  New conda env is created once conda path has been activated
  Conda environment is created for full-builds
  Refactor CircleCI config for reduced redundancy (nilearn#2204)
  Installation should fail on Python < 3.5 (nilearn#2198)
  [MRG] Add get data function (nilearn#2172)
  fix error when colorscale given boolean array (nilearn#2193)
  remove is_valid filter (nilearn#2169)
  Moved new entries to next release
  FIX: marker size issue in plot_connectome nilearn#2185 (nilearn#2186)
  Updated Appveyor status badge
  Run tests on local Windows machines & Azure Pipelines (nilearn#2191)
  Updated requirements list for devs (nilearn#2190)
  Update azure-pipelines.yml for Azure Pipelines
  Release Nilearn 0.6.0 alpha (nilearn#2164)
  Making fetch_localizer_button_task backwards compatibile (nilearn#2182)
  [DOC] Update whats_new to reference nilearn#2013 (Merging of several examples) (nilearn#2183)
kchawla-pi added a commit to pausz/nilearn that referenced this pull request Nov 21, 2019
…smooth-image

* 'master' of https://github.com/nilearn/nilearn: (25 commits)
  Add testing for Nilearn setup & install & Fix the broken dependency installation (nilearn#2201)
  Fix uniform ball cloud test for sklearn >= 0.22 (nilearn#2175)
  MAINT: sklearn Deprecations (nilearn#2219)
  DOC: title in bold
  [DOC] Add note about decreasing memory usage (nilearn#2223)
  Rel 060b0 (nilearn#2208)
  Nilearn 0.6.0b0 release (nilearn#2206)
  Fixed the redundant & missing test case in merged PR nilearn#2035 (nilearn#2205)
  Modify fetch_development_fmri to fetch adults or children (nilearn#2035)
  Verbose doc building to ease tracking of progress & diagnose stalls (nilearn#2203)
  New conda env is created once conda path has been activated
  Conda environment is created for full-builds
  Refactor CircleCI config for reduced redundancy (nilearn#2204)
  Installation should fail on Python < 3.5 (nilearn#2198)
  [MRG] Add get data function (nilearn#2172)
  fix error when colorscale given boolean array (nilearn#2193)
  remove is_valid filter (nilearn#2169)
  Moved new entries to next release
  FIX: marker size issue in plot_connectome nilearn#2185 (nilearn#2186)
  Updated Appveyor status badge
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marker size array is not well displayed in plot_glass_brain
4 participants