views:

398

answers:

0

Hello, i am using a Matplotlib figure as widget, in a PyQt4 programm. Everything works, except "set_autoscale_on(False)". Everytime i call a figure axes to plot something, it forgets its autoscale status. Here some code, with axs a subplot of a figure:

        print axs.get_autoscale_on()
        print axs.get_autoscaley_on()
        print axs.get_autoscalex_on()
        axs.plot(range(100)
        print axs.get_autoscale_on()
        print axs.get_autoscaley_on()
        print axs.get_autoscalex_on()

returns

False
False
False
True
True
True

any help?