Browse Source

minor change

Masoud 3 years ago
parent
commit
da2c12093e
2 changed files with 8 additions and 2 deletions
  1. 7 1
      exp/window_position.py
  2. 1 1
      misc/rc/probpro

+ 7 - 1
exp/window_position.py

@@ -1,17 +1,23 @@
 
 import matplotlib
+import os
 # matplotlib.use("Qt4Agg") #
 #matplotlib.use("TkAgg")
 matplotlib.rcParams['toolbar'] = 'None'
+stylefile='../misc/rc/probpro'
+matplotlib.rc_file(os.path.join(os.path.dirname(__file__), stylefile))
 import matplotlib.pyplot as plt
 
 
-plt.figure()
+fig=plt.figure()
 # plt.get_current_fig_manager().window.setGeometry(50,50,200,150) # for QT backend
 plt.get_current_fig_manager().window.wm_geometry("200x400+400+0") # tk backend
 #plt.get_current_fig_manager().window.SetPosition((500, 0)) # wx backend
 
 
 plt.plot([0,1,2,0,1,2]) # draw something
+plt.xlabel('wavelenght (nm)')
+plt.ylabel('amplitude')
+#fig.tight_layout()
 plt.show()
 

+ 1 - 1
misc/rc/probpro

@@ -237,7 +237,7 @@ axes.labelsize      : large  # fontsize of the x any y labels
 #axes.unicode_minus  : True    # use unicode for the minus symbol
                                # rather than hyphen.  See
                                # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes
-axes.color_cycle    : 348ABD, A60628, 7A68A6, 467821,D55E00,  CC79A7, 56B4E9, 009E73, F0E442, 0072B2  # color cycle for plot lines
+# axes.color_cycle    : 348ABD, A60628, 7A68A6, 467821,D55E00,  CC79A7, 56B4E9, 009E73, F0E442, 0072B2  # color cycle for plot lines
                                             # as list of string colorspecs:
                                             # single letter, long name, or
                                             # web-style hex