Question about gridlines

Dear all,

When writing:

f = figure()

gl = f.gca().get_xgridlines()

I always get a list of gridlines independantly of the fact that they are actually drawn or not.

Is there an attribute or a method that could inform me whether the gridlines are actually displayed or not ?

I thougt that the method “get_visible” could do the job but it seems to do an unrelated task.

thank you very much