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