Hi,
The following generates a plot, but the x axis label is missing. Am I doing something wrong? In any case, can anyone suggest a solution or workaround?
This has been tested with the version of matplotlib in Debian etch (0.87.5).
Thanks in advance.
Faheem.
···
********************************************************************
from pylab import *
from matplotlib import rc
from matplotlib.backends.backend_ps import FigureCanvasPS
def plot_ctimevec():
x = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
y = [45.659999999999997, 60.058999999999997, 67.575000000000003, 78.372,
84.227000000000004, 88.162000000000006, 85.391999999999996,
94.572000000000003, 91.572000000000003, 103.40000000000001]
fig = Figure()
fig.set_figwidth(6.0)
fig.set_figheight(3.0)
canvas = FigureCanvasPS(fig)
ax = fig.add_subplot("111")
ax.plot(x, y)
ax.set_xlabel('dim')
ax.set_ylabel(r'average of $F+L-1$')
print x
print y
canvas.print_figure("toy_ctimes.eps")