See More

diff --git a/CHANGELOG b/CHANGELOG index 28f743d13221..f9400c7d0e88 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2015-01-23 Text bounding boxes are now computed with advance width rather than + ink area. This may result in slightly different placement of text. + 2014-10-27 Allowed selection of the backend using the `MPLBACKEND` environment variable. Added documentation on backend selection methods. diff --git a/lib/matplotlib/backends/backend_agg.py b/lib/matplotlib/backends/backend_agg.py index c7a59be98ce8..687e52bcfc78 100644 --- a/lib/matplotlib/backends/backend_agg.py +++ b/lib/matplotlib/backends/backend_agg.py @@ -202,12 +202,15 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None): font.draw_glyphs_to_bitmap(antialiased=rcParams['text.antialiased']) d = font.get_descent() / 64.0 # The descent needs to be adjusted for the angle + xo, yo = font.get_bitmap_offset() + xo /= 64.0 + yo /= 64.0 xd = -d * np.sin(np.deg2rad(angle)) yd = d * np.cos(np.deg2rad(angle)) #print x, y, int(x), int(y), s self._renderer.draw_text_image( - font, np.round(x - xd), np.round(y + yd) + 1, angle, gc) + font, np.round(x - xd + xo), np.round(y + yd + yo) + 1, angle, gc) def get_text_width_height_descent(self, s, prop, ismath): """ diff --git a/lib/matplotlib/tests/baseline_images/test_arrow_patches/boxarrow_test_image.png b/lib/matplotlib/tests/baseline_images/test_arrow_patches/boxarrow_test_image.png index 3ddad736d44a..dc8605d5bf22 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_arrow_patches/boxarrow_test_image.png and b/lib/matplotlib/tests/baseline_images/test_arrow_patches/boxarrow_test_image.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf index a4098995a306..b506e44cd48b 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.png b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.png index ca3f593f08b1..8f2b7cad1ca0 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.png and b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg index 61fa93fcf1ca..214729508539 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/axhspan_epoch.svg @@ -5,7 +5,7 @@ @@ -35,7 +35,31 @@ L72 200.291 L518.4 200.291 L518.4 231.709 z -" style="fill:#0000ff;opacity:0.25;stroke:#000000;"/> +" style="fill:#0000ff;opacity:0.25;stroke:#000000;stroke-linejoin:miter;"/> + + + + + + + + + + + + @@ -43,20 +67,20 @@ z +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -89,7 +113,7 @@ L10.6875 0 z " id="BitstreamVeraSans-Roman-2e"/> - + @@ -99,12 +123,12 @@ z - + - + @@ -134,7 +158,7 @@ Q49.8594 40.875 45.4062 35.4062 Q44.1875 33.9844 37.6406 27.2188 Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + @@ -144,12 +168,12 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + @@ -175,7 +199,7 @@ L4.89062 26.7031 z " id="BitstreamVeraSans-Roman-34"/> - + @@ -185,12 +209,12 @@ z - + - + @@ -225,7 +249,7 @@ Q23.3906 74.2188 37.2031 74.2188 Q40.9219 74.2188 44.7031 73.4844 Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + @@ -235,12 +259,12 @@ Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + - + @@ -283,7 +307,7 @@ Q38.1406 66.4062 31.7812 66.4062 Q25.3906 66.4062 21.8438 63.2344 Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + @@ -293,12 +317,12 @@ Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + - + @@ -319,7 +343,7 @@ L12.4062 0 z " id="BitstreamVeraSans-Roman-31"/> - + @@ -333,20 +357,20 @@ z +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -455,7 +479,7 @@ Q24.2188 56 28.6094 56 Q40.4844 56 46.3438 49.8438 Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + @@ -473,17 +497,17 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + - + @@ -501,17 +525,17 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + - + @@ -529,12 +553,12 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + @@ -572,7 +596,7 @@ Q53.9062 64.0156 53.9062 55.3281 Q53.9062 49.2656 50.4375 45.0938 Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + @@ -590,12 +614,12 @@ Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + - + @@ -627,7 +651,7 @@ Q14.8906 38.1406 10.7969 36.2812 z " id="BitstreamVeraSans-Roman-35"/> - + @@ -645,17 +669,17 @@ z - + - + - + @@ -700,32 +724,12 @@ L-0.296875 64.5938 z " id="BitstreamVeraSans-Roman-54"/> - + - - - - - - - - - - - - diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf index a9f184d68740..31706ee324a1 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.png b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.png index d665bcf0bde6..b8ed868df20c 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.png and b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg index dd1d0f25ff22..57334eb244ab 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/axvspan_epoch.svg @@ -5,7 +5,7 @@ @@ -35,7 +35,31 @@ L274.909 43.2 L315.491 43.2 L315.491 388.8 z -" style="fill:#0000ff;opacity:0.25;stroke:#000000;"/> +" style="fill:#0000ff;opacity:0.25;stroke:#000000;stroke-linejoin:miter;"/> + + + + + + + + + + + + @@ -43,20 +67,20 @@ z +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -221,7 +245,7 @@ Q24.2188 56 28.6094 56 Q40.4844 56 46.3438 49.8438 Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + @@ -239,17 +263,17 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + - + @@ -267,17 +291,17 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + - + @@ -295,12 +319,12 @@ Q52.2031 43.7031 52.2031 31.2031" id="BitstreamVeraSans-Roman-61"/> - + - + @@ -338,7 +362,7 @@ Q53.9062 64.0156 53.9062 55.3281 Q53.9062 49.2656 50.4375 45.0938 Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + @@ -356,12 +380,12 @@ Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + - + @@ -393,7 +417,7 @@ Q14.8906 38.1406 10.7969 36.2812 z " id="BitstreamVeraSans-Roman-35"/> - + @@ -411,17 +435,17 @@ z - + - + - + @@ -466,7 +490,7 @@ L-0.296875 64.5938 z " id="BitstreamVeraSans-Roman-54"/> - + @@ -478,20 +502,20 @@ z +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -505,7 +529,7 @@ L10.6875 0 z " id="BitstreamVeraSans-Roman-2e"/> - + @@ -515,17 +539,17 @@ z - + - + - + @@ -535,12 +559,12 @@ z - + - + @@ -566,7 +590,7 @@ L4.89062 26.7031 z " id="BitstreamVeraSans-Roman-34"/> - + @@ -576,12 +600,12 @@ z - + - + @@ -616,7 +640,7 @@ Q23.3906 74.2188 37.2031 74.2188 Q40.9219 74.2188 44.7031 73.4844 Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + @@ -626,12 +650,12 @@ Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + - + @@ -674,7 +698,7 @@ Q38.1406 66.4062 31.7812 66.4062 Q25.3906 66.4062 21.8438 63.2344 Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + @@ -684,17 +708,17 @@ Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + - + - + @@ -702,26 +726,6 @@ Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - - - - - - - - - - - - diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf index 8eda82a6fbd8..1afba9760bc1 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.png b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.png index 22cae58cb7fb..932ab02ebcad 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.png and b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg index 315eca77e663..fb863d5b7026 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/boxplot.svg @@ -73,11 +73,11 @@ L191.97 216" style="fill:none;stroke:#ff0000;stroke-linecap:square;"/> M-3 0 L3 0 M0 3 -L0 -3" id="m459c79e89c" style="stroke:#0000ff;stroke-width:0.5;"/> +L0 -3" id="mbd25c71127" style="stroke:#0000ff;stroke-width:0.5;"/> - - + + @@ -121,91 +121,119 @@ L415.17 216" style="fill:none;stroke:#ff0000;stroke-linecap:square;"/> - - + + + + + + + + + + + + + + +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + - + +M12.4062 8.29688 +L28.5156 8.29688 +L28.5156 63.9219 +L10.9844 60.4062 +L10.9844 69.3906 +L28.4219 72.9062 +L38.2812 72.9062 +L38.2812 8.29688 +L54.3906 8.29688 +L54.3906 0 +L12.4062 0 +z +" id="BitstreamVeraSans-Roman-31"/> - - + + - + - + - + +M19.1875 8.29688 +L53.6094 8.29688 +L53.6094 0 +L7.32812 0 +L7.32812 8.29688 +Q12.9375 14.1094 22.625 23.8906 +Q32.3281 33.6875 34.8125 36.5312 +Q39.5469 41.8438 41.4219 45.5312 +Q43.3125 49.2188 43.3125 52.7812 +Q43.3125 58.5938 39.2344 62.25 +Q35.1562 65.9219 28.6094 65.9219 +Q23.9688 65.9219 18.8125 64.3125 +Q13.6719 62.7031 7.8125 59.4219 +L7.8125 69.3906 +Q13.7656 71.7812 18.9375 73 +Q24.125 74.2188 28.4219 74.2188 +Q39.75 74.2188 46.4844 68.5469 +Q53.2188 62.8906 53.2188 53.4219 +Q53.2188 48.9219 51.5312 44.8906 +Q49.8594 40.875 45.4062 35.4062 +Q44.1875 33.9844 37.6406 27.2188 +Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - - + + @@ -216,26 +244,33 @@ z +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + + +M31.7812 66.4062 +Q24.1719 66.4062 20.3281 58.9062 +Q16.5 51.4219 16.5 36.375 +Q16.5 21.3906 20.3281 13.8906 +Q24.1719 6.39062 31.7812 6.39062 +Q39.4531 6.39062 43.2812 13.8906 +Q47.125 21.3906 47.125 36.375 +Q47.125 51.4219 43.2812 58.9062 +Q39.4531 66.4062 31.7812 66.4062 +M31.7812 74.2188 +Q44.0469 74.2188 50.5156 64.5156 +Q56.9844 54.8281 56.9844 36.375 +Q56.9844 17.9688 50.5156 8.26562 +Q44.0469 -1.42188 31.7812 -1.42188 +Q19.5312 -1.42188 13.0625 8.26562 +Q6.59375 17.9688 6.59375 36.375 +Q6.59375 54.8281 13.0625 64.5156 +Q19.5312 74.2188 31.7812 74.2188" id="BitstreamVeraSans-Roman-30"/> - + @@ -284,42 +331,17 @@ z - + - + - - - - + @@ -329,17 +351,17 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + @@ -349,17 +371,17 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + @@ -367,17 +389,17 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + @@ -386,17 +408,17 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + @@ -405,43 +427,23 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + - - - - - - - - - - - - diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.pdf b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.pdf index 841b92eb69ec..933a067b2d06 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.png b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.png index 6f4d6c4ec746..e2d51f755042 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.png and b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.svg b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.svg index 2f45fa6743b0..2d76ce3d06f5 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/boxplot_autorange_whiskers.svg @@ -108,87 +108,115 @@ M398.43 181.44 L415.17 181.44" style="fill:none;stroke:#ff0000;stroke-linecap:square;"/> + + + + + + + + + + + + +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + - + +M12.4062 8.29688 +L28.5156 8.29688 +L28.5156 63.9219 +L10.9844 60.4062 +L10.9844 69.3906 +L28.4219 72.9062 +L38.2812 72.9062 +L38.2812 8.29688 +L54.3906 8.29688 +L54.3906 0 +L12.4062 0 +z +" id="BitstreamVeraSans-Roman-31"/> - - + + - + - + - + +M19.1875 8.29688 +L53.6094 8.29688 +L53.6094 0 +L7.32812 0 +L7.32812 8.29688 +Q12.9375 14.1094 22.625 23.8906 +Q32.3281 33.6875 34.8125 36.5312 +Q39.5469 41.8438 41.4219 45.5312 +Q43.3125 49.2188 43.3125 52.7812 +Q43.3125 58.5938 39.2344 62.25 +Q35.1562 65.9219 28.6094 65.9219 +Q23.9688 65.9219 18.8125 64.3125 +Q13.6719 62.7031 7.8125 59.4219 +L7.8125 69.3906 +Q13.7656 71.7812 18.9375 73 +Q24.125 74.2188 28.4219 74.2188 +Q39.75 74.2188 46.4844 68.5469 +Q53.2188 62.8906 53.2188 53.4219 +Q53.2188 48.9219 51.5312 44.8906 +Q49.8594 40.875 45.4062 35.4062 +Q44.1875 33.9844 37.6406 27.2188 +Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - - + + @@ -199,26 +227,33 @@ z +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + + - - + @@ -254,42 +282,17 @@ z - + - + - - - - + @@ -298,17 +301,38 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + + + + @@ -316,17 +340,17 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + @@ -334,42 +358,22 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + - + - - - - - - - - - - - - diff --git a/lib/matplotlib/tests/baseline_images/test_axes/bxp_baseline.png b/lib/matplotlib/tests/baseline_images/test_axes/bxp_baseline.png index 146241bd347c..b407b2fd5644 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/bxp_baseline.png and b/lib/matplotlib/tests/baseline_images/test_axes/bxp_baseline.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/bxp_precentilewhis.png b/lib/matplotlib/tests/baseline_images/test_axes/bxp_precentilewhis.png index dd6b368e7196..0f4352580a4a 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/bxp_precentilewhis.png and b/lib/matplotlib/tests/baseline_images/test_axes/bxp_precentilewhis.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/bxp_rangewhis.png b/lib/matplotlib/tests/baseline_images/test_axes/bxp_rangewhis.png index 8df2d30167c8..c48d0ab78ce2 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/bxp_rangewhis.png and b/lib/matplotlib/tests/baseline_images/test_axes/bxp_rangewhis.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_xlabels.png b/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_xlabels.png index fda6da5059fd..92dd1e0fc504 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_xlabels.png and b/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_xlabels.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_ylabels.png b/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_ylabels.png index 07867fa6ddbc..565f491810a6 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_ylabels.png and b/lib/matplotlib/tests/baseline_images/test_axes/bxp_with_ylabels.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/canonical.pdf b/lib/matplotlib/tests/baseline_images/test_axes/canonical.pdf index a9492263ad9e..4cd264aaa011 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/canonical.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/canonical.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/canonical.png b/lib/matplotlib/tests/baseline_images/test_axes/canonical.png index 0d7784faf05e..602168b49f50 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/canonical.png and b/lib/matplotlib/tests/baseline_images/test_axes/canonical.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/canonical.svg b/lib/matplotlib/tests/baseline_images/test_axes/canonical.svg index 5a0982a06ee3..9328472eb8f1 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/canonical.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/canonical.svg @@ -5,7 +5,7 @@ @@ -32,7 +32,31 @@ z +L518.4 43.2" style="fill:none;stroke:#0000ff;stroke-linecap:square;"/> + + + + + + + + + + + + @@ -40,20 +64,20 @@ L518.4 43.2" style="fill:none;stroke:#0000ff;"/> +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -86,7 +110,7 @@ L10.6875 0 z " id="BitstreamVeraSans-Roman-2e"/> - + @@ -96,12 +120,12 @@ z - + - + @@ -133,7 +157,7 @@ Q14.8906 38.1406 10.7969 36.2812 z " id="BitstreamVeraSans-Roman-35"/> - + @@ -143,12 +167,12 @@ z - + - + @@ -169,7 +193,7 @@ L12.4062 0 z " id="BitstreamVeraSans-Roman-31"/> - + @@ -179,17 +203,17 @@ z - + - + - + @@ -199,12 +223,12 @@ z - + - + @@ -234,7 +258,7 @@ Q49.8594 40.875 45.4062 35.4062 Q44.1875 33.9844 37.6406 27.2188 Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + @@ -248,25 +272,25 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + - + @@ -276,17 +300,17 @@ L-4 0" id="m0d5b0a6425" style="stroke:#000000;stroke-linecap:butt;stroke-width:0 - + - + - + @@ -296,17 +320,17 @@ L-4 0" id="m0d5b0a6425" style="stroke:#000000;stroke-linecap:butt;stroke-width:0 - + - + - + @@ -316,17 +340,17 @@ L-4 0" id="m0d5b0a6425" style="stroke:#000000;stroke-linecap:butt;stroke-width:0 - + - + - + @@ -336,12 +360,12 @@ L-4 0" id="m0d5b0a6425" style="stroke:#000000;stroke-linecap:butt;stroke-width:0 - + - + @@ -379,7 +403,7 @@ Q53.9062 64.0156 53.9062 55.3281 Q53.9062 49.2656 50.4375 45.0938 Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + @@ -387,26 +411,6 @@ Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - - - - - - - - - - - - diff --git a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.pdf b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.pdf index 7ab7ea983c96..eb54a69b8190 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.pdf and b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png index 94b676abcd53..f6c4d4e3f950 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png and b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.svg b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.svg index d13fd158f8aa..b9408dddc7af 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/const_xy.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/const_xy.svg @@ -5,7 +5,7 @@ @@ -39,7 +39,31 @@ L320 94.0235 L369.6 94.0235 L419.2 94.0235 L468.8 94.0235 -L518.4 94.0235" style="fill:none;stroke:#0000ff;"/> +L518.4 94.0235" style="fill:none;stroke:#0000ff;stroke-linecap:square;"/> + + + + + + + + + + + + @@ -47,20 +71,20 @@ L518.4 94.0235" style="fill:none;stroke:#0000ff;"/> +L0 -4" id="mb1445623b5" style="stroke:#000000;stroke-width:0.5;"/> - + +L0 4" id="m3a68111ca7" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -86,7 +110,7 @@ Q6.59375 17.9688 6.59375 36.375 Q6.59375 54.8281 13.0625 64.5156 Q19.5312 74.2188 31.7812 74.2188" id="BitstreamVeraSans-Roman-30"/> - + @@ -94,12 +118,12 @@ Q19.5312 74.2188 31.7812 74.2188" id="BitstreamVeraSans-Roman-30"/> - + - + @@ -120,7 +144,7 @@ L12.4062 0 z " id="BitstreamVeraSans-Roman-31"/> - + @@ -128,12 +152,12 @@ z - + - + @@ -163,7 +187,7 @@ Q49.8594 40.875 45.4062 35.4062 Q44.1875 33.9844 37.6406 27.2188 Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + @@ -171,12 +195,12 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/> - + - + @@ -214,7 +238,7 @@ Q53.9062 64.0156 53.9062 55.3281 Q53.9062 49.2656 50.4375 45.0938 Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + @@ -222,12 +246,12 @@ Q46.9688 40.9219 40.5781 39.3125" id="BitstreamVeraSans-Roman-33"/> - + - + @@ -253,7 +277,7 @@ L4.89062 26.7031 z " id="BitstreamVeraSans-Roman-34"/> - + @@ -261,12 +285,12 @@ z - + - + @@ -298,7 +322,7 @@ Q14.8906 38.1406 10.7969 36.2812 z " id="BitstreamVeraSans-Roman-35"/> - + @@ -306,12 +330,12 @@ z - + - + @@ -346,7 +370,7 @@ Q23.3906 74.2188 37.2031 74.2188 Q40.9219 74.2188 44.7031 73.4844 Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + @@ -354,12 +378,12 @@ Q48.4844 72.75 52.5938 71.2969" id="BitstreamVeraSans-Roman-36"/> - + - + @@ -376,7 +400,7 @@ L8.20312 64.5938 z " id="BitstreamVeraSans-Roman-37"/> - + @@ -384,12 +408,12 @@ z - + - + @@ -432,7 +456,7 @@ Q38.1406 66.4062 31.7812 66.4062 Q25.3906 66.4062 21.8438 63.2344 Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + @@ -440,12 +464,12 @@ Q18.3125 60.0625 18.3125 54.3906" id="BitstreamVeraSans-Roman-38"/> - + - + @@ -480,7 +504,7 @@ Q16.2188 57.2812 16.2188 49.4219 Q16.2188 41.5 20.0938 36.9531 Q23.9688 32.4219 30.6094 32.4219" id="BitstreamVeraSans-Roman-39"/> - + @@ -492,20 +516,20 @@ Q23.9688 32.4219 30.6094 32.4219" id="BitstreamVeraSans-Roman-39"/> +L4 0" id="m71e820122c" style="stroke:#000000;stroke-width:0.5;"/> - + +L-4 0" id="m81ec2b1422" style="stroke:#000000;stroke-width:0.5;"/> - + @@ -519,7 +543,7 @@ L10.6875 0 z " id="BitstreamVeraSans-Roman-2e"/> - + @@ -530,17 +554,17 @@ z - + - + - + @@ -551,17 +575,17 @@ z - + - + - + @@ -572,17 +596,17 @@ z - + - + - + @@ -593,17 +617,17 @@ z - + - + - + @@ -614,17 +638,17 @@ z - + - + - + @@ -635,17 +659,17 @@ z - + - + - + @@ -654,26 +678,6 @@ z - - - - - - - - - - - - @@ -696,23 +700,47 @@ L295.2 210.353 L295.2 199.059 L295.2 187.765 L295.2 176.471 -L295.2 165.176" style="fill:none;stroke:#0000ff;"/> +L295.2 165.176" style="fill:none;stroke:#0000ff;stroke-linecap:square;"/> + + + + + + + + + + + + - + - + - + @@ -723,17 +751,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -744,17 +772,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -765,17 +793,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -786,17 +814,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -807,17 +835,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -828,17 +856,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -851,17 +879,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -869,17 +897,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -887,17 +915,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -905,17 +933,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -923,17 +951,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -941,17 +969,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -959,17 +987,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -977,17 +1005,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -995,17 +1023,17 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + @@ -1013,42 +1041,22 @@ L295.2 165.176" style="fill:none;stroke:#0000ff;"/> - + - + - + - - - - - - - - - - - - @@ -1073,36 +1081,60 @@ C-2.6839 -1.55874 -3 -0.795609 -3 0 C-3 0.795609 -2.6839 1.55874 -2.12132 2.12132 C-1.55874 2.6839 -0.795609 3 0 3 z -" id="m0f54036a79" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/> +" id="m7017384dbe" style="stroke:#000000;stroke-width:0.5;"/> - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + - + - + @@ -1113,17 +1145,17 @@ z - + - + - + @@ -1134,17 +1166,17 @@ z - + - + - + @@ -1155,17 +1187,17 @@ z - + - + - + @@ -1176,17 +1208,17 @@ z - + - + - + @@ -1197,17 +1229,17 @@ z - + - + - +