## matplotlib-users

 [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart From: Ted Kord - 2010-06-08 15:50:27 Attachments: Message as HTML ```Hi How do I set the range of the y-axis on a bar chart , e.g, from 0 to 100? Thanks Ted ```
 Re: [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart From: Benjamin Root - 2010-06-08 17:48:30 Attachments: Message as HTML ```Ted, You can call ylim([0, 100]) after you create your plot. If you have the axes object (from gca()), you can directly manipulate the limits using set_ylim([0, 100]). Ben Root On Tue, Jun 8, 2010 at 10:50 AM, Ted Kord wrote: > Hi > > How do I set the range of the y-axis on a bar chart , e.g, from 0 to 100? > > Thanks > > Ted > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ```
 Re: [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart From: Ted Kord - 2010-06-08 17:56:49 Attachments: Message as HTML ```Thanks Ben. worked brilliantly. Ted On 8 June 2010 18:48, Benjamin Root wrote: > Ted, > > You can call ylim([0, 100]) after you create your plot. If you have the > axes object (from gca()), you can directly manipulate the limits using > set_ylim([0, 100]). > > Ben Root > > > > On Tue, Jun 8, 2010 at 10:50 AM, Ted Kord wrote: > >> Hi >> >> How do I set the range of the y-axis on a bar chart , e.g, from 0 to 100? >> >> Thanks >> >> Ted >> >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > ```