From 2ac8cb66bf6a246cb981051232a46d4bedacb79f Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Thu, 19 Dec 2024 14:28:27 -0500 Subject: [PATCH] minor cleanup --- CHANGELOG.md | 2 +- ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl | 4 ++-- test/test_plotting_3_maps.jl | 3 ++- test/test_plotting_gl.jl | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99bc6b50..968ac2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## v0.5.1-dev - Add `classical_delay` and `quantum_delay` as keyword arguments to the `RegisterNet` constructor to set a default global network edge latency. -- Implement a feature to include a map as a background for plotting (`generate_map`). +- Plots of networks can now overlay real-world maps (see `generate_map`). ## v0.5.0 - 2024-10-16 diff --git a/ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl b/ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl index 5e77efd2..642649be 100644 --- a/ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl +++ b/ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl @@ -4,7 +4,7 @@ import Makie, GeoMakie using GeoMakie: GeoAxis, image!, poly!, naturalearth """ -Generates a default map with country and state boundaries and returns a GeoAxis. The returned GeoAxis can be used as an input for registernetplot_axis. +Generates a default map with country and state boundaries and returns a GeoAxis. The returned GeoAxis can be used as an input for `registernetplot_axis`. For borders, the optional `scale` parameter can be set to 10, 50, or 110, corresponding to Natural Earth resolutions of 1:10m, 1:50m, and 1:110m. """ @@ -27,4 +27,4 @@ function generate_map() generate_map(fig[1, 1]) end -end \ No newline at end of file +end diff --git a/test/test_plotting_3_maps.jl b/test/test_plotting_3_maps.jl index 020bbd46..50d3fe6b 100644 --- a/test/test_plotting_3_maps.jl +++ b/test/test_plotting_3_maps.jl @@ -1,5 +1,6 @@ using FileIO using GeoMakie +using QuantumSavory sizes = [2,3,5] registers = Register[] @@ -28,4 +29,4 @@ display(fig) fig = Figure() map_axis = generate_map(fig[1, 1]) _, _, plt, netobs = registernetplot_axis(map_axis, network, registercoords=coords) -save(File{format"PNG"}(mktemp()[1]), fig) \ No newline at end of file +save(File{format"PNG"}(mktemp()[1]), fig) diff --git a/test/test_plotting_gl.jl b/test/test_plotting_gl.jl index 4364a30e..06950c46 100644 --- a/test/test_plotting_gl.jl +++ b/test/test_plotting_gl.jl @@ -12,6 +12,7 @@ end @testset "background map" begin include("test_plotting_3_maps.jl") end + @testset "data inspectors" begin # only available in GLMakie # create a network of qubit registers net = RegisterNet([Register(2),Register(3),Register(2),Register(5)])