Skip to content

[Doc]: regression in stable/api/index #26623

Open

Description

@jklymak

Documentation Link

https://matplotlib.org/stable/api/index versus https://matplotlib.org/devdocs/api/index.html

Problem

There was some cleanup of https://matplotlib.org/devdocs/api/index.html by @timhoffm in #26402, but I feel it went too far. For instance, there used to be a small plot on the API page to orient users as to the basic usage pattern. I find the current version very terse, and not helpful to new users. You can argue that an API page should be terse, however our API is actually pretty strange and subject to confusion, so I think getting users on the right path here is helpful.

Suggested improvement

  • should at least include the small example again
  • be a bit more verbose about the two APIs.
  • include subplot_mosaic on the same level as subplots.

Activity

  1. story645 commented on Aug 29, 2023

    @story645
    Member

    I'd rather just have a very large link at the top: to learn how to use this, see quick start/user guide.
    I kinda think the teach by example isn't much better than the stack overflow cause it's still missing contextualization of concept. And if we were gonna do contextualization on the API page then it should be happening within the explanation of each API and not before.

  2. jklymak commented on Aug 29, 2023

    @jklymak
    MemberAuthor

    The original goal of the simple example was to provide a quick map of the API - create a Figure and Axes, use the Axes. Previously there was nothing to guide users to the Axes page. The current version does that using words, but those words are pretty abstract if you aren't familiar with the library.

  3. timhoffm commented on Aug 30, 2023

    @timhoffm
    Member

    The current version does that using words, but those words are pretty abstract if you aren't familiar with the library.

    If you aren't familiar with the library, the API reference should not be your starting point. We redirect such people:

    See Matplotlib Application Interfaces (APIs) for a more detailed description of both and their recommended use cases.

    and if you will, add @story645's proposal

    I'd rather just have a very large link at the top: to learn how to use this, see quick start/user guide.

  4. jklymak commented on Aug 30, 2023

    @jklymak
    MemberAuthor

    If you aren't familiar with the library, the API reference should not be your starting point. We redirect such people:

    By that logic there should be no discussion of the two API types here at all, which we decided quite a while ago was untenable.

  5. story645 commented on Aug 30, 2023

    @story645
    Member

    By that logic there should be no discussion of the two API types here at all, which we decided quite a while ago was untenable.

    The basic discussion was there to signpost/roadmap where people need to go when they hit the landing page. Including folks who've learned a ton of pyplot via examples so may not know the name of what they're using but can pattern match to it -> which is why I think a teeny tiny no picture need code example could be useful.

  6. jklymak commented on Aug 30, 2023

    @jklymak
    MemberAuthor

    What is the rationale for not showing the picture that results from the code? Clutter and succinctness doesn't make sense, because there is nothing else on the page.

  7. story645 commented on Aug 30, 2023

    @story645
    Member

    What is the rationale for not showing the picture that results from the code

    Because the goal here isn't to show what the code produces, but to highlight the differences in API. So the worry, especially if there's a lot going on in the figure, is that the figure contents will distract from the code.
    Granted, I'm OK with teeny tiny can fit in table stripped down figs that show that these interfaces yield the same thing.

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