question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rank1D graph has an argument `color`. But when we pass a color as a string its simply not working.

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lwgraycommented, Sep 5, 2019

Hi @sanu-s Thanks for using Yellowbrick. I am not able to reproduce your problem. Can you provide more info (see above template questions) ?

0reactions
sanu-scommented, Sep 6, 2019

@lwgray the issue seems fixed in v1.0 thank you so much

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found