Rank1D graph has an argument `color`. But when we pass a color as a string its simply not working.
See original GitHub issueDescribe the bug I’m using yellow brick version 0.9.1. I couldn’t change the colour of Rank1D bar digram. It’s set to blue by default and not changing
To Reproduce
from yellowbrick.features import Rank1D
# Load the credit dataset
# Instantiate the 1D visualizer with the Sharpiro ranking algorithm
visualizer = Rank1D(algorithm='shapiro', color='red')
visualizer.fit(X, y) # Fit the data to the visualizer
visualizer.transform(X) # Transform the data
visualizer.poof()
Dataset I used the classical diabetes data
Expected behavior I would like to change the colour of Rank2D graph from blue to red, green or any
Traceback
If applicable, add the traceback from the exception.
Desktop (please complete the following information):
- OS: [Ubuntu 18.04.1]
- Python Version [3.6]
- Yellowbrick Version [e.g. 0.9]
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ValueError: Using a string of single character colors as a color ...
ValueError: Using a string of single character colors as a color sequence is not supported. The colors can be passed as an explicit...
Read more >Rank Features — Yellowbrick v1.5 documentation
Implements 1D (histograms) and 2D (joint plot) feature rankings. ... Rank1D computes a score for each feature in the data set with a...
Read more >Yellowbrick Documentation - Read the Docs
Use Yellowbrick in your work, referencing the Visualizers and API for assistance with specific visualizers and detailed information on optional ...
Read more >python - Matplotlib > ValueError: 'c' argument must be a color ...
I am trying to encode the rating with 4 different categories based on value and I already mapped them with their specific colors...
Read more >Untitled
His respect for and trust in me really have made me go forward with ... They show projections using glyphs, color or curve-based...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sanu-s Thanks for using Yellowbrick. I am not able to reproduce your problem. Can you provide more info (see above template questions) ?
@lwgray the issue seems fixed in v1.0 thank you so much