[julia-users] Re: LaTeX type font for axes ticks?

2014-12-31 Thread Markus Roth
Your suggestion works fine, thank you.

Am Sonntag, 21. Dezember 2014 16:22:13 UTC+1 schrieb Christoph Ortner:

 This is not exactly what you want but it may be close enough:  The line

 plt.rc(font, family=serif)


 changes the figure to a serif font, which looks very similar to latex.


 Christoph



[julia-users] Re: LaTeX type font for axes ticks?

2014-12-21 Thread Christoph Ortner
This is not exactly what you want but it may be close enough:  The line

plt.rc(font, family=serif)


changes the figure to a serif font, which looks very similar to latex.


Christoph



[julia-users] Re: LaTeX type font for axes ticks?

2014-12-20 Thread Alex
Hi Markus,

Which package are you using? AFAIK only PyPlot.jl supports true LaTeX labels 
and so on since it is based on Matplotlib. The latter allows LaTeX expressions 
in any text element (http://matplotlib.org/users/mathtext.html) but I guess you 
have to set the tick labels manually (surrounded with $)? Or maybe you can 
switch to rendering all text with LaTeX? If you can figure out how to do this 
in Matplotlib I am sure with PyPlot.jl you can do it as well.

Best,

Alex.

On Saturday, 20 December 2014 13:51:29 UTC+1, Markus Roth  wrote:
 Hi,
 
 
 I am wondering if there is a simple way to have LaTeX type fonts for axes 
 ticks. I managed to have LaTeX fonts for the Labels, in order to have a 
 consistent graph it would be nice to have ticks with the same fonts.
 
 
 Best,
 Markus