We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using matplotlib in package Moviepy, I want to know is it possible make backgroud transparent with plotting bar.
import matplotlib.pyplot as plt import numpy as np from moviepy.editor import VideoClip from moviepy.video.io.bindings import mplfig_to_npimage x = np.linspace(-2, 2, 200) duration = 2 fig, ax = plt.subplots() def make_frame(t): ax.clear() ax.plot(x, np.sinc(x**2) + np.sin(x + 2*np.pi/duration * t), lw=3) ax.set_ylim(-1.5, 2.5) return mplfig_to_npimage(fig) animation = VideoClip(make_frame, duration=duration) animation.write_gif('matplotlib.gif', fps=20)
As far as I know, the method savefig has attribute transparent, but in this case, is it possible to make backgroud transparent?
The text was updated successfully, but these errors were encountered:
Fixed with v2.1.2
Sorry, something went wrong.
No branches or pull requests
I'm using matplotlib in package Moviepy, I want to know is it possible make backgroud transparent with plotting bar.
As far as I know, the method savefig has attribute transparent, but in this case, is it possible to make backgroud transparent?
The text was updated successfully, but these errors were encountered: