cyberosa commited on
Commit
fe2933b
·
1 Parent(s): df6c9e7

Fixing font size of y axis

Browse files
Files changed (1) hide show
  1. tabs/tokens_votes_dist.py +2 -0
tabs/tokens_votes_dist.py CHANGED
@@ -23,6 +23,7 @@ def get_based_tokens_distribution(market_id: str, all_markets: pd.DataFrame):
23
  # add axis titles
24
  plt.xlabel("Probability percentage(%)")
25
  plt.ylabel("Sample date")
 
26
  first_outcome = selected_market.iloc[0].first_outcome
27
  second_outcome = selected_market.iloc[0].second_outcome
28
  ax.legend(
@@ -47,6 +48,7 @@ def get_based_votes_distribution(market_id: str, all_markets: pd.DataFrame):
47
  # add axis titles
48
  plt.xlabel("Probability percentage(%)")
49
  plt.ylabel("Sample date")
 
50
  first_outcome = selected_market.iloc[0].first_outcome
51
  second_outcome = selected_market.iloc[0].second_outcome
52
  ax.legend(
 
23
  # add axis titles
24
  plt.xlabel("Probability percentage(%)")
25
  plt.ylabel("Sample date")
26
+ plt.yticks(fontsize=8)
27
  first_outcome = selected_market.iloc[0].first_outcome
28
  second_outcome = selected_market.iloc[0].second_outcome
29
  ax.legend(
 
48
  # add axis titles
49
  plt.xlabel("Probability percentage(%)")
50
  plt.ylabel("Sample date")
51
+ plt.yticks(fontsize=8)
52
  first_outcome = selected_market.iloc[0].first_outcome
53
  second_outcome = selected_market.iloc[0].second_outcome
54
  ax.legend(