Skip to content

Commit

Permalink
Bugfix - Matplotlib - Candlestick Plot (#779)
Browse files Browse the repository at this point in the history
* Bugfix - Matplotlib - Candlestick Plot

Color option was not working for list inputs.

* black fix
  • Loading branch information
mail4umar authored Oct 27, 2023
1 parent d493c43 commit 78743cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion verticapy/machine_learning/memmodel/naive_bayes.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class NaiveBayes(MulticlassClassifier):
'male': 0.583333333333333},
'S': {'female': 0.311212814645309,
'male': 0.688787185354691}}
prior: ArrayLike
The model's classes probabilities.
classes: ArrayLike
Expand Down
2 changes: 1 addition & 1 deletion verticapy/plotting/_matplotlib/candlestick.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def draw(
if "color" in style_kwargs:
color_list = (
style_kwargs["color"] + color_list
if isinstance(style_kwargs, list)
if isinstance(style_kwargs["color"], list)
else [style_kwargs["color"]] + color_list
)
style_kwargs.pop("color")
Expand Down

0 comments on commit 78743cc

Please sign in to comment.