[obspy-users] Y axis limits in PPSD plots

Tobias Megies megies at geophysik.uni-muenchen.de
Mon Apr 27 11:08:12 CEST 2020


Use show=False, don't use filename=... and then work with the returned
matplotlib Figure object and call pyplot show when done or save to file.

Something like
fig = ppsd.plot(...)
fig.axes[0].set_ylim(..., ...)

cheers,
Tobias


On 24/04/2020 19:02, Robert Sohn wrote:
> How can I change the default y-axis limits in PPSD.plot?
> 
> Thanks, Rob
> 

-- 
EMail: tobias.megies at lmu.de
WWW: https://www.geophysik.uni-muenchen.de

Geophysikalisches Observatorium
Ludwigshöhe 8
82256 Fürstenfeldbruck

Tel: +49 (0) 89 2180-73981
Fax: +49 (0) 89 2180-73970

Ludwig-Maximilians-Universität
Department für Geo- und Umweltwissenschaften
Sektion Geophysik
Theresienstrasse 41/IV
80333 München

Tel: +49 (0) 89 2180-4326
Fax: +49 (0) 89 2180-4205


More information about the obspy-users mailing list