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 colorcycle #32

Merged
merged 2 commits into from
Jul 15, 2019
Merged

Conversation

lukashergt
Copy link
Collaborator

Description

In #21 the calls of ax.plot([], []) and similar were changed to setting x = [] and passing it to the plotting functions. This does not take care of the different colour cycles of plot and scatter and thus does not work.
Thus, here I am reverting some of the changes from #21.

It might be good to write a test for this where it actually checks the colours used. This might be much easier once #30 is merged.

Fixes #31

Checklist:

  • I have performed a self-review of my own code
  • My code is PEP8 compliant (flake8 anesthetic tests)
  • My code contains compliant docstrings (pydocstyle --convention=numpy anesthetic)
  • New and existing unit tests pass locally with my changes (python -m pytest)
  • I have added tests that prove my fix is effective or that my feature works

Lukas Hergt added 2 commits July 15, 2019 00:21
* In handley-lab#21 the calls of `ax.plot([], [])` and similar were changed to
  setting `x = []` and passing it to the plotting functions.
  - This does not take care of the different colour cycles of plot and
    scatter and thus does not work.

Changes to be committed:
* modified:   anesthetic/samples.py
@lukashergt lukashergt added the bug Something isn't working label Jul 15, 2019
@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #32 into master will decrease coverage by 0.36%.
The diff coverage is 81.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
- Coverage   90.32%   89.95%   -0.37%     
==========================================
  Files          14       14              
  Lines         982      986       +4     
==========================================
  Hits          887      887              
- Misses         95       99       +4
Impacted Files Coverage Δ
anesthetic/samples.py 89.2% <81.81%> (-0.92%) ⬇️
anesthetic/plot.py 89.84% <0%> (-1.02%) ⬇️

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 395937c...eec5fc4. Read the comment docs.

@williamjameshandley williamjameshandley added this to the 1.1 milestone Jul 15, 2019
@williamjameshandley williamjameshandley merged commit eefab0a into handley-lab:master Jul 15, 2019
@lukashergt lukashergt deleted the fix_colorcycle branch July 15, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong colour when second model plots into empty axes
2 participants