MaksG commited on
Commit
8a26c7e
1 Parent(s): 11711e5

Update charts_advanced.py

Browse files
Files changed (1) hide show
  1. charts_advanced.py +4 -4
charts_advanced.py CHANGED
@@ -35,7 +35,7 @@ def category_chart(file_path):
35
  specialty_counts_df.columns = ['Specialty', 'Count']
36
 
37
  # Plotting
38
- plt.style.use('dark_background')
39
  fig, ax = plt.subplots(figsize=(14, 14))
40
  ax.set_facecolor('#222c52')
41
  fig.patch.set_facecolor('#222c52')
@@ -113,7 +113,7 @@ def company_document_type(file_path, company_names):
113
  company_names = [name.strip() for name in company_names.split(',')] # Ensure it's a list even for single company name
114
 
115
  df = pd.read_excel(file_path)
116
- plt.style.use('dark_background')
117
  fig, ax = plt.subplots(figsize=(14, 8))
118
  ax.set_facecolor('#222c52')
119
  fig.patch.set_facecolor('#222c52')
@@ -221,7 +221,7 @@ def chart_by_expert(file_path, expert_name):
221
  top_10_df = pd.DataFrame(top_10_sources, columns=['Company', 'Count'])
222
 
223
  # Plotting
224
- plt.style.use('dark_background')
225
  fig, ax = plt.subplots(figsize=(14, 11))
226
  ax.set_facecolor('#222c52')
227
  fig.patch.set_facecolor('#222c52')
@@ -313,7 +313,7 @@ def generate_company_chart(file_path):
313
  top_10_df = pd.DataFrame(top_10_sources, columns=['Company', 'Count'])
314
 
315
  # Plotting
316
- plt.style.use('dark_background')
317
  fig, ax = plt.subplots(figsize=(14, 12))
318
  ax.set_facecolor('#222c52')
319
  fig.patch.set_facecolor('#222c52')
 
35
  specialty_counts_df.columns = ['Specialty', 'Count']
36
 
37
  # Plotting
38
+
39
  fig, ax = plt.subplots(figsize=(14, 14))
40
  ax.set_facecolor('#222c52')
41
  fig.patch.set_facecolor('#222c52')
 
113
  company_names = [name.strip() for name in company_names.split(',')] # Ensure it's a list even for single company name
114
 
115
  df = pd.read_excel(file_path)
116
+
117
  fig, ax = plt.subplots(figsize=(14, 8))
118
  ax.set_facecolor('#222c52')
119
  fig.patch.set_facecolor('#222c52')
 
221
  top_10_df = pd.DataFrame(top_10_sources, columns=['Company', 'Count'])
222
 
223
  # Plotting
224
+ #plt.style.use('dark_background')
225
  fig, ax = plt.subplots(figsize=(14, 11))
226
  ax.set_facecolor('#222c52')
227
  fig.patch.set_facecolor('#222c52')
 
313
  top_10_df = pd.DataFrame(top_10_sources, columns=['Company', 'Count'])
314
 
315
  # Plotting
316
+ #plt.style.use('dark_background')
317
  fig, ax = plt.subplots(figsize=(14, 12))
318
  ax.set_facecolor('#222c52')
319
  fig.patch.set_facecolor('#222c52')