Skip to content Skip to sidebar Skip to footer

Aplpy/matplotlib: Coordinate Grid Alpha Levels For Eps Quality Figure

In the normal matplotlib axes class, it is possible to set gridlines to have a certain transparency (alpha level). I'm attempting to utilise this with the APLpy package using the f

Solution 1:

In the save function, there is an optional argument, transparent. transparent is set to False by default. If you set it to True, the transparency should be preserved when you save.

So it should be something like:

M33.save(filename, transparent=True, ..)

ETA: In the comments below it was pointed out that the EPS format does not support transparency, so the above code will not work if you're saving in that format.

Post a Comment for "Aplpy/matplotlib: Coordinate Grid Alpha Levels For Eps Quality Figure"