Skip to content

Commit

Permalink
correct benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Aug 30, 2022
1 parent 5b862fd commit 0c307bf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions benchmarks/res/plotcomptimes.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env julia

using PyCall
#pyimport_conda("matplotlib", PKG)
#mpl = pyimport("matplotlib")
#mpl.rc("text", usetex=true)
#mpl.use("Agg")
using PyPlot
using JLD2
using FileIO
Expand All @@ -22,16 +18,15 @@ function singleplot(filename::String, name::String, compare::String = "")
x = d["x"]
t = d["t"]
m = d["m"]
#mpl.rc("font", family="serif", size = 7)
fig, ax = subplots(figsize = (2.5, 2.))
col = ["red", "blue", "black", "green", "yellow", "orange"]
marker = [":s", ":o", ":v", ":<", ":>", ":d"]
for i in 1:size(comptimes, 2)
tt = t[i]
ax[:plot](d[x], comptimes[:,i], marker[i], label= "t = $tt", color = col[i], markersize=2.5, linewidth = 1)
end
PyPlot.ylabel(ylab, labelpad = -1.8)
PyPlot.xlabel(x, labelpad = -2)
PyPlot.ylabel(ylab, labelpad = -1)
PyPlot.xlabel(x, labelpad = -1)
if maximum(comptimes) > 10
f = matplotlib[:ticker][:ScalarFormatter]()
f[:set_powerlimits]((-3, 2))
Expand All @@ -40,7 +35,7 @@ function singleplot(filename::String, name::String, compare::String = "")
end
ax[:yaxis][:set_major_formatter](f)
ax[:legend](fontsize = 6, loc = 2, ncol = 1)
subplots_adjust(left = 0.15, bottom = 0.12,top=0.92)
subplots_adjust(left = 0.22, bottom = 0.20,top=0.92)
fig[:savefig](name*filename*".pdf")
end

Expand Down

2 comments on commit 0c307bf

@kdomino
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/67330

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.6 -m "<description of version>" 0c307bf8fdb920e0ee705827350174b91ba7297d
git push origin v1.0.6

Please sign in to comment.