| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Seems like a reasonable approach. Is this injected into the .svg files? If so it would be good to add a quick note to doc/api/next_api_changes/behavior to say that the contents will be slightly different, just in case there is anybody comparing the hashes of matplotlib generated .svg files.
Sorry, something went wrong.
|
Ok. I can update that and add it to the pull request.
…On Thu, Aug 6, 2020 at 5:20 PM David Stansby ***@***.***> wrote:
***@***.**** commented on this pull request.
Seems like a reasonable approach. Is this injected into the .svg files? If
so it would be good to add a quick note to
doc/api/next_api_changes/behavior to say that the contents will be
slightly different, just in case there is anybody comparing the hashes of
matplotlib generated .svg files.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18193 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJTWIZER3MDYG477B3Y6KDR7MNCRANCNFSM4PWSKEPA>
.
|
Sorry, something went wrong.
|
Alright I've added a file to the doc/api/next_api_changes/behavior. Let me know if the description seems unclear and needs tweaking. |
Sorry, something went wrong.
|
I re-wrote the behavior change note to no longer reference the private method. I was also previously getting an error from the circleci doc tests that I think was from the warnings Sphinx gave about my references to hashlib.md5 and RenderSVG._make_id. The warnings said that Sphinx couldn't find these pyobjs to link to them. Obviously I removed the reference to RenderSVG._make_id so that won't be a problem any more, but I also reworded my note about hashlib.md5 to avoid having to do a intersphinx reference. |
Sorry, something went wrong.
There was a problem hiding this comment.
This seems fine to me. I don't know that it really needs an API change note - the origin of the hash is just an implementation detail of the unique ID, and its not like the user needs to know that. But, I guess it doesn't hurt.
Sorry, something went wrong.
|
It's been a pleasure! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
This pull request resolves #18192.
If you use a FIPS (Federal Information Processing Standards) enabled system, then you cannot use plt.savefig to save an image in SVG format. This is because the RenderSVG._make_id method takes the first 10 characters of a hashlib.md5 digest of entries in the SVG as the ID for entries in the SVG file.
The Python docs for hashlib includes the following note:
PR Checklist
- Not sure if this is applicable to my change
- Not a major feature