Skip to content

Commit

Permalink
Add EcutTestPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Nov 2, 2023
1 parent 9b41a9f commit 53b283e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/outputs.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
using DataFrames: groupby
using QuantumESPRESSO.PWscf

@userplot EcutTestPlot
@recipe function f(plot::EcutTestPlot)
framestyle --> :box
legend_foreground_color --> nothing
grid --> false
seriestype --> :scatter
total_energies = last(plot.args)
cutoff_energies = length(plot.args) == 2 ? first(plot.args) : eachindex(total_energies)
if length(plot.args)
xguide --> "cutoff energy"
end
yguide --> "total energy"
return cutoff_energies, total_energies
end

@userplot EnergyConvergenceIterationPlot
@recipe function f(plot::EnergyConvergenceIterationPlot)
framestyle --> :box
Expand Down

0 comments on commit 53b283e

Please sign in to comment.