-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Labels
Description
I am not sure what is going on and if it is even a bug or side effekt, but .draw() does strange things:
import pandas as pd
import numpy as np
import plotnine as p9
dates = pd.date_range(start='2023-01-01', periods=10)
values = np.random.rand(10)
df = pd.DataFrame({'date': dates, 'value': values})
p=(p9.ggplot(df)
+p9.geom_line(p9.aes(x='date',y='value'))
)
p.show()
so far so good:
now using:
fig=p.draw(show=False)
p.show()
the behaviour is different, sometimes it hides the whole x and y axis sometimes just parts