Skip to content

Conversation

c3liujia
Copy link

@c3liujia c3liujia commented Apr 12, 2017

Ref #7617

import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.axislines import SubplotZero

fig = plt.figure()
ax = SubplotZero(fig, 111)
_ = fig.add_subplot(ax)


for direction in ["xzero", "yzero"]:
    ax.axis[direction].set_visible(True)
    ax.axis[direction].set_axisline_style("->")
    # Set outward ticks
    ax.axis[direction].major_ticks.set_tick_out(True)
    ax.axis[direction].minor_ticks.set_tick_out(True)

ax.axis["yzero"].set_axis_direction("left")

plt.plot([0,1], [0,1], c="blue", lw=2)
plt.xlabel('x')
plt.ylabel('y')

fix_7617

1

@QuLogic QuLogic mentioned this pull request Apr 16, 2017
@QuLogic
Copy link
Member

QuLogic commented Apr 16, 2017

See bookkeeping comments on #8471 which apply here as well.

@c3liujia c3liujia closed this Jul 29, 2019
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.

2 participants