8000 Sketch out support for matplotlibrc-like config dictionaries by tonysyu · Pull Request #4 · tacaswell/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Sketch out support for matplotlibrc-like config dictionaries #4

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

Merged
merged 4 commits into from
Jan 17, 2014

Conversation

tonysyu
Copy link
@tonysyu tonysyu commented Jan 17, 2014

@tacaswell I ended up moving RcParamNG to MPLConfig just for kicks. Other than that, the only substantive changes is the from_user_config method and a fix for old-style classes (contour.ContourSet broke the type check).

The rest of the code sits alongside yours and adds parsing for dictionaries that look similar to what you might get out of matplotlibrc files. Right now, only 'lines.linewidth' is connected.

tacaswell added a commit that referenced this pull request Jan 17, 2014
Sketch out support for matplotlibrc-like config dictionaries
@tacaswell tacaswell merged commit 8b75830 into tacaswell:rcparam_ng Jan 17, 2014
@tacaswell
Copy link
Owner

Looks good to me!

tacaswell pushed a commit that referenced this pull request Sep 9, 2015
MNT: use IPython's signature if needed + available
tacaswell pushed a commit that referenced this pull request Oct 1, 2017
This fixes some possible heap buffer overflows, such as the following
triggered by our cmmi10.ttf:

```
ERROR: AddressSanitizer: heap-buffer-overflow on address 0x617000235709 at pc 0x7f95efd3c48a bp 0x7ffe41b6ecc0 sp 0x7ffe41b6ecb0
READ of size 1 at 0x617000235709 thread T0
    #0 0x7f95efd3c489 in utf16be_to_ascii extern/ttconv/pprdrv_tt.cpp:178
    #1 0x7f95efd3c489 in Read_name(TTFONT*) extern/ttconv/pprdrv_tt.cpp:339
    #2 0x7f95efd499ef in read_font(...) extern/ttconv/pprdrv_tt.cpp:1325
    #3 0x7f95efd4c602 in get_pdf_charprocs(...) extern/ttconv/pprdrv_tt.cpp:1420
    #4 0x7f95efd35c22 in py_get_pdf_charprocs src/_ttconv.cpp:217

0x617000235709 is located 1 bytes to the right of 648-byte region [0x617000235480,0x617000235708)
allocated by thread T0 here:
    #0 0x7f9612262a38 in __interceptor_calloc (/usr/lib64/libasan.so.4+0xdea38)
    #1 0x7f95efd3b261 in GetTable(TTFONT*, char const*) extern/ttconv/pprdrv_tt.cpp:140
```
tacaswell pushed a commit that referenced this pull request Mar 31, 2019
tacaswell pushed a commit that referenced this pull request Mar 31, 2023
uses the assert_almost_equal function instead of assert_array_equal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0