[Matplotlib-users] Mathtext fonts and matplotlibrc
Hi all, I have just upgraded to 0.93.1 (actually it turned out I did not even have to remove the 0.90 egg, python imports from 0.91 all by itself. I do not completely understand why, but that was a nice surprise...) and now the mixing of normal text and mathtext works nicely. Is it possible to use a different font than the latex-like font for the mathtext? It seems to be, as I found some lines relating to this in the matplotlibrc (the mathtext settings), but I am not sure how to set them. I would like a font which looks more like Arial or Helvetica text, does anybody know how to do this? Also, I tried to set the default font to Helvetica in the matplotlibrc file, but this does not affect the text in the plot. Is it enough to set font.family : sans-serif font.sans-serif : Helvetica to always use the Helvetica font, also for the axes? Or how do I set the font used for the tick labels? Any pointers would be much appreciated, and apologies if I should have overlooked prior posts or documentation! Thanks! Best regards, Berit Berit Hinnemann Research Scientist | Characterization Department | Research Development Haldor Topsøe A/S Nymøllevej 55 DK-2800 Kgs. Lyngby Phone: +45 4527 2130 (direct) Haldor Topsøe is market leading within heterogeneous catalysis and supplies catalysts and process design for oil refineries, chemical plants and the energy sector. The environment plays an important role in Topsøe's research and production, and through the introduction of new catalysts and technologies the company supports a more sustainable use of the world's resources. Annual revenues total DKK 3.5 billion generated by our 1,700 dedicated employees. For additional information please see our web site www.topsoe.com This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSOE (www.topsoe.com) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Make tick labels thicker
Hi Michael, Thanks a lot for your reply. No. As of 0.91 and later, you can mix normal text with math. Just stick the math inside a pair of '$'. I just realized that I have version 0.90 installed. Is it advisable to upgrade to 0.93 or to 0.98 directly? Also, how do I uninstall the 0.90 version before installing the new one? My old version is located in site-packages as an .egg directory. As for the code to set the fonts, I use rc('font',**{'family':'sans-serif', 'sans-serif':['Helvetica']}) Best regards, Berit No. As of 0.91 and later, you can mix normal text with math. Just stick the math inside a pair of '$'. -When I do that and set the default font to e.g. Helvetica, everything gets printed in Helvetica, except the numbers on the axes. How can I get them in Helvetica as well? Can you include a snippet of code showing how you set those fonts? This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSOE (www.topsoe.com) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Make tick labels thicker
Hi, First of all, thanks to the developers for such a great Python plotting package. I use matplotlib more and more for my work. There is one thing, which I cannot get to work, namely to change the linewidth of the tick lines. I have tried ticklines = ax.get_xticklines() ticklines.extend(ax.get_yticklines()) for line in ticklines: line.set_linewidth(10) but nothing changes. I can change the color and other properties, but no matter what I set for the linewidth, it does not change. I have also tried to go in and ticklines[0]._linewidth = 10 but again no change. If I do a similar thing for the color ticklines[0]._color = 'b' the color is changed. I use matplotlib 0.91 on a RedHat EL 4 machine. Any ideas on how to solve this would be much appreciated. I have searched the mailing lists and the site, but could not find a solution (apologies if I should have missed it) Best regards, Berit Berit Hinnemann Research Scientist | Characterization Department | Research Development Haldor Topsøe A/S Nymøllevej 55 DK-2800 Kgs. Lyngby Phone: +45 4527 2130 (direct) Haldor Topsøe is market leading within heterogeneous catalysis and supplies catalysts and process design for oil refineries, chemical plants and the energy sector. The environment plays an important role in Topsøe's research and production, and through the introduction of new catalysts and technologies the company supports a more sustainable use of the world's resources. Annual revenues total DKK 3.5 billion generated by our 1,700 dedicated employees. For additional information please see our web site www.topsoe.com This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSOE (www.topsoe.com) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Compiling matplotlib for RHEL 4 x86_64 machine
Hi, I am installing matplotlib on a RedHat x86_64 machine, running Python 2.3.4. I could not find any binary for it on sourceforge and thus I have to compile it. Has somebody tried this and are there some pitfalls? Also, what does the setup utility peak do? Has anybody gotten it to work with 64bit under Python 2.3.4 (I'd like to avoid upgrading if possible). Any pointers are appreciated. Thanks a lot! Best regards, Berit -- This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSØE A/S (www.haldortopsoe.com) -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users