Skip to content

Commit 068a6d9

Browse files
author
Chris Foster
committed
Minor tweaks to plotting
1 parent 2171e08 commit 068a6d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/inv.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,20 @@ function plot_residuals(N, rank, ϵ)
106106
#= println("]") =#
107107
#= end =#
108108
end
109-
loglog(SA_residuals, A_residuals, ".", markersize=1.5)
109+
loglog(A_residuals, SA_residuals, ".", markersize=1.5)
110110
end
111111
112112
# Plot the accuracy of inv implementations for almost singular matrices of
113113
# various rank
114114
clf()
115115
N = 4
116+
title("inv() accuracy for poorly conditioned $(N)x$(N) - Base vs block decomposition")
116117
labels = []
117118
for i in N:-1:1
118119
plot_residuals(N, i, 1e-7)
119120
push!(labels, "rank $i")
120121
end
121-
xlabel("residual norm - inv(::StaticArray)")
122-
ylabel("residual norm - inv(::Array)")
122+
xlabel("Residual norm: `inv(::Array)`")
123+
ylabel("Residual norm: `inv(::StaticArray)`")
123124
legend(labels)
124125
=#

0 commit comments

Comments
 (0)