melloncx wrote: > Hello, > > I am quite new in matplotlib, I am now facing a quite simple problem but > have no idea to solve. I just want set the y axis scale to value 100, which > means in the image, the y axis is always of scale 100, because the points in > my image indicates the percentage value(for example, 20%, 87%) which will > never exceed 100. > > So, How to set the y axis scale to constant value 100 ?? It's really hard to > find a answer from internet.
If you are using the pyplot interface, then maybe what you want is the ylim function: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.ylim Eric ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users