0

I want to reduce the axis size of this diagram that I have plotted. As you see the (0.7 ; 1.0) part is useless on both axis and I want to remove them so the diagram is well centered and takes all the plot.

enter image description here

Here is the part of my code for the plotting :


# Annotating the plot.

plt.plot(U, V, 'o-', color='white', mec='black')
plt.annotate(patch_sd.name.title(),
             xy=UV,
             xytext=(-50, 30),
             textcoords='offset points',
             arrowprops=dict(arrowstyle='->', connectionstyle='arc3, rad=0.2'))

# Displaying the plot.

render(
    standalone=True,
    limits=(-0.1, 0.9, -0.1, 0.9),
    x_tighten=True,
    y_tighten=True)

Thank you !

1 Answer 1

1
plt.xlim(0, 0.5)
plt.ylim(0, 0.5)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.