eldee
November 8, 2024, 6:36pm
2
Hi,
Currently the code you posted is not properly formatted, making it hard to read. Please edit it, cf. instructions here:
This is a short post on how to use backticks (` and ```) to quote code, so it is easy to read. This post can be linked to new users who are confused by this feature.
Why
By quoting your code, you get a monospaced font (which preserves indentation) and syntax highlighting. This makes it easier to read your code and help you.
Displayed code looks like this:
function displayed_code(x::Int, y::Int)
if x < y
println("x is smaller")
else
println("or not")
end
end
Inline…
Additionally, it would also help if you would post the full error message, and reduce the code as much as possible to obtain a minimal working example (resulting in the same error). Check out
Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer.
Keywords are highlighted to make it easier to refer to specific points.
Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
1 Like