My apologies, - I think its probably a very basic matplotlib-related question, but I'm still a newbie sorry.
In the online documentation of obspy.imaging.spectrogram.spectrogram
http://svn.geophysik.uni-muenchen.de/obspy/docs/packages/auto/obspy.imaging.spectrogram.spectrogram.html#obspy.imaging.spectrogram.spectrogram
... on the "axis" option the documentation says '' "Plot into given axis, this deactivates the format and outfile option" ''
Could you possibly give me a very simple example of how I would define "a given axis",
e.g. for your same example as in the ObsPy tutorial, but instead using a new y-axis constrained to frequencies 0.1 --> 15 Hz ; and perhaps with an output file name "test-spec.png" ?
( I can already do the unconstrained version, using for example :
'' spectrogram( t5.data, df2, wlen=60., outfile=outfilename, format='png', log=True, title=plottitle) ''
but I need to constrain the y-axis a bit... )
Thanks very much !
该提问来源于开源项目:obspy/obspy