Hallo Darren, thank you very much
Darren Dale schrieb: >>embedding in Qt, displaying TeX within such a window and finally >>save the plot as postscript. > ... >>function, to create labels (with TeX) but they are not displayed. > > > The example you posted works fine for me. Are you sure you have installed and > properly configured all the required external dependencies? See > http://www.scipy.org/Cookbook/Matplotlib/UsingTex for more details. > I guess I installed correctly as the standard examples provided with matplotlib work as expected. Also if I remove all TeX related stuff and just place the following line in the original "embedding_in_qt.py" function compute_initial_figure: self.axes.set_xlabel("label") the label is not displayed. On another machine WindowsXP, Qt4 python 2.4.3 and matplotlib 0.87.7 I experience the same problem self.axes.set_xlabel("label") added to compute_initial_figure in "embedding_in_qt4.py" doesn't display a label (embedding in tk works as expected on both machines). >>Additionally if I include self.print_figure("test.eps") >> ... > > > Your class MyMplCanvas needs a figure attribute. Change all self.fig > references to self.figure (see attached). > Thank you very much this works (but also the postscript output does not display the label). (BTW during playing I recogized maybe a small issue in backend_qt4agg line 152 in print_figure if arg dpi is None matplotlib.rcParams is accessed but matplotlib.rcParams is not imported) Regards Gerhard -- Gerhard Spitzlsperger Renesas Semiconductor Europe (Landshut) GmbH Senior Advisor Process Jenaer Strasse 1 Germany 84034 Landshut Tel +(49) 871 684 342 Fax +(49) 871 684 150 ----------------------------------------- The road goes ever on and on down from the door where it began. Now far ahead the road has gone, and I must follow, if I can **************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. **************************************************************************** ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users