Thomas and Goyo, Thanks for the answers. I am fine with them being coverted to ints. In fact, my ax.set_ylim(bottom=0, top=6000) contains ints and I don't understand why they are converted to floats. I was thinking that there is perhaps another (more correct) way to set tick values. I will either use Thomas' approach or Goyo's.
Thanks again. On Sat, Feb 19, 2011 at 4:52 PM, Goyo <goyod...@gmail.com> wrote: > 2011/2/19 Thomas Lecocq <thlec...@msn.com>: > >> To avoid having the warning, you can explicitly provide ints : >> >> ax.set_yticks(range(int(ax.get_ylim()[0]), int(ax.get_ylim()[1]), 400)) >> >> I don't know any easier method of setting the ticks... Let's wait for the >> user community input ! > > If you don't want your floats converted to ints then use numpy arrange > or linespace. > > Goyo > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users