Skip to content

Commit

Permalink
fix 1D vectorplot
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Feb 6, 2023
1 parent 90ebb99 commit 4083951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GridVisualize"
uuid = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8"
authors = ["Juergen Fuhrmann <[email protected]>"]
version = "1.0.0"
version = "1.0.1"

[deps]
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
Expand Down
4 changes: 2 additions & 2 deletions src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,10 @@ function vectorplot!(ctx::SubVisualizer, grid::ExtendableGrid, func; kwargs...)
end

function vectorplot!(ctx, ptype, ::Type{Val{1}}, grid, func::Matrix)
scalarplot!(ctx, ptype, Val{1}, grid, func[1, :])
scalarplot!(ctx, ptype, Val{1}, [grid], grid, [func[1, :]])
end
function vectorplot!(ctx, ptype, ::Type{Val{1}}, grid, func::Vector)
scalarplot!(ctx, ptype, Val{1}, grid, func)
scalarplot!(ctx, ptype, Val{1}, [grid], grid, [func])
end

"$(TYPEDSIGNATURES)"
Expand Down

2 comments on commit 4083951

@j-fu
Copy link
Member Author

@j-fu j-fu commented on 4083951 Feb 6, 2023

Choose a reason for hiding this comment

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

@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/77138

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.1 -m "<description of version>" 4083951dae61dd25bf22c86518cff274bbde5ea3
git push origin v1.0.1

Please sign in to comment.