Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4388 from tacaswell/fix_svg_id
BUG : fix svg corner case
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Add salt to cilpPath id | ||
``````````````````````` | ||
|
||
Add salt to the hash used to determine the id of the ``clipPath`` | ||
nodes. This is to avoid conflicts in two svg documents with the same | ||
clip path are included in the same document (see | ||
https://github.com/ipython/ipython/issues/8133 and | ||
https://github.com/matplotlib/matplotlib/issues/4349 ), however this | ||
means that the svg output is no longer deterministic if the same | ||
figure is saved twice. It is not expected that this will affect any | ||
users as the current ids are generated from an md5 hash of properties | ||
of the clip path and any user would have a very difficult time | ||
anticipating the value of the id. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters