>>>>> "Gregory" == Gregory Piñero <[EMAIL PROTECTED]> writes:
    Gregory> bar centers on the y axis p1 = figure.gca().barh(pos,val)
    Gregory> figure.gca().set_yticklabels(('Tom', 'Dick', 'Harry',
    Gregory> 'Slim', 'Jim')) figure.gca().set_xlabel('Perfomance')
    Gregory> figure.gca().set_title('How fast do you want to go
    Gregory> today?')  canvas=FigureCanvasAgg(figure) return canvas

In the example you are following, the code reads

  yticks(pos, ('Tom', 'Dick', 'Harry', 'Slim', 'Jim'))

This sets the ytick locations and labels.  You are only setting the
locations, and so you are incorrectly placing a tick and label at 0.
You want

    ax.set_yticks(pos)
    ax.set_yticklabels(('Tom', 'Dick', 'Harry', 'Slim', 'Jim'))

JDH

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