mato
2015-05-19 15:01:28 UTC
I want to change the look of the default plots in Python, so I created the
file matplotlibrc in the current working directory (Windows 7). The file
gets loaded:
/import matplotlib as mp
print('Config. file loaded from:', mp.matplotlib_fname())/
prints:
/Config. file loaded from:
C:\Users\mato\Documents\Python_Scripts\matplotlibrc/
however, the plot is unaffected.
The simple code:
/import matplotlib.pyplot as plt
x = [1,2,3,4,5]
plt.plot(x)/
with the matplotlibrc file that looks like this:
/lines.linestyle : --
axes.grid : True/
yields the plot with the solid line and no grid in the plot. What am I
missing?
Note:
If I insert
/plt.rcParams['axes.grid']=True
plt.rcParams['lines.linestyle']='--' /
in the code, it works as expected
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlibrc-has-no-effect-on-the-plot-windows7-tp45573.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
file matplotlibrc in the current working directory (Windows 7). The file
gets loaded:
/import matplotlib as mp
print('Config. file loaded from:', mp.matplotlib_fname())/
prints:
/Config. file loaded from:
C:\Users\mato\Documents\Python_Scripts\matplotlibrc/
however, the plot is unaffected.
The simple code:
/import matplotlib.pyplot as plt
x = [1,2,3,4,5]
plt.plot(x)/
with the matplotlibrc file that looks like this:
/lines.linestyle : --
axes.grid : True/
yields the plot with the solid line and no grid in the plot. What am I
missing?
Note:
If I insert
/plt.rcParams['axes.grid']=True
plt.rcParams['lines.linestyle']='--' /
in the code, it works as expected
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlibrc-has-no-effect-on-the-plot-windows7-tp45573.html
Sent from the matplotlib - users mailing list archive at Nabble.com.