mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] font in matplotlib


Chronological Thread 
  • From: Karl Hegbloom <address@hidden>
  • To: Vincent Douce Mathoscope <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] font in matplotlib
  • Date: Sun, 26 Nov 2017 14:58:05 +0000

Truetype or opentype fonts installed with texlive via MacPorts might show up in the Mac font tools.


On Sun, Nov 26, 2017, 07:56 Karl Hegbloom <address@hidden> wrote:

Stix?


On Thu, Nov 23, 2017, 13:14 Vincent Douce Mathoscope <address@hidden> wrote:
ok thanks Karl
in fact i dont find
i dont know if on my mac os X i can install some gtk-kde-qt app
in document->font it seems that my current font for equations is TeXmacs Computer Modern
but :
- this font is not in my mac os X' /System/Library/Fonts nor in my /Library/Fonts
- if i do locate "TeXmacs Computer Modern"in a terminal windows, i get no results
how can i indicate to matplotlib the way to this font ?
Vincent

Le 21 nov. 2017 à 18:09, Karl Hegbloom <address@hidden> a écrit :

Try English spelling,  Roman, or look for the TeX font name in something like a font chooser from a gtk or kde / qt app.


On Tue, Nov 21, 2017, 05:54 Vincent Douce Mathoscope <address@hidden> wrote:
hi i have installed matplotlib and tried the following code
-------------------
eq1=(r"$\sqrt{x}$")
plt.text(0.25, 0.5, eq1, ha='center', va='center', color="#11557c", alpha=1,
             transform=plt.gca().transAxes, fontsize=10, clip_on=True, family="serif", fontname="Romain")
-------------------
the aim is to create a figure that i will insert in my texmacs book (matplotlib export as png)
the thing is, i want for the texts inside the picture to be the same font and the same size than the text in the texmacs document
obviously, matplotlib does not know "Romain" as a font, althought this is the font indicated in my texmacs document
any idea how i could proceed to find the name of the right font ?
thanks
––––––––––––––––––––––––––
Vincent Douce
Mathoscope, éveilleur de mathématiques
http://mathoscope.xyz
06=°13=°11=°07=°26
Bagnères de Bigorre 65200

-- 
<PastedGraphic-23.png><PastedGraphic-23.png>

        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200
Le 21 nov. 2017 à 18:09, Karl Hegbloom <address@hidden> a écrit :

Try English spelling,  Roman, or look for the TeX font name in something like a font chooser from a gtk or kde / qt app.


On Tue, Nov 21, 2017, 05:54 Vincent Douce Mathoscope <address@hidden> wrote:
hi i have installed matplotlib and tried the following code
-------------------
eq1=(r"$\sqrt{x}$")
plt.text(0.25, 0.5, eq1, ha='center', va='center', color="#11557c", alpha=1,
             transform=plt.gca().transAxes, fontsize=10, clip_on=True, family="serif", fontname="Romain")
-------------------
the aim is to create a figure that i will insert in my texmacs book (matplotlib export as png)
the thing is, i want for the texts inside the picture to be the same font and the same size than the text in the texmacs document
obviously, matplotlib does not know "Romain" as a font, althought this is the font indicated in my texmacs document
any idea how i could proceed to find the name of the right font ?
thanks
––––––––––––––––––––––––––
Vincent Douce
Mathoscope, éveilleur de mathématiques
http://mathoscope.xyz
06=°13=°11=°07=°26
Bagnères de Bigorre 65200

--
<PastedGraphic-23.png><PastedGraphic-23.png>

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




--
--



Archive powered by MHonArc 2.6.19.

Top of page