yhat / ggpy

ggplot port for python
http://yhat.github.io/ggpy/
BSD 2-Clause "Simplified" License
3.69k stars 573 forks source link

Odd bug in geom_tile #645

Open Deom23 opened 6 years ago

Deom23 commented 6 years ago

This stems from the comments in this issue, im not sure anyone ever opened a ticket to resolve the issue.

The following code gives this error: raises TypeError: can't multiply sequence by non-int of type 'float'

import pandas as pd
import numpy as np
from ggplot import ggplot, aes, geom_tile, xlab, ylab, ggtitle
df = pd.DataFrame({'x': ['a', 'b', 'c', 'a'], 'y': [
                  3, 2, 1, 2], 'fill': np.random.random(4)})
ggplot(aes(x='x', y='y', fill='fill'), data=df) + geom_tile() + \
    xlab('X Label') + ylab('Y Label') + ggtitle('This is geom_tile!\n')
Deom23 commented 5 years ago

Can we get some attention to this?