FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

support markdown or similar · Issue #6695 · matplotlib/matplotlib · GitHub

Repository navigation

support markdown or similar #6695

Closed
Closed

Description

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.

Activity

  1. WeatherGod commented on Jul 6, 2016

    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
    .

  2. wiso commented on Jul 6, 2016

    Author

    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.

  3. WeatherGod commented on Jul 6, 2016

    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
    .

  4. wiso commented on Jul 6, 2016

    Author

    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.

  5. WeatherGod commented on Jul 6, 2016

    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
    .

  6. mdboom commented on Jul 6, 2016

    Member

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

  7. added this to the milestone on Jul 16, 2016
  8. anntzer commented on Nov 15, 2016

    Contributor

    Superseded by #7291 (MEP29: markup text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL