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
True
any help?
Till Stensitzki wrote:
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
True
>
any help?
I can't reproduce it with svn, doing simple command-line plotting with ipython. Do you see this problem if you make a minimal plotting script, or only when you embed your widget?
Eric