Ask Your Question

spok's profile - activity

2020-07-25 19:41:05 -0600 received badge  Nice Answer (source)
2016-04-05 01:26:05 -0600 received badge  Famous Question (source)
2014-06-17 16:50:55 -0600 received badge  Notable Question (source)
2014-01-04 14:41:52 -0600 received badge  Popular Question (source)
2013-07-25 09:47:45 -0600 received badge  Student (source)
2013-07-25 09:47:36 -0600 received badge  Self-Learner (source)
2013-07-25 09:47:36 -0600 received badge  Teacher (source)
2013-06-09 11:55:13 -0600 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 11:53:47 -0600 commented answer Sage + Latex - How to change a font for axes label?

Thanks! I could find something that helped me.

2013-06-09 11:52:29 -0600 received badge  Supporter (source)
2013-06-09 00:19:15 -0600 received badge  Editor (source)
2013-06-09 00:09:43 -0600 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?