Skip to content

[Bug] Error in Python library documentation for grass.jupyter.Map3D #5497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
baharmon opened this issue Apr 2, 2025 · 0 comments
Open
Labels
bug Something isn't working docs good first issue Good for newcomers Python Related code is in Python

Comments

@baharmon
Copy link
Contributor

baharmon commented Apr 2, 2025

Describe the bug

The basic usage sample code for grass.jupyter.map3d in the Python library documentation does not work. The example should instantiate the class Map3D rather than Map.

To reproduce

img = Map()
img.render(elevation_map="elevation", color_map="elevation", perspective=20)
img.overlay.d_legend(raster="elevation", at=(60, 97, 87, 92))
img.show()

Expected behavior

img = Map3D()
img.render(elevation_map="elevation", color_map="elevation", perspective=20)
img.overlay.d_legend(raster="elevation", at=(60, 97, 87, 92))
img.show()
@baharmon baharmon added bug Something isn't working Python Related code is in Python docs labels Apr 2, 2025
@pesekon2 pesekon2 added the good first issue Good for newcomers label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs good first issue Good for newcomers Python Related code is in Python
Projects
None yet
Development

No branches or pull requests

2 participants