Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mdboom merged 5 commits intomatplotlib:masterfrommdboom:text-baseline-api
Apr 19, 2013
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
Increase image comparison tolerance
  • Loading branch information
@mdboom
mdboom committedApr 19, 2013
commitcd37bbaf07089a08b8727a5950ff62073e30c949
8 changes: 4 additions & 4 deletionslib/matplotlib/testing/decorators.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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

[8]ページ先頭

©2009-2025 Movatter.jp