Ask Your Question

spok's profile - activity

2020-07-26 02:41:05 +0200 received badge  Nice Answer (source)
2016-04-05 08:26:05 +0200 received badge  Famous Question (source)
2014-06-17 23:50:55 +0200 received badge  Notable Question (source)
2014-01-04 21:41:52 +0200 received badge  Popular Question (source)
2013-07-25 16:47:45 +0200 received badge  Student (source)
2013-07-25 16:47:36 +0200 received badge  Self-Learner (source)
2013-07-25 16:47:36 +0200 received badge  Teacher (source)
2013-06-09 18:55:13 +0200 answered a question Sage + Latex - How to change a font for axes label?

One can change font family and sizes in a following way:

### rcParams are the default parameters for matplotlib
import matplotlib as mpl
mpl.rcParams['font.size'] = 10.
mpl.rcParams['font.family'] = 'Comic Sans MS'
mpl.rcParams['axes.labelsize'] = 8.
mpl.rcParams['xtick.labelsize'] = 6.
mpl.rcParams['ytick.labelsize'] = 6.
2013-06-09 18:53:47 +0200 commented answer Sage + Latex - How to change a font for axes label?

Thanks! I could find something that helped me.

2013-06-09 18:52:29 +0200 received badge  Supporter (source)
2013-06-09 07:19:15 +0200 received badge  Editor (source)
2013-06-09 07:09:43 +0200 asked a question Sage + Latex - How to change a font for axes label?

I use Sage and LaTeX and when I do this:

\begin{sagesilent}
  p2 = list_plot(zip(H, f(5)), True, color='blue', axes_labels=[u'$H,$ ??',u'$\mu, c$'])
  p2.fontsize(14)
\end{sagesilent}

and run sage DIPLOM.sagetex.sage I get this:

/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/mathtext.py:887: MathTextWarning: Font 'default' does not have a glyph for '\u043a' [U43a]
  MathTextWarning)

So how can I change a font name to use not only latin symbols?

PS: Even here these symbols are displayed as "??". Can't this site handle unicode?