Plot PDF

Plot PDF utilities.

SeisPDF.plot_pdfFunction
plot_pdf(pdf::Array{<:Real, 2}, center_periods::Array{<:Real, 1}; mindb::Real=-200, maxdb::Real=-50, db_interval::Real=1, kw...)

Plot PDF using GMT.jl.

Arguments

  • pdf::Array{<:Real, 2}: the matrix storing PDF.
  • center_periods::Array{<:Real, 1}: the center periods.

Optional

  • mindb::Real: the minimum range of PDF. Measured in dB.
  • maxdb::Real: the maximum range of PDF. Measured in dB.
  • db_interval::Real: the interval of PDF. Measured in dB.
  • kw: the keyword arguments passed to GMT.jl. For example:
    • You can use plot_pdf(pdf, center_periods; show=true) just to show the graph.
    • You can use plot_pdf(pdf, center_periods; show=true, savefig="foo.png") to show and save the graph to "foo.png".
    • You can use plot_pdf(pdf, center_periods; show=false, savefig="foo.png") to just save the graph to "foo.png".
source
SeisPDF.plot_pdf_in_unicodeFunction
plot_pdf_in_unicode(pdf::Array{<:Real, 2})

A plot function for plot test purpose. Usually you should not use this.

Arguments

  • pdf::Array{<:Real, 2}: a PDF matrix.
source