Opened 2 years ago

Last modified 19 months ago

#23104 new defect

implement alpha for streamline plots

Reported by: kcrisman Owned by:
Priority: minor Milestone: sage-8.0
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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

Change History (1)

comment:1 Changed 19 months ago by yzh

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.

Note: See TracTickets for help on using tickets.