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

Initialize empty Matplotlib pane #6128

Merged
merged 1 commit into from Dec 27, 2023
Merged

Initialize empty Matplotlib pane #6128

merged 1 commit into from Dec 27, 2023

Conversation

ahuang11
Copy link
Contributor

Closes #6121

import matplotlib.pyplot as plt
import panel as pn
pn.extension()

mpl = pn.pane.Matplotlib()
mpl
fig, ax = plt.subplots()
ax.plot([1, 2, 3])
mpl.object = fig

Copy link

codecov bot commented Dec 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6a4d7f3) 84.67% compared to head (d3b64e7) 84.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6128   +/-   ##
=======================================
  Coverage   84.67%   84.67%           
=======================================
  Files         296      296           
  Lines       44096    44107   +11     
=======================================
+ Hits        37338    37348   +10     
- Misses       6758     6759    +1     
Flag Coverage Δ
ui-tests 40.67% <18.18%> (-0.02%) ⬇️
unitexamples-tests 72.68% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philippjfr philippjfr merged commit 0ea148e into main Dec 27, 2023
13 checks passed
@philippjfr philippjfr deleted the init_empty_mpl branch December 27, 2023 09:04
philippjfr pushed a commit that referenced this pull request Jan 17, 2024
This was referenced Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Matplotlib pane cannot be instantiated empty
2 participants