Is there a way to save matplotlib graphs without the border around the frame while keeping the background not transparent?
Setting the frame to 'off' as I show in the code below does not work as this removes the background making it transparent whereas I want to retain the white background, just without the borders.
a = fig.gca()
a.set_frame_on(False)
Here is a screenshot of what I'm trying to do. If the border can be removed then I can draw the x-axis line separately.
All suggestions are much appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…