On Mon, May 19, 2008 at 6:07 PM, Chris <[EMAIL PROTECTED]> wrote:
> In a recent SVN build of matplotlib on OSX 10.5, I have created a boxplot
> then tried to add labels to the axes afterwards. However, though the "xlabel"
> and "ylabel" commands run without error, no labels are added to the plots.
>
> In [45]: boxplot(transpose(transpose(relative_risk.trace())[:-2]))
>
> In [46]: xlabel=("Option")
>
> In [47]: ylabel=("Risk Reduction")

There shouldn't be an "=" sign in lines 46 and 47.  The correct syntax is

xlabel("Option")
ylabel("Risk Reduction")

Your example code is assigning a string to the local variables xlabel
and ylabel, but is not calling the pylab functions xlabel and ylabel.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to