<div dir="ltr"><div><div><div><div>Stevo,<br><br></div>Don't worry, we all started from somewhere, but it is important to understand the distinction. This has nothing to do with python, by the way. `plt.gca()` returns the "current"/"active" axes object. Meanwhile, your function does its plotting on an axes object called "ax". These may or may not be the same thing -- you just simply don't know. So, your function should continue to perform its plotting commands on the "ax" variable, not on the result from `plt.gca()`.<br><br></div>Note though, it is perfectly valid what you have in the beginning of the function what called `plt.gca()` if "ax" was not supplied by the user. But you should continue to use "ax" throughout the function so that all actions happen to the same variable.<br><br></div>I hope that makes it clearer.<br><br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 5:00 PM, Stevo <span dir="ltr"><<a href="mailto:stm6386@gmail.com" target="_blank">stm6386@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Ben,<br>
<br>
Please for give me for not being experienced enough in python to understand<br>
the significance of the difference of that but I have changed it .. thank<br>
you.<br>
<br>
Loving Python<br>
Stevo<br>
<br>
<br>
<br>
</span>--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Totaly-new-to-matplotlib-tp46682p46716.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/Totaly-new-to-matplotlib-tp46682p46716.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</div></div></blockquote></div><br></div>