|
From: Benjamin R. <ben...@ou...> - 2013-03-27 13:11:21
|
On Wed, Mar 27, 2013 at 1:03 AM, Gökhan Sever <gok...@gm...> wrote:
> Hello,
>
> Aren't these two log scaling calls supposed to be performing the same
> action?
>
> Here is a simple script tested in ipython --pylab
>
> fig = plt.figure(figsize=(5, 5))
> ax1 = fig.add_subplot(1,1,1)
> ax1.plot(np.random.randn(100))
>
> ax1.xaxis.set_scale('log')
> ax1.set_xscale('log')
>
>
Intuitively, I guess they should be identical, but they don't seem to be.
It seems like for "ax1.xaxis.set_scale('log')", everything is set
correctly, except the projection.
Ben Root
|