Back to Blog
Gcf matlab 20176/18/2023 ![]() Functions like plot and plot3 are actually helper functions that wrap the functionality of line and allow for the convention of passing the parent first. ![]() The nice thing about this explicit parameter/value specification of the parent is that it is accepted by all graphics objects. f = figure()Īlternately, I prefer the explicit solution im = plot3(X, Y, Z, 'Parent', ax) If looks like you attempted to do this in your example, but you provided a handle to a figure rather than an axes. If you look at the documentation, you will see that you can specify the parent axes as the first parameter to the function. My preferred way for dealing with this, is to explicitly specify the parent of your plot in the call to plot3. ![]() While others have provided you exactly what you've asked for (how to make an axes or figure the current one).
0 Comments
Read More
Leave a Reply. |