GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — add figpager as a third party package by ebenp · Pull Request #18025 · matplotlib/matplotlib Conversation
Contributor
PR SummaryI wrote a class around matplotlib's single and multi page backends to control subplot layout and some figure elements such s text, lines and images to make single and multi page figure templates. This PR adds links to this template library to the third party documentation page in matplotlib's documentation. PR Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
please add |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! :) I've updated setup.py |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! You have a couple of formatting issues.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| :height: 330px | ||
|
|
||
| figpager | ||
| ===== |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
undescores must span the element above.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've extended them below.
ebenp@898e67f
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| figpager | ||
| ===== | ||
|
|
||
| `figpager <https://pypi.org/project/figpager/>`_ provides customizable figure elements such as text, lines and images |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please wrap at 79 char....
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've wrapped it below.
ebenp@898e67f
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Corrected heading and character wrap for figpager entry. Added period at sentence end.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We try to keep image sizes small. Please run the image though a png compressor like https://tinypng.com/.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks for thinking of the pixels! Thanks for linking to a compressor as well. I think I've updated things correctly. Smaller image processed through tinypng and uploaded. Image path update in index.rst |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
👍 This should be squashed to 1 commit (either by @ebenp or via squash-merge).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ebenp you may also want to put in a JOSS (https://joss.theoj.org/) paper? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| and subplot layout control for single or multi page output | ||
| `figpager <https://pypi.org/project/figpager/>`_ provides | ||
| customizable figure elements such as text, lines and images | ||
| and subplot layout control for single or multi page output. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
and a subplot layout
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This shaves off ~33% runtime from ```python from pylab import * import timeit tx = figtext(.5, .5, "foo\nbar baz") gcf().canvas.draw() gcf().patch.set_visible(False) r = gcf()._cachedRenderer n, t = timeit.Timer(lambda: tx.draw(r)).autorange(); print(t / n, n, t) ``` because previously the calls to realpath were not cached and filesystem access is slow. (The font cache is likely already in trouble if fonts move in the filesystem within the execution of a program given that there are other layers of cache, so I wouldn't overly worry about that. At best we may want to expose a manual function to invalidate all caches if someone really runs into that problem.)
|
All these commits should be squashed before merging.... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
author ebenp <[email protected]> 1595519414 -0400 committer ebenp <[email protected]> 1595520159 -0400 Added fgpager info
|
Ugh. Tried to squash / rebase and utterly failed. I kept getting newer matplotlib changes interspersed. Anyway, I nuked and paved by re forking and updating the files. How do I reset the link to the respoitory? HALP. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So sorry! I should have been more clear that you didn't need to do the squash if you weren't comfortable with the process. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Oh, no worries. I thought I could figure it out. I think I was close but my changes kept editing other files; init.py and font_manager and I got worried. For the future I'll ask from help in squashing. I assume I pull and then squash? Or do I squash my commits and don't worry about it being out of sync with the current matplotlib? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I typically |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks! That is super helpful. For this draft pull request is everything ok despite me removing the repository? Should I recreate the draft pull request or create a PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Great idea! I'll have to come up with a spiffy logo! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Generally, you don't need to worry about syncing. The GitHub UI will tell you if there is a merge conflict. And only then you need to sync (by rebasing on top of master). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ah ok. Yeah, I tried to be all fancy before I squashed through rebase and quickly was out of my depth. I won't worry about it in the future. Thanks for the help and support all! This has been a really welcoming intro to matplotlib PRs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@story645 Let me know if there's a way to relink my repository or if I should create a new PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't think there is a way. Probably be best to create a new PR if this one is no longer updating correctly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! Sounds great. A new PR is here: #18059 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.