Home > Mobile >  Matplotlib axhline: linewidth changes X position of line
Matplotlib axhline: linewidth changes X position of line

Time:02-08

I've observed some weird effects of using linewidth param in axhline from matplotlib.pyplot. I want to make line bolder, but this param makes line wider too.

For example, linewidth = 1: enter image description here

and linewidth = 25: enter image description here

X position of these blocks makes really big difference for me. I can't accept errors as big as that. Do you have any ideas how to make this line bolder without changing their X position?

CodePudding user response:

If the lines you are drawing are limited between a minimum and a maximum value, then you should use enter image description here

  •  Tags:  
  • Related