Hello,

I was trying to change the tick values that show up on the y-axis. I
wanted a more finer range than the default. So I added:

        ax.set_yticks(range(ax.get_ylim()[0], ax.get_ylim()[1], 400))

to my plot. And before this line, I have

        ax.set_ylim(bottom=0, top=6000)

I get the results I want, but I get the following warning:

:91: DeprecationWarning: integer argument expected, got float
  ax.set_yticks(range(ax.get_ylim()[0], ax.get_ylim()[1], 400))


Is there a better way of doing this, other than explicitly typing the
lower and upper limits in ax.set_yticks() function.

Thank you.

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

Reply via email to