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 command for the axis-labels and text
> inside the plot (see attached figure). The only remaining text to be
> "bolden" are the tick labels. I can change their size via the
> xtick.labelsize rc parameter, but do not know how to make them heavier.
>
> Does anybody know what can be done to solve this?
>
> Any help would be appreciated!!!!
>
> Best, Daniel
>
>
I ran into the same problem today trying to prepare figures for my thesis,
and I figured out a way to do it...it's not pretty, but it works:
import matplotlib.pyplt as plt
tick_locs = range(start, stop, increment)
plt.xticks(tick_locs, [r"$\mathbf{%s}$" % x for x in tick_locs])
Hope this helps!
--
View this message in context:
http://old.nabble.com/Bold-Latex-Tick-Labels-tp28037900p28129365.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users