Dear all,
I am fighting with title in graphics object. Is there a way to store a title in a graphics object ? For example one could consider Graphics() or graphs.PetersenGraph().plot(). This works fine with show at display time
sage: Graphics().show(title="empty plot")
sage: graphs.PetersenGraph().plot().show(title="Petersen graph")
But I want to store the title inside the graphics object as one would do with
sage: plot(x, title="x plot")
The reason is that I want a graphics_array containing various plots that do not accept a title argument. Ideally, something like the following would work but it does not
sage: G0 = Graphics()
sage: G0.set_title("empty plot")
sage: G1 = graphs.PetersenGraph().plot()
sage: G1.set_title("Petersen graph")
sage: graphics_array([G0, G1]).show()
Once again, it works like a charm for
sage: graphics_array([plot(x, title="x plot"), plot(x^2, title="x^2 plot")])
Best
Vincent