Course Content
Visualization in Python with matplotlib
Visualization in Python with matplotlib
Set Ticks and Limits
Task![test](https://cdn.codefinity.com/master/14860d46e0e6ee22ce3b8395724d8dc0016f4a01/_next/static/media/swipe.5f9d7ff8.svg?w=48&q=75)
Swipe to show code editor
Using the .set()
function, set the following parameters:
- limit values on the x-axis to
(0, 30000)
; - limit values on the y-axis to
(40, 80)
; - set ticks on the x-axis so that they will have a step of
5000
(for instance,0, 5000, 10000, 15000, ...
). You can use thenp.arange(start, end, step)
function there. It will generate numbers fromstart
toend
with the step ofstep
.
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
Set Ticks and Limits
Task![test](https://cdn.codefinity.com/master/14860d46e0e6ee22ce3b8395724d8dc0016f4a01/_next/static/media/swipe.5f9d7ff8.svg?w=48&q=75)
Swipe to show code editor
Using the .set()
function, set the following parameters:
- limit values on the x-axis to
(0, 30000)
; - limit values on the y-axis to
(40, 80)
; - set ticks on the x-axis so that they will have a step of
5000
(for instance,0, 5000, 10000, 15000, ...
). You can use thenp.arange(start, end, step)
function there. It will generate numbers fromstart
toend
with the step ofstep
.
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4