-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Doc]: dynamically resize the mathtext symbol tables #26143
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
Comments
Good first issue - notes for new contributorsThis issue is suited to new contributors because it does not require understanding of the Matplotlib internals. To get started, please see our contributing guide. We do not assign issues. Check the Development section in the sidebar for linked pull requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please collaborate on the work by reviewing it rather than duplicating it in a competing PR. If something is unclear, please reach out on any of our communication channels. |
Hey, can I work on this??? |
Hello. |
Hey all, as mentioned in #26143 (comment)
ETA: Sorry forgot to add, in this situation I'm going to warn you that there will likely be some thrashing on that file and you will most likely need to rebase any work you've done. |
Is it possible to dynamically adapt the number of columns? Or is the idea to consider the length of the content and then cleverly select the number of columns in some way? (I guess the main "problem" is that this is not really a "table", just that we want to stack information in a space-efficient way. So tables will typically not support resizing in that way?) |
Both? I was thinking of how sphinx design grids dynamically wrap and this is sort of a 1 element per grid cell situation. |
Hey, I found out that on the table the number of columns for example on "Upper-Case Greek" is 8 matplotlib/doc/sphinxext/math_symbol_table.py Lines 13 to 16 in f329eb8
and the length of the table is 13 but here https://matplotlib.org/devdocs/users/explain/text/mathtext.html#symbols the number of columns is 4. On the code https://github.com/matplotlib/matplotlib/blob/f329eb8fda1dc38c468caecf0d7f7d835a753f10/doc/sphinxext/math_symbol_table.py#L109C1-L109C1 |
Here is the documentation regarding grids: https://sphinx-design.readthedocs.io/en/latest/grids.html |
anyone working on this would like to take this on! |
Hi @rajveer43 , you can see above that there is a pull request from @NikosNikolaidis02 that solves this issue. I'd suggest choosing another issue until they have a chance to respond to the comments there. Cheers! |
Uh oh!
There was an error while loading. Please reload this page.
Documentation Link
https://matplotlib.org/devdocs/users/explain/text/mathtext.html#symbols
Problem
In the math text example, the number of columns for displaying each set of symbols is specified as part of defining each set of symbols:
matplotlib/doc/sphinxext/math_symbol_table.py
Lines 6 to 12 in f329eb8
This makes the tables somewhat brittle with respect to a reordering or a resizing.
Suggested improvement
modify the run function of the directive to generate a more dynamic table, maybe a list table
tagging this good first issue because the work is contained to the
math_symbol_table.py
file and the way to verify that the changes make sense is to build the docs and ensure that the resulting tables in the mathtext tutorials look similar to the old ones but are dynamically resizable. This issues requires working knowledge of sphinx.The text was updated successfully, but these errors were encountered: