diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 7f10f0407bed..c6aa03cb3f87 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -252,23 +252,19 @@ def draw(self, renderer): self.stale = False return - midPoint = mtransforms.interval_contains(self.get_view_interval(), - self.get_loc()) - - if midPoint: - renderer.open_group(self.__name__) - if self.gridOn: - self.gridline.draw(renderer) - if self.tick1On: - self.tick1line.draw(renderer) - if self.tick2On: - self.tick2line.draw(renderer) - - if self.label1On: - self.label1.draw(renderer) - if self.label2On: - self.label2.draw(renderer) - renderer.close_group(self.__name__) + renderer.open_group(self.__name__) + if self.gridOn: + self.gridline.draw(renderer) + if self.tick1On: + self.tick1line.draw(renderer) + if self.tick2On: + self.tick2line.draw(renderer) + + if self.label1On: + self.label1.draw(renderer) + if self.label2On: + self.label2.draw(renderer) + renderer.close_group(self.__name__) self.stale = False diff --git a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg index d24dd5298d63..746e66f65dfb 100644 --- a/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg +++ b/lib/matplotlib/tests/baseline_images/test_axes/markevery_linear_scales_zoomed.svg @@ -27,7 +27,7 @@ z " style="fill:#ffffff;"/> - +" id="m895b4b75ef" style="stroke:#000000;stroke-width:0.5;"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -191,104 +190,104 @@ L 203.294118 43.2 +" id="m141863c472" style="stroke:#000000;stroke-width:0.5;"/> - + +" id="m8a82b85d23" style="stroke:#000000;stroke-width:0.5;"/> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -299,84 +298,95 @@ L 0 4 +" id="m450b76b065" style="stroke:#000000;stroke-width:0.5;"/> - + +" id="mb668103495" style="stroke:#000000;stroke-width:0.5;"/> - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - @@ -388,8 +398,8 @@ L 229.552941 43.2 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -478,176 +487,187 @@ L 360.847059 43.2 - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - + - + - + - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -659,8 +679,8 @@ L 387.105882 43.2 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -759,176 +778,187 @@ L 518.4 43.2 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -940,8 +970,8 @@ L 72 133.356522 z " style="fill:#ffffff;"/> - - + - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -1204,8 +1243,8 @@ L 229.552941 133.356522 z " style="fill:#ffffff;"/> - - + - - - - + + + @@ -1289,176 +1327,187 @@ L 360.847059 133.356522 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -1470,8 +1519,8 @@ L 387.105882 133.356522 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1585,176 +1634,187 @@ L 518.4 133.356522 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + - + + + + + + - @@ -1766,8 +1826,8 @@ L 72 223.513043 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1910,176 +1969,187 @@ L 203.294118 223.513043 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -2091,8 +2161,8 @@ L 229.552941 223.513043 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2198,176 +2267,187 @@ L 360.847059 223.513043 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - @@ -2379,8 +2459,8 @@ L 387.105882 223.513043 z " style="fill:#ffffff;"/> - - + - - - - - - - - + + + + + + + @@ -2467,176 +2546,187 @@ L 518.4 223.513043 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -2648,8 +2738,8 @@ L 72 313.669565 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2786,176 +2875,187 @@ L 203.294118 313.669565 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - @@ -2967,8 +3067,8 @@ L 229.552941 313.669565 z " style="fill:#ffffff;"/> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3099,212 +3198,223 @@ L 360.847059 313.669565 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/lib/matplotlib/tests/baseline_images/test_simplification/clipping.svg b/lib/matplotlib/tests/baseline_images/test_simplification/clipping.svg index 0935cf4d8e5c..219dd03aca80 100644 --- a/lib/matplotlib/tests/baseline_images/test_simplification/clipping.svg +++ b/lib/matplotlib/tests/baseline_images/test_simplification/clipping.svg @@ -27,7 +27,7 @@ z " style="fill:#ffffff;"/> - +" id="m34d09d792a" style="stroke:#000000;stroke-width:0.5;"/> - + +" id="mabf6e5c9b2" style="stroke:#000000;stroke-width:0.5;"/> - + - + - + - + - + - + - + - + - + @@ -138,114 +138,125 @@ L 0 4 +" id="m2f7a64ff65" style="stroke:#000000;stroke-width:0.5;"/> - + +" id="m124c4297c9" style="stroke:#000000;stroke-width:0.5;"/> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - - - + + diff --git a/lib/matplotlib/tests/baseline_images/test_simplification/clipping_diamond.svg b/lib/matplotlib/tests/baseline_images/test_simplification/clipping_diamond.svg index e718e7c24252..4fb2b62505b7 100644 --- a/lib/matplotlib/tests/baseline_images/test_simplification/clipping_diamond.svg +++ b/lib/matplotlib/tests/baseline_images/test_simplification/clipping_diamond.svg @@ -27,8 +27,7 @@ z " style="fill:#ffffff;"/> - - - + +" id="ma3e33b294b" style="stroke:#000000;stroke-width:0.5;"/> - + +" id="mb87fb283a1" style="stroke:#000000;stroke-width:0.5;"/> - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + +" id="mbfdae77d13" style="stroke:#000000;stroke-width:0.5;"/> - + - + +" id="m689f62d292" style="stroke:#000000;stroke-width:0.5;"/> - + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + - + - - - + +