Skip to content

Commit

Permalink
Change default precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed May 26, 2018
1 parent 54b3a47 commit 81f631d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 82 deletions.
4 changes: 2 additions & 2 deletions adjustText/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def adjust_text(texts, x=None, y=None, add_objects=None, ax=None,
autoalign='xy', va='center', ha='center',
force_text=(0.1, 0.25), force_points=(0.2, 0.5),
force_objects=(0.1, 0.25),
lim=500, precision=0.1,
lim=500, precision=0.01,
only_move={'points':'xy', 'text':'xy', 'objects':'xy'},
text_from_text=True, text_from_points=True,
save_steps=False, save_prefix='', save_format='png',
Expand Down Expand Up @@ -396,7 +396,7 @@ def adjust_text(texts, x=None, y=None, add_objects=None, ax=None,
precision (float): iterate until the sum of all overlaps along both x
and y are less than this amount, as a fraction of the total widths
and heights, respectively. May need to increase for complicated
situations; default 0.001
situations; default 0.01
only_move (dict): a dict to restrict movement of texts to only certain
axis. Valid keys are 'points', 'text', and 'objects'. For each of
them valid values are 'x', 'y' and 'xy'. This way you can forbid
Expand Down

0 comments on commit 81f631d

Please sign in to comment.