Skip to content

Commit

Permalink
Examples with no shadow text (#1328)
Browse files Browse the repository at this point in the history
* remove examples text shadow

* update registry

* updated uber-h3 example image test threshold

* add changelog news fragment
  • Loading branch information
bjlittle authored Feb 12, 2025
1 parent 33140dd commit dd510d0
Show file tree
Hide file tree
Showing 42 changed files with 81 additions and 115 deletions.
4 changes: 4 additions & 0 deletions changelog/1328.documentation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Removed use of the ``shadow`` option from all :ref:`gv-examples` titles
and scalar bars, as shadowed text does not render correctly with
`trame <https://github.com/Kitware/trame>`__ in the ``Interactive Scene``
on ``readthedocs``. (:user:`bjlittle`)
2 changes: 1 addition & 1 deletion src/geovista/cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
BASE_URL: str = "https://github.com/bjlittle/geovista-data/raw/{version}/assets/"
"""Base URL for :mod:`geovista` resources."""

DATA_VERSION: str = "2025.01.5"
DATA_VERSION: str = "2025.02.1"
"""The ``geovista-data`` repository version for :mod:`geovista` resources."""

GEOVISTA_CACHEDIR: str = "GEOVISTA_CACHEDIR"
Expand Down
81 changes: 41 additions & 40 deletions src/geovista/cache/registry.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,50 +35,51 @@ pantry/textures/world.topo.bathy.200412.3x5400x2700.jpg 56d70019c48cb8d1fe791ca1
rasters/bahamas_rgb.tif.bz2 b4798063e478ad25398a2bf8a464f68f9890c5295ba70ad28b4238f1d8205c66
rasters/fuji_dem.tif.bz2 2e51a278e62304d671e15be8f6cdbea0cb7d477643b97b95c4d4706fa58b4f0a
rasters/japan_map.png.bz2 7b39023b5d26e79475d2dba92269593d5ce46c14ed5859079c79d1fa0ec0987f
tests/images/examples.test__clouds.png a650d7717324453f86e9f03b55009a79d23ff124fee58791bfe0d558fdfc1f98
tests/images/examples.test__clouds_robin.png 73a0f6d6267f7f248643bc733e3b2699af47b711286e449171310e9fb2024f90
tests/images/examples.test__contour.banded_contour.png 7f2ecf50e0fb9b104a1ddf57cfddb3d19724f37b96d1a052aabb053b4df68735
tests/images/examples.test__curvilinear.from_2d__orca_moll.png 39e693dccfbefe67f1ed438341342f1c6b5fa11f24b3d46c4706d8514c043d45
tests/images/examples.test__curvilinear.from_2d__orca.png 492868315f090aad25278660ffd97df31e7158f5c142962e8e23e16773199ade
tests/images/examples.test__extraction.wedge_manifold.png 1678ce568e440ac226c620db9d489884fe3f4b59f8b2c5faa29dcb23e8fa7ff3
tests/images/examples.test__point_cloud.from_points__orca_cloud_eqc.png e41921a712d335061b7507b9fa0880d93a52d7391cb4c586f163d911b54e8362
tests/images/examples.test__point_cloud.from_points__orca_cloud.png 8f723740ca12bfc9c02a29806a777e985d2a3a64a187e39e8a78c1d5ad1a29ff
tests/images/examples.test__rectilinear.from_1d__oisst_eqc.png b4e1d6b0984dbde1b7123b62eb8643206b83a399df90d32d877bf42089863350
tests/images/examples.test__rectilinear.from_1d__oisst.png ae8a7838f65ab5bfc3b0aac29c7cee123bd9563bc55c5420179330a1dff2f2ec
tests/images/examples.test__rectilinear.from_1d__synthetic_face_m1_n1.png 6c8528f8a8b23a303f29e0dc172f7681344081a0f45ac24812880a96c4b3b9a0
tests/images/examples.test__rectilinear.from_1d__synthetic_face_m1_n1_robin.png 872c5d22953737493d09961385431b633ba0a708688f5aa78e0a1e58c98712af
tests/images/examples.test__rectilinear.from_1d__synthetic_node_m1_n1_moll.png 7416dfbc9a93c45dbb2a5f8ffd15baca1edb313597e9a06c2e5926366929afdf
tests/images/examples.test__rectilinear.from_1d__synthetic_node_m1_n1.png 69153b8d5ee074042e98b61825dfd282b5f902ae31e5e1df58f6d74362a4ca58
tests/images/examples.test__rectilinear.from_2d__synthetic_face_m1n1.png 9bda71e20b7ce2b45d8747555459188bcc7829913f6e3f39b7b2cf514be0f942
tests/images/examples.test__rectilinear.from_2d__synthetic_face_m1n1_robin.png b3f9042c1cb23ab9d2d0ba733d49808d53c84d4c7a72922b251c2b45226e530c
tests/images/examples.test__rectilinear.from_2d__synthetic_node_m1n1_moll.png e320bc84c43ba40a42b71fe9779d6740b46a76628edc58787d30940f0a3e1d50
tests/images/examples.test__rectilinear.from_2d__synthetic_node_m1n1.png 928a2bdd664885fa635d287722201ccacaab8f951711f86fbb6ad9fa315e5fa9
tests/images/examples.test__scalar_data.earthquakes.png 7915601a9eee38e18c629a3514a21c8ec90e0fc39a6eea3bc781bd1660315dc1
tests/images/examples.test__scalar_data.earthquakes_wink1.png 8e0136f394c093cd18927932d84f057d6ef8d2edd10d9afc43a534ab25b1961f
tests/images/examples.test__scalar_data.from_tiff__dem.png d2281f70888b9d4dad2612a885f66a8bebbd5ef888273dd7b08d5cd8c94718e5
tests/images/examples.test__scalar_data.from_tiff__rgb.png 0404c758d39106370128a1c5856b15aacd88c2c596a577b4643892ab5a51508c
tests/images/examples.test__spatial_index.uber_h3.png 325fdf3337c37b76a30977ab202876c07bbdacc3d495c253b2000b39b45ef0fd
tests/images/examples.test__unstructured.dynamico.png 480a739c7170f3161173a7f61e52244ff5f7496979a0cbea5210697321879310
tests/images/examples.test__unstructured.dynamico_poly.png 77a5a49d6fcbf67351ee517261195ef05f7cd32e01af82ff7483cb5183992b5e
tests/images/examples.test__unstructured.fesom_fouc.png e567cbfa3477707200cc59ea6f5108171f76257c61f742ba13a418ef25f7dfec
tests/images/examples.test__unstructured.fesom.png 7f67eeeee7fe3b554f97102e7bead54b55ee85a9226e8d5558ade45eabe78bc9
tests/images/examples.test__unstructured.icon_eqc.png c7baf5284f3d07582561df20464529b509b4736b8f1f6bde4377ff568c349017
tests/images/examples.test__unstructured.icon.png a7f83aa784bcfbcbfb498d29dc5665c1fd88dc4a937b5f2aa611d6e57991304d
tests/images/examples.test__unstructured.lam_pacific_moll.png 0695d66528973c7fb377a541a7fae31dd64bbbeb4bd41ae27f041a30209fac9a
tests/images/examples.test__unstructured.lam_pacific.png 7c148352557de1034bc327f350597eb55483685db500f40d895dc7e50171ce4e
tests/images/examples.test__unstructured.lfric_sst_bonne.png d46c3dcc72d9f9f0f11db6bb183aaf100bd07fcbfcdd29f83b25c668d8ab96cd
tests/images/examples.test__unstructured.lfric_sst.png 82f735ea0e30cfc824788b03006ab020f81dcc71c3f7fd582e22344fc8e955cf
tests/images/examples.test__unstructured.smc.png a8857fd85ec80cb1646dc837f06b377b8fed5bd7baf9a3cbac4bcd272bcd61f1
tests/images/examples.test__unstructured.smc_sinu.png 25c73dc33172bfdb76d615c4edaea420b833ce097ee40e573541648282f4cdab
tests/images/examples.test__unstructured.tri_hammer.png 55a063f42722665ae3575d703e5992e5c448a3b496f37292c8dc2497390f14d6
tests/images/examples.test__unstructured.tri.png 17706b23041a027bd52be9950a86703a59b8f1282a82790ee7686832d0bc4196

tests/images/examples.test__clouds.png 571b052c2bfe6e16bcbb3405a91082feb3c08c901bb869e9cb61d558826adf0d
tests/images/examples.test__clouds_robin.png dd4b9cd16f735e55aa67f5b6ff90eeb7646bdb65bbb1c6df524a5746d9efc36c
tests/images/examples.test__contour.banded_contour.png cb8a092afa55098e0b2ddacf4fc860619ed7e6938e1e5bc54567d0b85b04ad7d
tests/images/examples.test__curvilinear.from_2d__orca_moll.png 2d218333c1033f37fc899e6ff4785cf61fbdda1d3e1d95449fd6c5e6e766a63a
tests/images/examples.test__curvilinear.from_2d__orca.png 22442553c36ba79180db6a07178613b77fce7f84232c848995b3021ce7cd93a8
tests/images/examples.test__extraction.wedge_manifold.png 17d71ec72d0e496924a69ed9be9dc42003a8339e5fee44f77329f5d8efb311f4
tests/images/examples.test__point_cloud.from_points__orca_cloud_eqc.png d7cbc1365588e6b4cfc3e393776e2ca18671d45121e83a6450beebe7e6bfa4a8
tests/images/examples.test__point_cloud.from_points__orca_cloud.png 5473cc27d56b3ccb7bc59c98fbb01737f3290971072dae769ba26f264f059747
tests/images/examples.test__rectilinear.from_1d__oisst_eqc.png f2ec2b420a621ea69b764ee00e5fb271174013c9018c4396a3fb48fd53a6f6af
tests/images/examples.test__rectilinear.from_1d__oisst.png 674f25f62cd416002315ec1a583a4118681ebcc47afe89879da36f0f6bd5004e
tests/images/examples.test__rectilinear.from_1d__synthetic_face_m1_n1.png a4bf7bb7aa9ecf861c2f7fa5ea68e3e9ec5750ad347915b13bfb502c122f46d3
tests/images/examples.test__rectilinear.from_1d__synthetic_face_m1_n1_robin.png f7572747f575b0f6a9fa96661219312bd7f2a3082b4a2e0f8449089b75618df4
tests/images/examples.test__rectilinear.from_1d__synthetic_node_m1_n1_moll.png a36b01283ffac2ae8f1a6642fdea177f1aaf3c4558a9670e26e54205fa14cc04
tests/images/examples.test__rectilinear.from_1d__synthetic_node_m1_n1.png b194552e2328f09691aef0c757a166204c09e692c341c1787bf4315bf4ef0934
tests/images/examples.test__rectilinear.from_2d__synthetic_face_m1n1.png eb8a81c7fa779f4bb8c886c1898dc0b5fc8b471f6a6b045db40abd1cf5a351e5
tests/images/examples.test__rectilinear.from_2d__synthetic_face_m1n1_robin.png 0a542a94392f51d76fe1f0e80ab61108d16fc2367bd52063358768e851e087aa
tests/images/examples.test__rectilinear.from_2d__synthetic_node_m1n1_moll.png 0e5f1350b0d90fa6cca0ef0e0a6e0fa2963c9e8879a7633ca60835734bf9c759
tests/images/examples.test__rectilinear.from_2d__synthetic_node_m1n1.png e4801d13f076251e395ce1b1e9c5ffedbc38332b72ace2d829e941a23c0d691d
tests/images/examples.test__scalar_data.earthquakes.png 12c75a49b0668691063b7895a63bb63d29b618792652f86ddb99e0b80e69ed36
tests/images/examples.test__scalar_data.earthquakes_wink1.png c5ec52c697e572b8a3e67be7772a1e2659b5954ba5932a68e9781a9c197b18ab
tests/images/examples.test__scalar_data.from_tiff__dem.png 6a927cec0c68f5b7adbb07f7b8a8253b43d028d3a5f610636ffcf565410139aa
tests/images/examples.test__scalar_data.from_tiff__rgb.png 52b04c390500417f69cb2a40eda7e6b473620cdd74b2524f158644c04d528514
tests/images/examples.test__spatial_index.uber_h3.png d93a475382420059d2f79f722351e9078a8e13d8f6e174a32cabc68de1b12995
tests/images/examples.test__unstructured.dynamico.png 0eed8e6e5c87fdf65291e8b1ed8c7aa642fd6e6d57e27f05e37793a97f9c75ac
tests/images/examples.test__unstructured.dynamico_poly.png cad9c8baa23ac7e7563bfedcd538d2850f154a6ee468fdc84651ba3bbc3e6c91
tests/images/examples.test__unstructured.fesom_fouc.png 50df3477fe8b6d5189eb3071a1b910c6c57cb59145e2a0611a4bf3690446548c
tests/images/examples.test__unstructured.fesom.png a2a36b2480ce76780a91bb0ae6e8711c26e1f89b698e662c9a7f0441f14c3148
tests/images/examples.test__unstructured.icon_eqc.png 600b2efd3be6f67409ffa2deb192984c17231c304b08e544816f5bbceebbbb64
tests/images/examples.test__unstructured.icon.png 1cca507842b07c5a7c4d49b91adfffa07f926189fbc4e9d4b9c53d6fc42992d6
tests/images/examples.test__unstructured.lam_pacific_moll.png bfe0b2269f343ca10bdea10a695a5bc696ca8f329fc1305bc16616d0686254aa
tests/images/examples.test__unstructured.lam_pacific.png 3c0abe5ccc0fa55f06982402bf23fd47c072b34c378997c8f21b339254b59ac9
tests/images/examples.test__unstructured.lfric_sst_bonne.png db2631001aed41029e7293726b89cfee8de75ad70393b8cf64b0423aa05e45a8
tests/images/examples.test__unstructured.lfric_sst.png deea084f5bf5a299d2ec09cf4f7471a2204229f07a0149e4b49d2df7eb7138ac
tests/images/examples.test__unstructured.smc.png 51e4f954c9c976214134b5254f010dd2441376de9066470ca639df14f33045c0
tests/images/examples.test__unstructured.smc_sinu.png f27ce3f8b13611cf359291ac1d8c6c9fdfd24d7b0cd08f7b38d5cf8266ecd88b
tests/images/examples.test__unstructured.tri_hammer.png 1cb617630ff7169621e7df9916f894d53d21685e5c11493259e3303ac1198e29
tests/images/examples.test__unstructured.tri.png 62cb499a1fcf5cfad71587fb83f99b97a9eae6ceaabcbad410cc05e2391ad002
tests/images/examples.test__vector_data.flow_directions.png 26cea271234f57b721da235b0d1b9b6d35927003621ac3f4750cd8b52e99134e
tests/images/examples.test__vector_data.vectors.png 72f1a30dd57b8c6cc635e866aa1ffd79bdfc10dd75cbf5ea8588f74781f0c490
tests/images/examples.test__vector_data.wind_arrows.png e73f77f2cb804e7d629be36ef8b0fcef1d64d653db005d29d2a2188575734809
tests/images/examples.test__vector_data.winds_3d.png eb08f0d00a89d3429ab4e541d1b6c791d569d6bc6e359bf98d43f2937dff6753
tests/images/examples.test__warp.from_unstructured__fvcom.png b31dba987a706601c60df6ab9c39cf03e83ed6d07acf84d2d10a798702762f08
tests/images/examples.test__warp.from_unstructured__lfric_orog_eqc.png 1374d2be77a2e6b5208d05be57ce0c215df8fb06b3d96d3ceb07afb8766ffd37
tests/images/examples.test__warp.from_unstructured__lfric_orog.png 327862863d6a7f7d9c5e5f1f8869db4904474157ad7f6cf9ccfb8eafd2e04a73
tests/images/examples.test__warp.from_unstructured__fvcom.png 18ae7a4041f847760f4baf5e549156231867639893767010c8c03ba65306942f
tests/images/examples.test__warp.from_unstructured__lfric_orog_eqc.png f15eed048b1c7ed45e2b831f0c794a519bea7a5eba537b2a2c5abb3999c57308
tests/images/examples.test__warp.from_unstructured__lfric_orog.png 5e0aa856d978057d547d32afd885fb1eb13c0bbf6b9470dbf6454b635460a64b
tests/images/geoplotter.test_view_poi.test_lam_polar__eqc.png 602bba11b641ac202308adf9d0833152af6ccc370123dc8d618424172119a092
tests/images/geoplotter.test_view_poi.test_lam_polar__moll.png 429b2a7fa80aba2b712f49341ccb0daa6f70a0a5141da014618ac5cad17e50c9
tests/images/geoplotter.test_view_poi.test_lam_polar__None.png 5f2ec2b36c900946cdfab0b52615e7c955692573f788691f0de2bfd6753ddf16
Expand Down
1 change: 0 additions & 1 deletion src/geovista/examples/clouds.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def main() -> None:
"Low, Medium, High & Very High Cloud Amount",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.5)
p.show()
Expand Down
1 change: 0 additions & 1 deletion src/geovista/examples/clouds_robin.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def main() -> None:
f"Low, Medium, High & Very High Cloud Amount ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/curvilinear/from_2d__orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def main() -> None:

# Plot the curvilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(mesh, scalar_bar_args=sargs)
p.add_base_layer(texture=gv.natural_earth_1())
p.add_coastlines()
Expand All @@ -69,7 +69,6 @@ def main() -> None:
"ORCA (10m Coastlines)",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/curvilinear/from_2d__orca_moll.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@ def main() -> None:

# Plot the curvilinear mesh.
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(mesh, scalar_bar_args=sargs)
p.add_coastlines(color="black")
p.add_axes()
p.add_text(
f"ORCA ({crs}, extrude)",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/point_cloud/from_points__orca_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main() -> None:

# Plot the point cloud.
p = gv.GeoPlotter()
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(
cloud,
cmap="deep",
Expand All @@ -83,7 +83,6 @@ def main() -> None:
"ORCA Point-Cloud (10m Coastlines)",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main() -> None:
# Plot the projected point cloud.
crs = "+proj=eqc"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(
cloud,
cmap="deep",
Expand All @@ -87,7 +87,6 @@ def main() -> None:
f"ORCA Point-Cloud ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.5)
p.show()
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/rectilinear/from_1d__oisst.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main() -> None:

# Plot the rectilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(mesh, scalar_bar_args=sargs)
p.add_base_layer(texture=gv.blue_marble())
p.add_coastlines()
Expand All @@ -70,7 +70,6 @@ def main() -> None:
"NOAA/NCEI OISST AVHRR (10m Coastlines)",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/rectilinear/from_1d__oisst_eqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def main() -> None:
# Plot the rectilinear grid.
crs = "+proj=eqc"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{sample.name} / {sample.units}", "shadow": True}
sargs = {"title": f"{sample.name} / {sample.units}"}
p.add_mesh(mesh, scalar_bar_args=sargs)
p.add_base_layer(texture=gv.blue_marble())
p.add_coastlines()
Expand All @@ -74,7 +74,6 @@ def main() -> None:
f"NOAA/NCEI OISST AVHRR ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ def main() -> None:

# Plot the rectilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="ice", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
"1-D Synthetic Face Data",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,14 @@ def main() -> None:
# Plot the rectilinear grid.
crs = "+proj=robin"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="ice", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
f"1-D Synthetic Face Data ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ def main() -> None:

# Plot the rectilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="ice", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
"1-D Synthetic Node Data",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,14 @@ def main() -> None:
# Plot the rectilinear grid.
crs = "+proj=moll"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="ice", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
f"1-D Synthetic Node Data ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ def main() -> None:

# Plot the rectilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="tempo", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
"2-D Synthetic Face Data",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ def main() -> None:
# Plot the rectilinear grid.
crs = "+proj=robin"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="tempo", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
f"2-D Synthetic Face Data ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ def main() -> None:

# Plot the rectilinear grid.
p = gv.GeoPlotter()
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="tempo", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
"2-D Synthetic Node Data",
position="upper_left",
font_size=10,
shadow=True,
)
p.camera.zoom(1.3)
p.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ def main() -> None:
# Plot the rectilinear grid.
crs = "+proj=moll"
p = gv.GeoPlotter(crs=crs)
sargs = {"title": f"{name} / 1", "shadow": True}
sargs = {"title": f"{name} / 1"}
p.add_mesh(mesh, clim=clim, cmap="tempo", scalar_bar_args=sargs, show_edges=True)
p.add_coastlines()
p.add_axes()
p.add_text(
f"2-D Synthetic Node Data ({crs})",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xy()
p.camera.zoom(1.5)
Expand Down
3 changes: 1 addition & 2 deletions src/geovista/examples/scalar_data/earthquakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main() -> None:

# Plot the points.
p = gv.GeoPlotter()
sargs = {"title": "Magnitude", "shadow": True}
sargs = {"title": "Magnitude"}
p.add_points(
xs=sample.lons,
ys=sample.lats,
Expand All @@ -94,7 +94,6 @@ def main() -> None:
"USGS M2.5+ Earthquakes, 2000-2018",
position="upper_left",
font_size=10,
shadow=True,
)
p.view_xz(negative=True)
p.camera.zoom(1.3)
Expand Down
Loading

0 comments on commit dd510d0

Please sign in to comment.