Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid alpha value throws type error #16

Closed
lgienapp opened this issue Aug 29, 2022 · 0 comments
Closed

Grid alpha value throws type error #16

lgienapp opened this issue Aug 29, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@lgienapp
Copy link
Owner

with load_theme("arctic_light").set_grid(axis="x"):
    pd.Series(sizes).sort_values().plot.bar()

produces

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/tmp/ipykernel_16842/1244744067.py in <module>
----> 1 with load_theme("arctic_light").set_grid(axis="x"):
      2     pd.Series(sizes).sort_values().plot.bar()

/media/ssd/BIGSCIENCE/env/lib/python3.7/site-packages/aquarel/theme.py in set_grid(self, draw, axis, ticks, alpha, style, width)
    432                 "axis": axis if axis in self._axis_options else None,
    433                 "ticks": ticks if ticks in self._tick_options else None,
--> 434                 "alpha": alpha if 0 <= alpha <= 1 else None,
    435                 "style": style if style in self._line_style_options else None,
    436                 "width": width,

TypeError: '<=' not supported between instances of 'int' and 'NoneType'
@lgienapp lgienapp added the bug Something isn't working label Aug 29, 2022
lgienapp added a commit that referenced this issue Aug 31, 2022
🐛 Fix alpha value for grid lines (#16)
@lgienapp lgienapp added this to the v0.0.4 milestone Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant