Home > Net >  Adding two yticklabels to the same plot with different text in both
Adding two yticklabels to the same plot with different text in both

Time:05-25

I have a plot in matplotlib with a custom text displayed in the yticks positions at the left side using:

axs[0].set_yticks(list_with_tick_positions)
axs[0].set_yticklabels(list_with_text_labels_for_those_ticks)

Now, i want to add, at the right side of the plot, another set of tick labels, at the same y positions, but with different text labels.

Any suggestions on how to achieve this?

CodePudding user response:

This is an adaption of the following enter image description here

  • Related