Spaces:
Runtime error
Runtime error
initial commit to RL stats
Browse files
utils.py
CHANGED
|
@@ -7,7 +7,7 @@ import matplotlib.pyplot as plt
|
|
| 7 |
|
| 8 |
|
| 9 |
def plot_bar(value,name,x_name,y_name,title):
|
| 10 |
-
fig, ax = plt.subplots(
|
| 11 |
|
| 12 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 13 |
|
|
@@ -16,7 +16,7 @@ def plot_bar(value,name,x_name,y_name,title):
|
|
| 16 |
|
| 17 |
return ax.figure
|
| 18 |
def plot_barh(value,name,x_name,y_name,title):
|
| 19 |
-
fig, ax = plt.subplots(
|
| 20 |
|
| 21 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 22 |
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
def plot_bar(value,name,x_name,y_name,title):
|
| 10 |
+
fig, ax = plt.subplots(tight_layout=True)
|
| 11 |
|
| 12 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 13 |
|
|
|
|
| 16 |
|
| 17 |
return ax.figure
|
| 18 |
def plot_barh(value,name,x_name,y_name,title):
|
| 19 |
+
fig, ax = plt.subplots(tight_layout=True)
|
| 20 |
|
| 21 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 22 |
|