Is there a simple way to make a log-log plot or semilog plot in Julia? This link provides a sort of clunky way to do it, but given the general ethos of Julia I suspect there's a shorter way.
As described here, you can accomplish this with magic arguments yaxis=:log
or xaxis=:log
.
using Plots
x = 1:100
# log-log plot
plot(x.^2, xaxis=:log, yaxis=:log)
# semilog plot
plot(x.^2, xaxis=:log)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With