Skip to content

Commit

Permalink
hack to remove ticks in loglog plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris van Breugel committed Jun 5, 2018
1 parent 1e51096 commit 26e62e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions figurefirst/mpl_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def adjust_spines(ax,spines, spine_locations={}, smart_bounds=True, xticks=None,
if 'top' in spines or 'bottom' in spines:
ax.set_xticks(xticks)

if default_ticks and len(yticks) == 0:
if default_ticks and 'left' not in spines and 'right' not in spines:
ax.set_yticks([])
if default_ticks and len(xticks) == 0:
if default_ticks and 'top' not in spines and 'bottom' not in spines:
ax.set_xticks([])

for line in ax.get_xticklines() + ax.get_yticklines():
Expand Down

0 comments on commit 26e62e1

Please sign in to comment.