8000 Polar tick improvements by QuLogic · Pull Request #9068 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Polar tick improvements #9068

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
merged 15 commits into from
Sep 26, 2017
Merged
Changes from 1 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
Prev Previous commit
Next Next commit
Enable ticks on some polar plot tests.
This enables checking that they appear correctly rotated.
  • Loading branch information
QuLogic committed Sep 25, 2017
commit 33377ce75f91469f33888902c957efd39fd0f242
7 changes: 6 additions & 1 deletion lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ def test_polar_annotations():
verticalalignment='baseline',
)

ax.tick_params(axis='x', tick1On=True, tick2On=True, direction='out')


@image_comparison(baseline_images=['polar_coords'], style='default',
remove_text=True)
Expand Down Expand Up @@ -676,6 +678,7 @@ def test_polar_theta_limits():

theta_mins = np.arange(15.0, 361.0, 90.0)
theta_maxs = np.arange(50.0, 361.0, 90.0)
DIRECTIONS = ('out', 'in', 'inout')

fig, axes = plt.subplots(len(theta_mins), len(theta_maxs),
subplot_kw={'polar': True},
Expand All @@ -686,9 +689,11 @@ def test_polar_theta_limits():
ax = axes[i, j]
if start < end:
ax.plot(theta, r)
ax.yaxis.set_tick_params(label2On=True)
ax.set_thetamin(start)
ax.set_thetamax(end)
ax.tick_params(tick1On=True, tick2On=True,
direction=DIRECTIONS[i % len(DIRECTIONS)])
ax.yaxis.set_tick_params(label2On=True)
else:
ax.set_visible(False)

Expand Down
0