Skip to content

REV: remove default formatter on log minor ticks #7000

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

Conversation

tacaswell
Copy link
Member

Reverts part of #5161

original commit merged to master as 947e6eb
the merge was backported to v2.x as fb45c4a

Reverts part of matplotlib#5161

original commit merged to master as 947e6eb
the merge was backported to v2.x as fb45c4a
@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Aug 29, 2016
@tacaswell
Copy link
Member Author

This was causing these to be in the docs:

image

image

The issues are the overstriking, the wiggly baseline, and the difficulty in telling which tick the intermediate labels apply to.

The smarter formatter is still there and can be used, but is disabled by default.

@WeatherGod
Copy link
Member

This is certainly an improvement, and I am willing to merge as-is, but it feels like we are papering over some deeper issues. Do we have issues filed detailing the wiggly baseline?

Also, I feel that there is too much blank space between the tick labels now, but at least they aren't overlapping anymore, right?

@tacaswell
Copy link
Member Author

Ticks labels are placed at a fixed pad away from the end of the tick mark and then va='top' which explains the wiggles in the baseline.

#6549 and #7001 track the opposite case where we have too many log ticks.

@WeatherGod WeatherGod merged commit e3be57e into matplotlib:v2.x Aug 30, 2016
@tacaswell tacaswell deleted the api_revert_log_minor_tick_labels branch August 30, 2016 21:11
efiring added a commit to efiring/matplotlib that referenced this pull request Nov 7, 2016
This partly restores the functionality that was added in
PR matplotlib#5161 and partly removed in matplotlib#7000.  The "partly" is because
now the labeling of minor log ticks is turned on only when
numdecs (the axis range in powers of the log base) is less
than or equal to one, rather than 3.

This also fixes a bug that was causing double labeling with a
base of 2; minor ticks were coinciding with major ticks, and
both were being labeled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants