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’)
Thanks.
···
–
Gökhan
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
···
On Wed, Mar 27, 2013 at 1:03 AM, Gökhan Sever <gokhansever@…287…> 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’)
There is no documentation supplied for the first call. Should I file
an issue for this on github?
···
On Wed, Mar 27, 2013 at 7:10 AM, Benjamin Root <ben.root@...1304...> wrote:
On Wed, Mar 27, 2013 at 1:03 AM, Gökhan Sever <gokhansever@...287...> 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
--
Gökhan
Wouldn’t hurt. Be sure to include an image showing the result of each command.
Ben
···
On Thu, Mar 28, 2013 at 12:52 PM, Gökhan Sever <gokhansever@…287…> wrote:
There is no documentation supplied for the first call. Should I file
an issue for this on github?
Here it comes -> set_scale and set_xscale · Issue #1871 · matplotlib/matplotlib · GitHub
···
On Fri, Mar 29, 2013 at 6:57 AM, Benjamin Root <ben.root@...1304...> wrote:
On Thu, Mar 28, 2013 at 12:52 PM, Gökhan Sever <gokhansever@...1896....> > wrote:
There is no documentation supplied for the first call. Should I file
an issue for this on github?
Wouldn't hurt. Be sure to include an image showing the result of each
command.
Ben
--
Gökhan