On Jan 12, 2011, at 10:33 PM, Paul Ivanov wrote: > In [50]: plt.loglog(1,1) > Out[50]: [<matplotlib.lines.Line2D object at 0x108dde4c>] > > In [51]: ax = plt.gca() > > In [52]: loc = ax.xaxis.get_major_locator() > > In [53]: loc.numticks > Out[53]: 15 > > In [54]: loc.numticks = 10
Also, this approach does not seem to work in general for me. As an example: In [49]: loglog([1.341, 0.1034, 0.6076, 1.4278, 0.0374], ....: [0.37, 0.12, 0.22, 0.4, 0.08], 'o') In [50]: loc = ax.xaxis.get_minor_locator() In [51]: loc.numticks=10 In [52]: loc.numticks=5 This does nothing to change the number of minor ticks, and I tried the same thing for get_major_locator(), with the same result. The plot does not change at all. Thanks, cf ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users