male/female colored plots
This commit is contained in:
@@ -458,6 +458,12 @@ def _():
|
||||
return
|
||||
|
||||
|
||||
@app.cell
|
||||
def _():
|
||||
COLOR_GENDER = True
|
||||
return (COLOR_GENDER,)
|
||||
|
||||
|
||||
@app.cell
|
||||
def _():
|
||||
mo.md(r"""
|
||||
@@ -473,8 +479,8 @@ def _(S, data):
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, v_18_8_3):
|
||||
S.plot_voice_selection_counts(v_18_8_3, title="Top 8 Voice Selection from 18 Voices", x_label='Voice')
|
||||
def _(COLOR_GENDER, S, v_18_8_3):
|
||||
S.plot_voice_selection_counts(v_18_8_3, title="Top 8 Voice Selection from 18 Voices", x_label='Voice', color_gender=COLOR_GENDER)
|
||||
return
|
||||
|
||||
|
||||
@@ -487,8 +493,8 @@ def _():
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, v_18_8_3):
|
||||
S.plot_top3_selection_counts(v_18_8_3, title="Top 3 Voice Selection Counts from 8 Voices", x_label='Voice')
|
||||
def _(COLOR_GENDER, S, v_18_8_3):
|
||||
S.plot_top3_selection_counts(v_18_8_3, title="Top 3 Voice Selection Counts from 8 Voices", x_label='Voice', color_gender=COLOR_GENDER)
|
||||
return
|
||||
|
||||
|
||||
@@ -508,8 +514,8 @@ def _(S, data):
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, top3_voices_weighted):
|
||||
S.plot_weighted_ranking_score(top3_voices_weighted, title="Most Popular Voice - Weighted Popularity Score<br>(1st = 3pts, 2nd = 2pts, 3rd = 1pt)")
|
||||
def _(COLOR_GENDER, S, top3_voices_weighted):
|
||||
S.plot_weighted_ranking_score(top3_voices_weighted, title="Most Popular Voice - Weighted Popularity Score<br>(1st = 3pts, 2nd = 2pts, 3rd = 1pt)", color_gender=COLOR_GENDER)
|
||||
return
|
||||
|
||||
|
||||
@@ -524,8 +530,8 @@ def _():
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, top3_voices):
|
||||
S.plot_ranking_distribution(top3_voices, x_label='Voice', title="Distribution of Voice Rankings (1st, 2nd, 3rd)")
|
||||
def _(COLOR_GENDER, S, top3_voices):
|
||||
S.plot_ranking_distribution(top3_voices, x_label='Voice', title="Distribution of Top 3 Voice Rankings (1st, 2nd, 3rd)", color_gender=COLOR_GENDER)
|
||||
return
|
||||
|
||||
|
||||
@@ -580,8 +586,8 @@ def _():
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, top3_voices):
|
||||
S.plot_most_ranked_1(top3_voices, title="Most Popular Voice<br>(Number of Times Ranked 1st)", x_label='Voice')
|
||||
def _(COLOR_GENDER, S, top3_voices):
|
||||
S.plot_most_ranked_1(top3_voices, title="Most Popular Voice<br>(Number of Times Ranked 1st)", x_label='Voice', color_gender=COLOR_GENDER)
|
||||
return
|
||||
|
||||
|
||||
@@ -594,10 +600,10 @@ def _():
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(S, data):
|
||||
def _(COLOR_GENDER, S, data):
|
||||
# Get your voice scale data (from notebook)
|
||||
voice_1_10, _ = S.get_voice_scale_1_10(data)
|
||||
S.plot_average_scores_with_counts(voice_1_10, x_label='Voice', domain=[1,10], title="Voice General Impression (Scale 1-10)")
|
||||
S.plot_average_scores_with_counts(voice_1_10, x_label='Voice', domain=[1,10], title="Voice General Impression (Scale 1-10)", color_gender=COLOR_GENDER)
|
||||
return (voice_1_10,)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user