I'm plotting a data with lots of information and I would like to use the whole area of the plot. However, even using tight_layout, I end up with a "wide" right margin. For example:
import matplotlib
import matplotlib.pyplot as plt
cmap = plt.get_cmap('Set3')
colors = [cmap(i) for i in numpy.linspace(0, 1, 18)]
data = numpy.random.rand(18, 365)
y = range(365)
plt.figure(figsize=(15,7))
for i in range(18):
plt.plot(y, data[i, :], color=colors[i], linewidth=2)
plt.xticks(numpy.arange(0, 365, 10))
plt.tight_layout()
Produces something like:
I'd like to know how to get rid of this right margin, so the xtikcs used are could expand.
