What would be the easiest way to label the x and y axes of a FiPy viewer? I specifically use the fipy.viewers.matplotlibViewer.matplotlib2DGridContourViewer.Matplotlib2DGridContourViewer
. I tried giving the the parameter xlabel="some string"
but that obviously didn't work because that class doesn't have that parameter. Then I saw that it can take a matplotlib.figure.Axes
object as a parameter, but to create one, I would have to have an existing matplotlib.figure.Figure
object and so everything is intertwining and I'm lost in documentations with such a seemingly simple goal. Is there some way to add labels simply by giving the Viwer a specific parameter?
Also I looked at the custom Viewer creation examples but I'm not that good in Python, so I would appreciate a detailed solution if I have to take that route.