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,
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
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
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
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
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
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
>>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
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
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
10 matches
Mail list logo