Define the limits of my axes, but with an equal scale in both directions with matplotlib

后端 未结 2 563
清酒与你
清酒与你 2021-01-07 00:25

How do I combine those statements:

pyplot.axis([1234.0, 1773.0, 497.0, 1362.0])
pyplot.axis(\'equal\')

I just want to define the limits of

2条回答
  •  不思量自难忘°
    2021-01-07 01:05

    If you want to define a parameter, but call the parameter list out of order and/or omit some parameters, you need to specify which parameter you are trying to set.

    In this case, you want to set aspect so just assign 'equal' to that.

    pyplot.axis([1234.0, 1773.0, 497.0, 1362.0], aspect = 'equal')
    

提交回复
热议问题