You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you render the following qmd file, only the first bar plot is interactive (without visual highlights). The second plot (heat map) is not interactive.
Reproducible Steps
Create the following qmd file.
multiple_plots.qmd:
---
title: "maidr test"
format: html
---
## Barplot
```{python}
import matplotlib.pyplot as plt
import maidr
import seaborn as sns
# Load the penguins dataset
penguins = sns.load_dataset("penguins")
# Create a bar plot showing the average body mass of penguins by species
plt.figure(figsize=(10, 6))
b_plot = sns.barplot(
x="species", y="body_mass_g", data=penguins, errorbar="sd", palette="Blues_d"
)
plt.title("Average Body Mass of Penguins by Species")
plt.xlabel("Species")
plt.ylabel("Body Mass (g)")
# plt.show()
maidr.show(b_plot)
```
## Heatmap
```{python}
# Load an example dataset from seaborn
glue = sns.load_dataset("glue").pivot(index="Model", columns="Task", values="Score")
# Plot a heatmap
plt.figure(figsize=(10, 8))
heatmap = sns.heatmap(glue, annot=True, fill_label="Score")
plt.title("Heatmap of Model Scores by Task")
# Show the plot
# plt.show()
maidr.show(heatmap)
```
Render the qmd file and check the html result.
The text was updated successfully, but these errors were encountered:
If you render the following qmd file, only the first bar plot is interactive (without visual highlights). The second plot (heat map) is not interactive.
Reproducible Steps
multiple_plots.qmd
:The text was updated successfully, but these errors were encountered: