<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Accessing the Matplotlib Objects
Step1:  matplotlib figure
When autofig completes a draw (either with autofig.draw() or passing show=True to a plot or mesh call), a matplotlib figure instance object is returned.  You can then act on this with anything supported by your version of matplotlib (see the matplotlib figure API docs)
Step2:  matplotlib axes
Likewise, you can then access all the individiual matplotlib axes objects as children of this figure (see the matplotlib axes API docs)
Step3:  matplotlib artists
And from the axes (or directly from the figure) you can access the individual artists (lines, points, etc).
<ASSISTANT_TASK:>
Python Code:
import autofig
import numpy as np
import matplotlib.pyplot as plt
#autofig.inline()
x = np.linspace(0,0.1,11)
y = x**2
mplfig = autofig.plot(x=x, y=y, show=True)
Explanation: Accessing the Matplotlib Objects
End of explanation
print dir(mplfig)
mplfig.set_facecolor('blue')
mplfig
Explanation: matplotlib figure
When autofig completes a draw (either with autofig.draw() or passing show=True to a plot or mesh call), a matplotlib figure instance object is returned.  You can then act on this with anything supported by your version of matplotlib (see the matplotlib figure API docs)
End of explanation
mplfig.axes
mplax = mplfig.axes[0]
print dir(mplax)
mplax.set_xticks([0, 0.05, 0.1])
mplfig
Explanation: matplotlib axes
Likewise, you can then access all the individiual matplotlib axes objects as children of this figure (see the matplotlib axes API docs)
End of explanation
mplax.get_lines()
line = mplax.get_lines()[0]
print dir(line)
line.set_color('red')
mplfig
Explanation: matplotlib artists
And from the axes (or directly from the figure) you can access the individual artists (lines, points, etc).
End of explanation
<END_TASK>