Closed ilia-kats closed 4 weeks ago
Consider this example:
ggplot(data.mtcars, aes("mpg", "cyl")) + geom_hline(yintercept=0, linetype=(0, 5, 10))
This throws a TypeError: object of type 'int' has no len(). On the other hand,
TypeError: object of type 'int' has no len()
ggplot(data.mtcars, aes("mpg", "cyl")) + geom_line(linetype=(0,(5, 10)))
works fine. This is on plotnine 0.14.0.
You are missing some parenthesis in the first snippet, ~linetype=(0, 5, 10)~, linetype=(0, (5, 10)).
linetype=(0, 5, 10)
linetype=(0, (5, 10))
Consider this example:
This throws a
TypeError: object of type 'int' has no len()
. On the other hand,works fine. This is on plotnine 0.14.0.