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")

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to