no values on y-axis and x-axis when making boxplot

I want to make a simple boxplot of predictions (from 0 to 0.89), but don't see why there are no values for y-axis.

This is my commando used:


This is my result: enter image description here

1 answer

  • answered 2022-05-04 10:12 TkrA

    You can try to add something like this to your code, setting limits to your x, y axis:

    fig, ax = plt.subplots()
    ax.set_title('My plot')
    ax.set_xlim(-10, 100)
    top = 40
    bottom = -5
    ax.set_ylim(bottom, top)

    For some demos, please find the official site here

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum