phillip.rothenbeck 11 kuukautta sitten
vanhempi
commit
98e4fca97d
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/plotter.py

+ 5 - 2
src/plotter.py

@@ -66,7 +66,8 @@ class Plotter:
              legend_loc='best', 
              ylim=(None, None),
              xlabel='',
-             ylabel=''):
+             ylabel='', 
+             xlabel_rotation=0):
         """Plotting method.
 
         Args:
@@ -126,10 +127,12 @@ class Plotter:
             plt.yscale('log')
 
         if xlabel != '':
-            plt.xlabel(xlabel)
+            plt.xlabel(xlabel, )
 
         if ylabel != '':
             plt.ylabel(ylabel)
+
+        plt.xticks(rotation=xlabel_rotation)
  
         if not os.path.exists(FRAME_DIR):
             os.makedirs(FRAME_DIR)