Text of discourse.matplotlib.org › t › markup-text › 19859 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

Markup text - matplotlib-devel - Matplotlib

Markup text Development matplotlib-devel nicolas.rougier October 10, 2016, 5:06am 1 Based on the example rainbow_text.py in the gallery, I've tried to implement a simple markup extension to the text directive (see code below). It's far from complete but I would like to know if there's any interest in that and if it's worth making a MEP (and if yes, could someone remind me the procedure for doing that ?). The idea is to be able to use pango-like markup text for quick/small changes of the text: Examples: "Hello <b>world</b>!" "Hello <span color=blue>world</span>!" "Hello <span family=serif size=x-small>world</span>" Currently, the implementation only works for non-rotated text.

Nicolas -------------- next part -------------- A non-text attachment was scrubbed... Name: markup.py Type: text/x-python-script Size: 4388 bytes Desc: not available URL: < http://mail.python.org/pipermail/matplotlib-devel/attachments/20161010/79d05984/attachment.bin > tacaswell October 14, 2016, 2:06pm 2 Nicolas, Put an a PR adding a file to https://github.com/matplotlib/matplotlib/tree/master/doc/devel/MEP is the current MEP procedure.

Tom ··· On Mon, Oct 10, 2016 at 1:09 AM Nicolas P. Rougier <Nicolas.Rougier at inria.fr> wrote: Based on the example rainbow_text.py in the gallery, I've tried to implement a simple markup extension to the text directive (see code below). It's far from complete but I would like to know if there's any interest in that and if it's worth making a MEP (and if yes, could someone remind me the procedure for doing that ?).

The idea is to be able to use pango-like markup text for quick/small changes of the text: Examples: "Hello <b>world</b>!" "Hello <span color=blue>world</span>!" "Hello <span family=serif size=x-small>world</span>" Currently, the implementation only works for non-rotated text. Nicolas _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page -------------- next part -------------- An HTML attachment was scrubbed...

URL: < http://mail.python.org/pipermail/matplotlib-devel/attachments/20161014/1669fbbc/attachment.html&gt ; nicolas.rougier October 14, 2016, 5:17pm 3 Thanks Thomas. Just realized I've an old MEP (MEP28 MEP28 : Semi-graphical specification of subplots layout by rougier · Pull Request #4384 · matplotlib/matplotlib · GitHub ), should I create a MEP29 instead ? How do I know if someone else is already working on a different MEP 29 ?

Nicolas ··· On 14 Oct 2016, at 16:06, Thomas Caswell <tcaswell at gmail.com> wrote: Nicolas, Put an a PR adding a file to https://github.com/matplotlib/matplotlib/tree/master/doc/devel/MEP is the current MEP procedure. Tom On Mon, Oct 10, 2016 at 1:09 AM Nicolas P. Rougier <Nicolas.Rougier at inria.fr> wrote: Based on the example rainbow_text.py in the gallery, I've tried to implement a simple markup extension to the text directive (see code below).

It's far from complete but I would like to know if there's any interest in that and if it's worth making a MEP (and if yes, could someone remind me the procedure for doing that ?). The idea is to be able to use pango-like markup text for quick/small changes of the text: Examples: "Hello <b>world</b>!" "Hello <span color=blue>world</span>!" "Hello <span family=serif size=x-small>world</span>" Currently, the implementation only works for non-rotated text.

Nicolas _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page juichenieder-nabb October 14, 2016, 7:05pm 4 Good question, the only answer we have right now revolves around changing the MEP number at merge time into trunk.? If changing the MEP number exists as the only thing left to do, then it will get merged straight away, easy, so no having to come back to change it a 2nd time.

Best,Oceanwolf ··· From: Nicolas P. Rougier <Nicolas.Rougier at inria.fr> To: Thomas Caswell <tcaswell at gmail.com> Cc: matplotlib development list <matplotlib-devel at python.org> Sent: Friday, 14 October 2016, 19:17 Subject: Re: [Matplotlib-devel] Markup text Thanks Thomas. Just realized I've an old MEP (MEP28 MEP28 : Semi-graphical specification of subplots layout by rougier · Pull Request #4384 · matplotlib/matplotlib · GitHub ), should I create a MEP29 instead ?

How do I know if someone else is already working on a different MEP 29 ? Nicolas On 14 Oct 2016, at 16:06, Thomas Caswell <tcaswell at gmail.com> wrote: Nicolas, Put an a PR adding a file to https://github.com/matplotlib/matplotlib/tree/master/doc/devel/MEP is the current MEP procedure. Tom On Mon, Oct 10, 2016 at 1:09 AM Nicolas P. Rougier <Nicolas.Rougier at inria.fr> wrote: Based on the example rainbow_text.py in the gallery, I've tried to implement a simple markup extension to the text directive (see code below).

It's far from complete but I would like to know if there's any interest in that and if it's worth making a MEP (and if yes, could someone remind me the procedure for doing that ?). The idea is to be able to use pango-like markup text for quick/small changes of the text: Examples: "Hello <b>world</b>!" "Hello <span color=blue>world</span>!" "Hello <span family=serif size=x-small>world</span>" Currently, the implementation only works for non-rotated text.

Nicolas _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org https://mail.python.org/mailman/listinfo/matplotlib-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/matplotlib-devel/attachments/20161014/84c44d14/attachment.html&gt ; antony.lee October 14, 2016, 7:57pm 5 Wouldn't it make more sense to implement this as improvements to mathtext? instead of "Hello <b>world</b>!" "Hello <span color=blue>world</span>!" "Hello <span family=serif size=x-small>world</span>" have r" \\text\{Hello \\textbf\{world\}\} " r" \\text\{Hello \\textcolor\{blue\}\{world\}\} " r" \\text\{Hello \\textsf\{\\small world\}\} " You'll be able to have a better layout this way too (reusing the mathtext layout engine).

One could have some helper if " \\text\{\} " is too much to type (but TBH you immediately gain back on the fact that you don't need closing tags...). Antony 2016-10-14 12:05 GMT-07:00 OceanWolf via Matplotlib-devel < matplotlib-devel at python.org>: Good question, the only answer we have right now revolves around changing the MEP number at merge time into trunk. If changing the MEP number exists as the only thing left to do, then it will get merged straight away, easy, so no having to come back to change it a 2nd time.

Best, Oceanwolf ------------------------------ *From:* Nicolas P. Rougier <Nicolas.Rougier at inria.fr> *To:* Thomas Caswell <tcaswell at gmail.com> *Cc:* matplotlib development list <matplotlib-devel at python.org> *Sent:* Friday, 14 October 2016, 19:17 *Subject:* Re: [Matplotlib-devel] Markup text Thanks Thomas. Just realized I've an old MEP (MEP28 Matplotlib Developers · GitHub matplotlib/pull/4384), should I create a MEP29 instead ?

How do I know if someone else is already working on a different MEP 29 ? Nicolas > > Nicolas, > > Put an a PR adding a file to Matplotlib Developers · GitHub matplotlib/tree/master/doc/devel/MEP is the current MEP procedure. > > Tom > > > > Based on the example rainbow_text.py in the gallery, I've tried to implement a simple markup extension to the text directive (see code below). It's far from complete but I would like to know if there's any interest in that and if it's worth making a MEP (and if yes, could someone remind me the procedure for doing that ?). > > The idea is to be able to use pango-like markup text for quick/small changes of the text: > > > Examples: > > "Hello <b>world</b>!" > "Hello <span color=blue>world</span>!" > "H

The rest of this page is on the live site.