Matplotlib: how to draw an axis in the middle of the figure?

The coordinates of the endpoints of that line are (0.5, 0) and (0.5, 1) in axis coordinates: from matplotlib. Lines import Line2D import pyplot f=pyplot.figure() a=f. Add_subplot(111) a.

Plot(3,1,4,1,5,9,2, color='k') # so you have some content a. Add_line(Line2D(0.5, 0.5, 0, 1, transform=a. TransAxes, linewidth=2, color='b')) pyplot.show().

Thank you Jouni, it's exactly what I was looking for! – pierotiste Mar 30 at 12:54.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions