You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of datar and its backends.
Issue Description
I am running the plotnine example on the repo page and I get an error message AttributeError: 'NoneType' object has no attribute 'x' when running the code below.
# works with plotnine# example grabbed from https://github.com/has2k1/plydatafromdatarimportf# this line not in the documentationimportnumpyfromdatar.baseimportsin, pifromdatar.tibbleimporttibblefromdatar.dplyrimportmutate, if_elsefromplotnineimportggplot, aes, geom_line, theme_classicdf=tibble(x=numpy.linspace(0, 2*pi, 500))
(
df>>mutate(y=sin(f.x), sign=if_else(f.y>=0, "positive", "negative"))
>>ggplot(aes(x="x", y="y"))
+theme_classic()
+geom_line(aes(color="sign"), size=1.2)
)
Also, can you add from datar import f line of code to the the documentation example? - without it, the code does not run
datar version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of datar and its backends.
Issue Description
I am running the
plotnine
example on the repo page and I get an error messageAttributeError: 'NoneType' object has no attribute 'x'
when running the code below.Also, can you add
from datar import f
line of code to the the documentation example? - without it, the code does not runExpected Behavior
Running the code show
plotnine
plotInstalled Versions
The text was updated successfully, but these errors were encountered: