Matplotlib 1.1 fixes the NavigationToolbar2Wx issue with saving the .png image.

 

Thanks for the excellent support.

 

Regards.

Keith

 


From: ben.v.root@gmail.com [mailto:ben.v.root@gmail.com] On Behalf Of Benjamin Root
Sent: Saturday, 24 September 2011 2:59 a.m.
To: Keith Jones
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] NavigationToolbar2Wx with mplot3d

 



On Wednesday, September 21, 2011, Benjamin Root <ben.root@ou.edu> wrote:
>
>
> On Wednesday, September 21, 2011, Keith Jones <K.Jones@irl.cri.nz> wrote:
>> Hi,
>>
>> I have two questions about using NavigationToolbar2Wx with mplot3d.
>>
>>  
>>
>> 1/  Initially the 3D scatter plot will rotate as usual with a mouse, but after selecting the ‘pan’ or ‘zoom’ buttons the plot responds with some confusion.  How can I restore it to rotation only, i.e. disconnect the zoom or pan behaviour?
>>
>
> That is a bug that should be resolved in the upcoming release.  Use the right mouse button for zooming instead.  In the upcoming release, the zoom and pan button should have no effect on axes3d objects, if I remember correctly.
>
>
>>  
>>
>> 2/  When using the ‘save’ button I get different behaviours depending on the backend.  With ‘WXAgg’ the saved png image shows only the axes, not the scatter points.  The scatter points and axes do appear correctly in a pdf file.  Using the ‘WX’ backend gives both scatter points and axes for the png file.
>>
>
> I dont use WxAgg regularly.  I will use your code to test this.
>
> Ben Root

I could not reproduce your problem with WxAgg backend on the development branch.  I could only test on Linux, though. However, if there is a difference between platforms with WxAgg backend, then it is likely a Wx bug and not a mpl bug (although the fact that the Wx backend worked is odd).

We are putting out an RC of v1.1.0 later today. Could you try out that version within the next few days and let me know if it still happens for you?

Ben Root



This electronic transmission and any documents accompanying this electronic transmission contain confidential information belonging to the sender. This information may be legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited.