Skip to content

Cairo + plot_date = misaligned x-axis labels #1810

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 5 commits into from
Apr 19, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Increase image comparison tolerance
  • Loading branch information
mdboom committed Apr 19, 2013
commit cd37bbaf07089a08b8727a5950ff62073e30c949
8 changes: 4 additions & 4 deletions lib/matplotlib/testing/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def do_test():

yield (do_test,)

def image_comparison(baseline_images=None, extensions=None, tol=10,
def image_comparison(baseline_images=None, extensions=None, tol=13,
freetype_version=None, remove_text=False,
savefig_kwarg=None):
"""
Expand Down Expand Up @@ -260,11 +260,11 @@ def _image_directories(func):
subdir = os.path.splitext(os.path.split(script_name)[1])[0]
else:
mods = module_name.split('.')
mods.pop(0) # <- will be the name of the package being tested (in
mods.pop(0) # <- will be the name of the package being tested (in
# most cases "matplotlib")
assert mods.pop(0) == 'tests'
subdir = os.path.join(*mods)

import imp
def find_dotted_module(module_name, path=None):
"""A version of imp which can handle dots in the module name"""
Expand All @@ -273,7 +273,7 @@ def find_dotted_module(module_name, path=None):
res = _, path, _ = imp.find_module(sub_mod, path)
path = [path]
return res

mod_file = find_dotted_module(func.__module__)[1]
basedir = os.path.dirname(mod_file)

Expand Down