Skip to content

Update references to gwpy.plotter #3

Description

@duncanmmacleod

The gwpy.plotter module is deprecated and will be removed in the next release. This has been replaced by gwpy.plot in a API backwards-incompatible manner.

The reference is here:

https://github.com/ligovirgo/seismon/blob/386550853dd351b248504d46525b885ff142cf5c/seismon/hilbert.py#L12

with typical usage here:

https://github.com/ligovirgo/seismon/blob/386550853dd351b248504d46525b885ff142cf5c/seismon/hilbert.py#L202-L212

I am happy to work with whomever to update the relevant calls. The above would be updated to something like this:

from gwpy.plot import Plot
plot = Plot(figsize=[14, 8])
ax = plot.gca(xscale='auto-gps')
ax.plot(dataHilbert, label="Hilbert", linestyle='-', color='b')
ax.plot(dataXY, label="XY", linestyle='-', color='g')
ax.set_ylabel(r"Velocity [$\mu$m/s]")
ax.legend(loc=1, prop={'size':10})
plot.save(pngFile) 
plot.close()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions