Closed jburos closed 7 years ago
When this problem surfaced, the lifelines
version was 0.9.3.2
. It was resolved by removing these two lines in survival.py:
with_condition_color = colors.hex2color(with_condition_color)
no_condition_color = colors.hex2color(no_condition_color)
without them, the colors are passed in as hex instead of rgb.
Currently looking to see in which version of matplotlib (and/or lifelines) this behavior changed.
Confirmed with lifelines v 0.9.1.0 and 0.9.2.0 that the previous behavior works & two lines are required in order to avoid an error.
With 0.9.3.2 through 0.11.xx, these two lines cause an error & need to be removed.
Doesn't appear to be mentioned in lifelines changelog.md, but fix likely involves hard-coding lifelines version >= 0.9.3.2 & removing these two lines.
I'm using
plot_survival
on a cohort & am getting a strange error:Input:
Output:
Using Python 3.5.2 & matplotlib 2.0.2 (installed via conda)
Here is the traceback: