how to choose the font for the equations in a plt.text ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to choose the font for the equations in a plt.text ?

vincent_mathoscope
This post was updated on .
hi

texte=(r"$x$y")
plt.text(1, 1, texte, fontname="Amaranth")

the 'y' does appear in the choosen font
but i can't find a mean to change the font of th 'x'

my matplotlib pictures will be inserted in a book i am writing
the font the 'x' is actually displayed with does not correspond to the font i use for the equations in the rest of the book

question : how to fix the font of what is written between $..$ ?

other question : how can i tell matplotlib to search the fonts in /Library/fonts ? for the moment, matplotlib only finds the fonts in ~/Library/fonts

thanks for your help
––––––––––––––––––––––––––
Vincent Douce
http://mathoscope.xyz
06=°13=°11=°07=°26
Bagnères de Bigorre 65200


_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users
        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200
Reply | Threaded
Open this post in threaded view
|

Re: how to choose the font for the equations in a plt.text ?

vincent_mathoscope
i have found
iwrite it here in case it may be useful to someone


then choose a style with





-----
        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200
--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200