0

Assuming I have a "standard" 2d plot, no 3D stuff. My x axis has a range of [0 1000], my y axis has a range of [-5 2400]. I want to set the view automatically after plotting to

x: [200 800] y: [400 1000]

(as an example). How can i achieve this?

Anonymous
  • 4,617
  • 9
  • 48
  • 61

1 Answers1

2

Use the xlim() and ylim() functions.

Oliver Charlesworth
  • 267,707
  • 33
  • 569
  • 680