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 f61858b commit 1e51096
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions figurefirst/mpl_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ 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:
ax.set_yticks([])
if default_ticks and len(xticks) == 0:
ax.set_xticks([])

for line in ax.get_xticklines() + ax.get_yticklines():
#line.set_markersize(6)
line.set_markeredgewidth(linewidth)
Expand Down

0 comments on commit 1e51096

Please sign in to comment.