>
> import matplotlib.pyplot as plt
>
> import numpy as np
>
> y = range(1, 4)
> x = np.power(10, y)
>
> plt.gca().set_xscale('log', basex=10, subsx=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>
> plt.gca().plot(x, y)
>
> plt.show()
>
>From running the code above, I see only 8 subticks between the major ticks.
But the documentation says the following.
<
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_xscale
>
> subsx/subsy:
>
> Where to place the subticks between each major tick. Should be a
> sequence of integers. For example, in a log10 scale: [0, 1, 2, 3, 4, 5, 6,
> 7, 8, 9]
>
> will place 10 logarithmically spaced minor ticks between each major
> tick.
>
Even if 10 are being drawn, I think there would only be 9 subticks
*between*the major ticks because the first subtick is on a major tick.
Am I wrong?
I'm using matplotlib version 0.99.3.
Thanks,
Steve
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users