cyberosa commited on
Commit
da9a926
·
1 Parent(s): 93294d7

fixing figure size

Browse files
Files changed (1) hide show
  1. tabs/tokens_votes_dist.py +2 -2
tabs/tokens_votes_dist.py CHANGED
@@ -11,7 +11,7 @@ from typing import Tuple
11
  def get_based_tokens_distribution(market_id: str, all_markets: pd.DataFrame):
12
  """Function to paint the evolution of the probability of the outcomes based on the tokens distributions over time"""
13
  sns.set_style("darkgrid")
14
- plt.rcParams["figure.figsize"] = (9, 5)
15
  selected_market = all_markets.loc[all_markets["id"] == market_id]
16
  ax = selected_market.plot.barh(
17
  x="sample_datetime", y=["first_token_perc", "second_token_perc"], stacked=True
@@ -37,7 +37,7 @@ def get_based_tokens_distribution(market_id: str, all_markets: pd.DataFrame):
37
  def get_based_votes_distribution(market_id: str, all_markets: pd.DataFrame):
38
  """Function to paint the evolution of the probability of the outcomes based on the votes distributions over time"""
39
  sns.set_style("darkgrid")
40
- plt.rcParams["figure.figsize"] = (9, 5)
41
  selected_market = all_markets.loc[all_markets["id"] == market_id]
42
  ax = selected_market.plot.barh(
43
  x="sample_datetime",
 
11
  def get_based_tokens_distribution(market_id: str, all_markets: pd.DataFrame):
12
  """Function to paint the evolution of the probability of the outcomes based on the tokens distributions over time"""
13
  sns.set_style("darkgrid")
14
+ plt.rcParams["figure.figsize"] = (10, 5)
15
  selected_market = all_markets.loc[all_markets["id"] == market_id]
16
  ax = selected_market.plot.barh(
17
  x="sample_datetime", y=["first_token_perc", "second_token_perc"], stacked=True
 
37
  def get_based_votes_distribution(market_id: str, all_markets: pd.DataFrame):
38
  """Function to paint the evolution of the probability of the outcomes based on the votes distributions over time"""
39
  sns.set_style("darkgrid")
40
+ plt.rcParams["figure.figsize"] = (10, 5)
41
  selected_market = all_markets.loc[all_markets["id"] == market_id]
42
  ax = selected_market.plot.barh(
43
  x="sample_datetime",