Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix missing ticks on inverted log axis #2036

Merged
merged 2 commits into from

3 participants

@mdboom
Owner

As reported in the mailing list thread: "missing ticks on inverted log axes"

This should fix a bug introduced by 255f213 that made some ticks disappear on inverted axes.

@pelson
Collaborator

Looks good. :+1:

On an mildly related note, would you be willing to re-create all of the svg and pdf in the repository in a separate PR? I think things have changed which, because they didn't make a test fail, are still out of date (file URL etc.).

@mdboom mdboom merged commit bcf4df6 into matplotlib:master

1 check passed

Details default The Travis CI build passed
@dhyams

Thanks for fixing this mdboom. I gave myself a good slap when I saw the problem.

@mdboom
Owner

No worries! Glad to have the contribution!

@mdboom mdboom deleted the mdboom:inverted-log-axis branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
14 lib/matplotlib/axis.py
@@ -991,10 +991,13 @@ def _update_ticks(self, renderer):
interval_expanded = interval[1], interval[0]
if hasattr(self, '_get_pixel_distance_along_axis'):
- # normally, one does not want to catch all exceptions that could possibly happen, but it
- # is not clear exactly what exceptions might arise from a user's projection (their rendition
- # of the Axis object). So, we catch all, with the idea that one would rather potentially
- # lose a tick from one side of the axis or another, rather than see a stack trace.
+ # normally, one does not want to catch all exceptions that
+ # could possibly happen, but it is not clear exactly what
+ # exceptions might arise from a user's projection (their
+ # rendition of the Axis object). So, we catch all, with
+ # the idea that one would rather potentially lose a tick
+ # from one side of the axis or another, rather than see a
+ # stack trace.
try:
ds1 = self._get_pixel_distance_along_axis(interval_expanded[0], -0.5)
except:
@@ -1005,7 +1008,8 @@ def _update_ticks(self, renderer):
except:
warnings.warn("Unable to find pixel distance along axis for interval padding; assuming no interval padding needed.")
ds2 = 0.0
- interval_expanded = (interval[0] - ds1, interval[1] + ds2)
+ interval_expanded = (interval_expanded[0] - ds1,
+ interval_expanded[1] + ds2)
ticks_to_draw = []
for tick, loc, label in tick_tups:
View
BIN  lib/matplotlib/tests/baseline_images/test_axes/log_scales.pdf
Binary file not shown
View
BIN  lib/matplotlib/tests/baseline_images/test_axes/log_scales.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
278 lib/matplotlib/tests/baseline_images/test_axes/log_scales.svg
@@ -5,7 +5,7 @@
<svg height="432pt" version="1.1" viewBox="0 0 576 432" width="576pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
-*{stroke-linecap:square;stroke-linejoin:round;}
+*{stroke-linecap:butt;stroke-linejoin:round;}
</style>
</defs>
<g id="figure_1">
@@ -30,55 +30,55 @@ z
</g>
<g id="line2d_1">
<path clip-path="url(#p7ff5b81e1d)" d="
-M72 243.787
-L142.412 179.764
-L183.6 154.901
-L212.824 140.273
-L235.491 130.192
-L254.012 122.626
-L269.671 116.633
-L283.235 111.71
-L295.2 107.553
-L305.903 103.973
-L315.585 100.837
-L324.424 98.0562
-L332.554 95.5626
-L340.083 93.3067
-L347.091 91.2502
-L353.647 89.3632
-L359.805 87.6216
-L365.612 86.0064
-L371.104 84.5016
-L376.315 83.0941
-L381.271 81.7731
-L385.996 80.5292
-L390.512 79.3547
-L394.835 78.2426
-L398.982 77.1872
-L402.966 76.1833
-L406.8 75.2266
-L410.494 74.3131
-L414.059 73.4393
-L417.503 72.6022
-L420.834 71.799
-L424.059 71.0273
-L427.185 70.2849
-L430.217 69.5697
-L433.162 68.8801
-L436.024 68.2143
-L438.807 67.571
-L441.516 66.9486
-L444.154 66.3461
-L446.726 65.7622
-L449.235 65.1959
-L451.683 64.6463
-L454.073 64.1125
-L456.408 63.5937
-L458.691 63.089
-L460.924 62.5978
-L463.108 62.1195
-L465.247 61.6534
-L467.342 61.199" style="fill:none;stroke:#0000ff;"/>
+M72 188.213
+L142.412 252.236
+L183.6 277.099
+L212.824 291.727
+L235.491 301.808
+L254.012 309.374
+L269.671 315.367
+L283.235 320.29
+L295.2 324.447
+L305.903 328.027
+L315.585 331.163
+L324.424 333.944
+L332.554 336.437
+L340.083 338.693
+L347.091 340.75
+L353.647 342.637
+L359.805 344.378
+L365.612 345.994
+L371.104 347.498
+L376.315 348.906
+L381.271 350.227
+L385.996 351.471
+L390.512 352.645
+L394.835 353.757
+L398.982 354.813
+L402.966 355.817
+L406.8 356.773
+L410.494 357.687
+L414.059 358.561
+L417.503 359.398
+L420.834 360.201
+L424.059 360.973
+L427.185 361.715
+L430.217 362.43
+L433.162 363.12
+L436.024 363.786
+L438.807 364.429
+L441.516 365.051
+L444.154 365.654
+L446.726 366.238
+L449.235 366.804
+L451.683 367.354
+L454.073 367.887
+L456.408 368.406
+L458.691 368.911
+L460.924 369.402
+L463.108 369.88
+L465.247 370.347
+L467.342 370.801" style="fill:none;stroke:#0000ff;stroke-linecap:square;"/>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
@@ -86,20 +86,20 @@ L467.342 61.199" style="fill:none;stroke:#0000ff;"/>
<defs>
<path d="
M0 0
-L0 -4" id="mcb557df647" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L0 -4" id="m93b0483c22" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#mcb557df647" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#m93b0483c22" y="388.8"/>
</g>
</g>
<g id="line2d_3">
<defs>
<path d="
M0 0
-L0 4" id="mdad270ee8e" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L0 4" id="m741efc42ff" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#mdad270ee8e" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#m741efc42ff" y="43.2"/>
</g>
</g>
<g id="text_1">
@@ -153,21 +153,21 @@ 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"/>
</defs>
- <g transform="translate(64.2 405.64)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.546875)" xlink:href="#BitstreamVeraSans-Roman-39"/>
- <use transform="translate(63.623046875 55.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-30"/>
+ <g transform="translate(64.2 401.918125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.546875)" xlink:href="#BitstreamVeraSans-Roman-39"/>
+ <use transform="translate(63.623046875 53.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-30"/>
</g>
</g>
</g>
<g id="xtick_2">
<g id="line2d_4">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="295.2" xlink:href="#mcb557df647" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="295.2" xlink:href="#m93b0483c22" y="388.8"/>
</g>
</g>
<g id="line2d_5">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="295.2" xlink:href="#mdad270ee8e" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="295.2" xlink:href="#m741efc42ff" y="43.2"/>
</g>
</g>
<g id="text_2">
@@ -188,21 +188,21 @@ L12.4062 0
z
" id="BitstreamVeraSans-Roman-31"/>
</defs>
- <g transform="translate(287.4 405.52)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.465625)" xlink:href="#BitstreamVeraSans-Roman-39"/>
- <use transform="translate(63.623046875 54.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
+ <g transform="translate(287.4 401.918125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.465625)" xlink:href="#BitstreamVeraSans-Roman-39"/>
+ <use transform="translate(63.623046875 52.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
</g>
</g>
</g>
<g id="xtick_3">
<g id="line2d_6">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#mcb557df647" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#m93b0483c22" y="388.8"/>
</g>
</g>
<g id="line2d_7">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#mdad270ee8e" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#m741efc42ff" y="43.2"/>
</g>
</g>
<g id="text_3">
@@ -232,9 +232,9 @@ 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"/>
</defs>
- <g transform="translate(510.6 405.64)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.546875)" xlink:href="#BitstreamVeraSans-Roman-39"/>
- <use transform="translate(63.623046875 55.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-32"/>
+ <g transform="translate(510.6 401.918125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.546875)" xlink:href="#BitstreamVeraSans-Roman-39"/>
+ <use transform="translate(63.623046875 53.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-32"/>
</g>
</g>
</g>
@@ -243,176 +243,176 @@ Q31.1094 20.4531 19.1875 8.29688" id="BitstreamVeraSans-Roman-32"/>
<defs>
<path d="
M0 0
-L0 -2" id="m6f8f3139b3" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L0 -2" id="m177f7580d0" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="142.411760499" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="142.411760499" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_9">
<defs>
<path d="
M0 0
-L0 2" id="md27378e979" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L0 2" id="m5284c7e2a0" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="142.411760499" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="142.411760499" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_5">
<g id="line2d_10">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="183.6" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="183.6" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_11">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="183.6" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="183.6" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_6">
<g id="line2d_12">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="212.823520997" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="212.823520997" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_13">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="212.823520997" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="212.823520997" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_7">
<g id="line2d_14">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="235.491044912" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="235.491044912" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_15">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="235.491044912" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="235.491044912" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_8">
<g id="line2d_16">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="254.011760499" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="254.011760499" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_17">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="254.011760499" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="254.011760499" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_9">
<g id="line2d_18">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="269.670802406" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="269.670802406" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_19">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="269.670802406" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="269.670802406" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_10">
<g id="line2d_20">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="283.235281496" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="283.235281496" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_21">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="283.235281496" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="283.235281496" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_11">
<g id="line2d_22">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="365.611760499" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="365.611760499" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_23">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="365.611760499" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="365.611760499" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_12">
<g id="line2d_24">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="406.8" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="406.8" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_25">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="406.8" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="406.8" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_13">
<g id="line2d_26">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="436.023520997" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="436.023520997" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_27">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="436.023520997" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="436.023520997" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_14">
<g id="line2d_28">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="458.691044912" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="458.691044912" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_29">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="458.691044912" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="458.691044912" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_15">
<g id="line2d_30">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="477.211760499" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="477.211760499" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_31">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="477.211760499" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="477.211760499" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_16">
<g id="line2d_32">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="492.870802406" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="492.870802406" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_33">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="492.870802406" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="492.870802406" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
<g id="xtick_17">
<g id="line2d_34">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="506.435281496" xlink:href="#m6f8f3139b3" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="506.435281496" xlink:href="#m177f7580d0" y="388.8"/>
</g>
</g>
<g id="line2d_35">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="506.435281496" xlink:href="#md27378e979" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="506.435281496" xlink:href="#m5284c7e2a0" y="43.2"/>
</g>
</g>
</g>
@@ -423,20 +423,20 @@ L0 2" id="md27378e979" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.
<defs>
<path d="
M0 0
-L4 0" id="mc8fcea1516" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L4 0" id="m728421d6d4" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#mc8fcea1516" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#m728421d6d4" y="43.2"/>
</g>
</g>
<g id="line2d_37">
<defs>
<path d="
M0 0
-L-4 0" id="m0d5b0a6425" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L-4 0" id="mcb0005524f" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m0d5b0a6425" y="388.8"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#mcb0005524f" y="43.2"/>
</g>
</g>
<g id="text_4">
@@ -482,54 +482,54 @@ Q14.8906 38.1406 10.7969 36.2812
z
" id="BitstreamVeraSans-Roman-35"/>
</defs>
- <g transform="translate(38.24 395.16)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(63.623046875 2.465625)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
- <use transform="translate(93.40234375 2.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(157.025390625 54.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-2d"/>
- <use transform="translate(182.284179688 54.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
+ <g transform="translate(38.24 46.51125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(63.623046875 0.465625)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
+ <use transform="translate(93.40234375 0.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(157.025390625 52.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-2d"/>
+ <use transform="translate(182.284179688 52.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
</g>
</g>
</g>
<g id="ytick_2">
<g id="line2d_38">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#mc8fcea1516" y="216.0"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#m728421d6d4" y="216.0"/>
</g>
</g>
<g id="line2d_39">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m0d5b0a6425" y="216.0"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#mcb0005524f" y="216.0"/>
</g>
</g>
<g id="text_5">
<!-- $\mathdefault{5.5^{0}}$ -->
- <g transform="translate(41.24 222.42)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.546875)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(63.623046875 2.546875)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
- <use transform="translate(93.40234375 2.546875)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(157.025390625 55.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-30"/>
+ <g transform="translate(41.24 219.31125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.546875)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(63.623046875 0.546875)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
+ <use transform="translate(93.40234375 0.546875)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(157.025390625 53.046875)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-30"/>
</g>
</g>
</g>
<g id="ytick_3">
<g id="line2d_40">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#mc8fcea1516" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#m728421d6d4" y="388.8"/>
</g>
</g>
<g id="line2d_41">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m0d5b0a6425" y="43.2"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#mcb0005524f" y="388.8"/>
</g>
</g>
<g id="text_6">
<!-- $\mathdefault{5.5^{1}}$ -->
- <g transform="translate(41.24 49.56)scale(0.12 -0.12)">
- <use transform="translate(0.0 2.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(63.623046875 2.465625)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
- <use transform="translate(93.40234375 2.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
- <use transform="translate(157.025390625 54.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
+ <g transform="translate(41.24 392.11125)scale(0.12 -0.12)">
+ <use transform="translate(0.0 0.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(63.623046875 0.465625)" xlink:href="#BitstreamVeraSans-Roman-2e"/>
+ <use transform="translate(93.40234375 0.465625)" xlink:href="#BitstreamVeraSans-Roman-35"/>
+ <use transform="translate(157.025390625 52.965625)scale(0.7)" xlink:href="#BitstreamVeraSans-Roman-31"/>
</g>
</g>
</g>
@@ -538,104 +538,104 @@ z
<defs>
<path d="
M0 0
-L2 0" id="m57a2c8792a" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L2 0" id="mf0c55a9a47" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="318.539864003"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="113.460135997"/>
</g>
</g>
<g id="line2d_43">
<defs>
<path d="
M0 0
-L-2 0" id="m46a939d668" style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;"/>
+L-2 0" id="ma4f294b3af" style="stroke:#000000;stroke-width:0.5;"/>
</defs>
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="318.539864003"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="113.460135997"/>
</g>
</g>
</g>
<g id="ytick_5">
<g id="line2d_44">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="277.44031915"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="154.55968085"/>
</g>
</g>
<g id="line2d_45">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="277.44031915"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="154.55968085"/>
</g>
</g>
</g>
<g id="ytick_6">
<g id="line2d_46">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="248.279728007"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="183.720271993"/>
</g>
</g>
<g id="line2d_47">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="248.279728007"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="183.720271993"/>
</g>
</g>
</g>
<g id="ytick_7">
<g id="line2d_48">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="225.661016279"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="206.338983721"/>
</g>
</g>
<g id="line2d_49">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="225.661016279"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="206.338983721"/>
</g>
</g>
</g>
<g id="ytick_8">
<g id="line2d_50">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="145.739864003"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="286.260135997"/>
</g>
</g>
<g id="line2d_51">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="145.739864003"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="286.260135997"/>
</g>
</g>
</g>
<g id="ytick_9">
<g id="line2d_52">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="104.64031915"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="327.35968085"/>
</g>
</g>
<g id="line2d_53">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="104.64031915"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="327.35968085"/>
</g>
</g>
</g>
<g id="ytick_10">
<g id="line2d_54">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="75.4797280066"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="356.520271993"/>
</g>
</g>
<g id="line2d_55">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="75.4797280066"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="356.520271993"/>
</g>
</g>
</g>
<g id="ytick_11">
<g id="line2d_56">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="72.0" xlink:href="#m57a2c8792a" y="52.8610162787"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="72.0" xlink:href="#mf0c55a9a47" y="379.138983721"/>
</g>
</g>
<g id="line2d_57">
<g>
- <use style="stroke:#000000;stroke-linecap:butt;stroke-width:0.5;" x="518.4" xlink:href="#m46a939d668" y="52.8610162787"/>
+ <use style="stroke:#000000;stroke-width:0.5;" x="518.4" xlink:href="#ma4f294b3af" y="379.138983721"/>
</g>
</g>
</g>
View
5 lib/matplotlib/tests/test_axes.py
@@ -1,4 +1,4 @@
-from nose.tools import assert_equal
+from nose.tools import assert_equal
import numpy as np
from numpy import ma
@@ -904,6 +904,7 @@ def test_log_scales():
ax = plt.gca()
plt.plot(np.log(np.linspace(0.1, 100)))
ax.set_yscale('log', basey=5.5)
+ ax.invert_yaxis()
ax.set_xscale('log', basex=9.0)
@@ -971,7 +972,7 @@ def test_boxplot():
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
def test_boxplot_no_weird_whisker():
- x = np.array([3, 9000, 150, 88, 350, 200000, 1400, 960],
+ x = np.array([3, 9000, 150, 88, 350, 200000, 1400, 960],
dtype=np.float64)
ax1 = plt.axes()
ax1.boxplot(x)
Something went wrong with that request. Please try again.