I’m sorry. I forgot that I could play with the margin=attr() to manage the large margins generated by the plot. I will do so. This trick did not come to my mind because the extra margins do not appear in the case of the same range (first image above).
It is OK as it stands now. I marked the previous exchange as the solution. Thank you very much for your kind help.