0

I've some issue working in a graph, I got this code:

    import matplotlib.pyplot as plt
    from matplotlib import rcParams

    rcParams['figure.figsize'] = 8, 12
    fig, ax = plt.subplots()

    yTicks = [0.5, 0.7, 1.0, 2.0, 3.0, 5.0, 7.0, 10.0, 20, 30, 50, 70, 100, 200, 300]
    xTicks = [0, 600, 1200, 1800, 2400, 3000, 3600]

    ax.set_xticks(xTicks)
    ax.set_yticks(yTicks)

    plt.show() 

And gives me this graph
this graph

Is there anyway that the ylabel could be changed for one like this

on this photo?

Mr. T
  • 11,960
  • 10
  • 32
  • 54

1 Answers1

0

I've already solved it! by changing first the yscale to log and then setting the ticks with set_yticks and the changing the labels with set_yticklabels an gave me this. Thanks to everyone on the comments <3

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158