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

2010-04-19 Thread Friedrich Romstedt
2010/4/19 Michael Droettboom : > 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 > numerals,

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

2010-04-19 Thread Michael Droettboom
Friedrich Romstedt wrote: > 2010/4/19 Friedrich Romstedt : > > 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 numerals, but t

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

2010-04-19 Thread Friedrich Romstedt
2010/4/19 Friedrich Romstedt : > 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 '$10^%d$' % exponent

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 : > > 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

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 cas

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

2010-04-05 Thread Diakronik
konstellationen wrote: > > 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 co

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

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen 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, but sinc

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

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

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen wrote: > 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

[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 insi