1

I am generating planar coordinates within the range (x,y) in [0,500]x[0,500]. When using matplotlib.pyplot to visualize them, the axes only show the part that contains already generated points. How can I scale the axes so that they correspond to [0,500]x[0,500]?

This is what I have for now:

enter image description here

asked Feb 23, 2020 at 5:55

2 Answers 2

1

Use ax.set_xlim([0, 500]) and set_ylim

answered Feb 23, 2020 at 5:59
1

You can set the row and column size of the plot area by the following..

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (10,5)

But the figure.figsize accepts the parameter in inches, so if you need it to be in other units, then adjust the parameter by converting from inches to your desired unit.

Hope this helps.

answered Feb 23, 2020 at 6:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.