Skip to content

Commit

Permalink
docs(example): simplify plot titles in demo.qmd for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jooyoungseo committed Oct 23, 2024
1 parent 7ef1fb6 commit 1e72335
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions example/quarto/demo.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import matplotlib.pyplot as plt
import maidr
import seaborn as sns
# Avoid duplicate of the plot by turning off plt interactive mode
plt.ioff()
# Load the penguins dataset
penguins = sns.load_dataset("penguins")
Expand Down Expand Up @@ -46,7 +43,7 @@ petal_lengths = iris["petal_length"]
plt.figure(figsize=(10, 6))
hist_plot = sns.histplot(petal_lengths, kde=True, color="blue", binwidth=0.5)
plt.title("Histogram of Petal Lengths in Iris Dataset")
plt.title("Petal Lengths in Iris Dataset")
plt.xlabel("Petal Length (cm)")
plt.ylabel("Frequency")
Expand Down Expand Up @@ -74,7 +71,7 @@ line_plot = sns.lineplot(
style="day",
legend=False,
)
plt.title("Line Plot of Tips vs Total Bill (Thursday)")
plt.title("Tips vs Total Bill (Thursday)")
plt.xlabel("Total Bill")
plt.ylabel("Tip")
Expand All @@ -92,7 +89,7 @@ glue = sns.load_dataset("glue").pivot(index="Model", columns="Task", values="Sco
# 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")
plt.title("Model Scores by Task")
# Show the plot
# plt.show()
Expand Down

0 comments on commit 1e72335

Please sign in to comment.