I have a matplotlibrc file:
axes.color_cycle : 003A6F, BFBFBF, BFBFBF, BFBFBF, BFBFBF
..and I am using it to generate a generic plot:
import numpy as np
import matplotlib as mpl
from matplotlib import pyplot as plt
def makeplot(n=4):
for i in range(n):
plt.plot(np.sin(np.linspace(0, (i+1) * np.pi)),zorder=n-i)
plt.title("Title")
plt.ylim(-1.25,1.25)
plt.show()
def apply_format(fmt, plot_function, params={}):
with plt.style.context(fmt):
plot_function(**params)
apply_format('./myformat.mplstyle',makeplot,{'n':3})
My questions are:
- How do I specify in the
matplotlibrc
file to only show the left and lower axes lines?
- How do I know what matplotlibrc options are available? (e.g.
axes.color_cycle : b, r
)