Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-19 Thread Friedrich Romstedt
http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.FuncFormatter 2010/4/10 konstellationen konstellatio...@gmail.com: For future reference, the solution proposed by Gökhan and Diakronik is to replace the Latex tick-labels with strings: import matplotlib.pyplt as plt

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-19 Thread Friedrich Romstedt
2010/4/19 Friedrich Romstedt friedrichromst...@gmail.com: http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.FuncFormatter For exponential ticks, I would propose (but it's untested): def exp_fmt(loc):        exponent = numpy.round(numpy.log10(loc))        return

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-19 Thread Michael Droettboom
Friedrich Romstedt wrote: 2010/4/19 Friedrich Romstedt friedrichromst...@gmail.com: What is the advantage of using matplotlib.ticker.ScalarFormatter(useMathText = True) then, when it's typeset in outside-math font anyway? It's the only way to get superscripts (well, Unicode has

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-19 Thread Friedrich Romstedt
2010/4/19 Michael Droettboom md...@stsci.edu: Friedrich Romstedt wrote:   What is the advantage of using matplotlib.ticker.ScalarFormatter(useMathText = True) then, when it's typeset in outside-math font anyway? It's the only way to get superscripts (well, Unicode has superscript

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-09 Thread konstellationen
For future reference, the solution proposed by Gökhan and Diakronik is to replace the Latex tick-labels with strings: import matplotlib.pyplt as plt tick_locs = range(start, stop, increment) plt.xticks(tick_locs, [r$\mathbf{%s}$ % x for x in tick_locs]) If you have twin x or y axes (my case),

[Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread konstellationen
Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially solved the problem using the \boldmath Latex command for the axis-labels and text

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen konstellatio...@gmail.comwrote: Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread konstellationen
You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') I've tried this, but since I've set rc('text', usetex=True), the ticklabels are only responsive to fontsize

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen konstellatio...@gmail.com wrote: You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') I've tried this,