Skip to content

support markdown or similar #6695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wiso opened this issue Jul 6, 2016 · 7 comments
Closed

support markdown or similar #6695

wiso opened this issue Jul 6, 2016 · 7 comments

Comments

@wiso
Copy link

wiso commented Jul 6, 2016

It would be very nice if matplotlib supports markdown or similar for text. The main motivation is to write text with different styles using just one command, as for example asked here: http://stackoverflow.com/questions/30890831/change-text-style-inline-in-matplotlib.

@WeatherGod
Copy link
Member

It supports "mathtext": http://matplotlib.org/users/mathtext.html

On Wed, Jul 6, 2016 at 3:55 AM, Ruggero Turra notifications@github.com
wrote:

It would be very nice if matplotlib supports markdown or similar for text.
The main motivation is to write text with different styles using just one
command, as for example asked here:
http://stackoverflow.com/questions/30890831/change-text-style-inline-in-matplotlib
.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6695, or mute the thread
https://github.com/notifications/unsubscribe/AARy-B94Rd7t7RpV7IFcFYJkAKuKV7vqks5qS1-DgaJpZM4JF1id
.

@wiso
Copy link
Author

wiso commented Jul 6, 2016

Yes, I know, this is what people suggested on stackoverflow. I would like to have a solution which doesn't use matthext, but using the same fonts used elsewhere.

@WeatherGod
Copy link
Member

no, what people suggested on stack overflow was latex (having to set
usetex=True). I am talking about "math text", which is matplotlib's
mini-latex language. You don't need to turn on usetex or have latex
installed. It'll just work.

On Wed, Jul 6, 2016 at 10:18 AM, Ruggero Turra notifications@github.com
wrote:

Yes, I know, this is what people suggested on stackoverflow. I would like
to have a solution which doesn't use matthext, but using the same fonts
used elsewhere.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6695 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AARy-GMhTy8dt-iNW_JtQzGqAYV4wgLkks5qS7kwgaJpZM4JF1id
.

@wiso
Copy link
Author

wiso commented Jul 6, 2016

ok, thank you, but it seems to me that math text is oriented to writing formulas. I need to write some sentences and to set some words in bold. It is quite difficult to achieve this with math text, for example for the spaces.

@WeatherGod
Copy link
Member

Indeed, it is oriented to writing formulas, as much of our user-base is
familiar with latex and the amstex extension.

While I wouldn't be against someone adding new functionality to support
markdown or ReST, I am skeptical of its value:

  1. markdown is great for prose that doesn't need to get cluttered with some
    markup language. Nobody* is going to be plotting prose using matplotlib.
  2. matplotlib's text objects supports mathtext out-of-the-box. Just need
    the dollar signs to denote where to parse the mathtext. If one wants to
    support markdown, then that may or may not conflict with the native support
    for mathtext. I don't know for sure, but I wouldn't be surprised. Might
    need a keyword argument or an rcParam to turn on?
  3. How much of markdown should we support? Bullets? URLs? Images?

There is a cost/benefit to consider here, especially in the context of the
existing support for \textit{} and family.

  • - for some very large values of 0.

On Wed, Jul 6, 2016 at 10:33 AM, Ruggero Turra notifications@github.com
wrote:

ok, thank you, but it seems to me that math text is oriented to writing
formulas. I need to write some sentences and to set some words in bold.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6695 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AARy-M3p4L4_edf9Iu1_2ij_XUR8j0IGks5qS7yjgaJpZM4JF1id
.

@mdboom
Copy link
Member

mdboom commented Jul 6, 2016

MEP14 addresses some of these rich formatting issues. It would be a large project, but help is always welcome.

@mdboom mdboom added this to the unassigned milestone Jul 16, 2016
@anntzer
Copy link
Contributor

anntzer commented Nov 15, 2016

Superseded by #7291 (MEP29: markup text).

@anntzer anntzer closed this as completed Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants