Commit c45678e
* Feature addition: I added in the the \dfrac macro (displaystyle fraction) to the mathtex implementation.
* PEP8 fixes
* Documentation: Updated the docstring for the dfrac_demo
Bug fix: I added a plt.show() to the end of the dfrac_demo
Tests: I added in a new test for the dfrac macro (along with the corresponding comparison files) within the test_mathtex test suite.
* Documentation update: I updated the dfrac_demo docstring to be a raw string with the backslashes escaped.
Feature modification: I added in a dictionary to the Parser class of mathtex to link math style names to their TeX numerical values. I used a dictionary instead of hardcoding specific math style (ex. DISPLAYSTYLE=0) as I will use the dictionary in my implementation of the math styles in the future.
* Although Sphyinx requires "\\" to show "\" characters, I removed them as matplotlib doesn't currently support this behavior in docstrings.
* Remove stray text from documentation.
* With the resent merging of the sphinx-gallery branch, I went through and updated the docstring to appropriately escape the backslashes.
* TST: add missing tests
1 parent c683c3e commit c45678e
File tree
18 files changed
+927
-13
lines changed- examples/text_labels_and_annotations
- lib/matplotlib
- tests
- baseline_images/test_mathtext
18 files changed
+927
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2219 | 2223 | | |
2220 | 2224 | | |
2221 | 2225 | | |
| |||
2301 | 2305 | | |
2302 | 2306 | | |
2303 | 2307 | | |
| 2308 | + | |
2304 | 2309 | | |
2305 | 2310 | | |
2306 | 2311 | | |
| |||
2389 | 2394 | | |
2390 | 2395 | | |
2391 | 2396 | | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2392 | 2402 | | |
2393 | 2403 | | |
2394 | 2404 | | |
| |||
2441 | 2451 | | |
2442 | 2452 | | |
2443 | 2453 | | |
| 2454 | + | |
2444 | 2455 | | |
2445 | 2456 | | |
2446 | 2457 | | |
| |||
3035 | 3046 | | |
3036 | 3047 | | |
3037 | 3048 | | |
3038 | | - | |
3039 | | - | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
3040 | 3054 | | |
3041 | 3055 | | |
3042 | 3056 | | |
| |||
3069 | 3083 | | |
3070 | 3084 | | |
3071 | 3085 | | |
3072 | | - | |
3073 | | - | |
| 3086 | + | |
| 3087 | + | |
3074 | 3088 | | |
3075 | 3089 | | |
3076 | 3090 | | |
3077 | 3091 | | |
3078 | | - | |
3079 | | - | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
3080 | 3106 | | |
3081 | 3107 | | |
3082 | 3108 | | |
3083 | 3109 | | |
3084 | 3110 | | |
3085 | 3111 | | |
3086 | | - | |
| 3112 | + | |
| 3113 | + | |
3087 | 3114 | | |
3088 | 3115 | | |
3089 | | - | |
3090 | | - | |
| 3116 | + | |
| 3117 | + | |
3091 | 3118 | | |
3092 | 3119 | | |
3093 | | - | |
| 3120 | + | |
| 3121 | + | |
3094 | 3122 | | |
3095 | 3123 | | |
3096 | | - | |
3097 | | - | |
| 3124 | + | |
| 3125 | + | |
3098 | 3126 | | |
3099 | 3127 | | |
3100 | | - | |
| 3128 | + | |
| 3129 | + | |
3101 | 3130 | | |
3102 | 3131 | | |
3103 | 3132 | | |
| |||
Binary file not shown.
Lines changed: 231 additions & 0 deletions
Loading
Binary file not shown.
0 commit comments