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

implement alpha for streamline plots #23104

Open
kcrisman opened this issue May 30, 2017 · 1 comment
Open

implement alpha for streamline plots #23104

kcrisman opened this issue May 30, 2017 · 1 comment

Comments

@kcrisman
Copy link
Member

In #10775 we implemented streamline plots, but this ask.sagemath question requests alpha transparency for it too. Currently this raises an error.

Component: graphics

Issue created by migration from https://trac.sagemath.org/ticket/23104

@kcrisman kcrisman added this to the sage-8.0 milestone May 30, 2017
@yuan-zhou
Copy link

comment:1

The matplotlib streamplot https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.streamplot.html currently doesn't support the alpha option. To allow alpha transparency, one would have to re-implement streamline_plot by plotting lines and arrows, instead of using the matplotlib function. As the answer https://ask.sagemath.org/question/37728/transparency-option-in-streamline-plot/?answer=37729#post-id-37729 to the ask.sagemath question suggests, one can use the alpha option in PIL as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants