Skip to content

GKS: Viewport is not within the NDC unit square in routine SET_VIEWPORT #35

@songbin6280

Description

@songbin6280

I have run into an issue with gr as backend for matplotlib. Without gr the same python script run without issue. The figure (topo.png) generated is correct. When I turn on gr as the backend with "export MPLBACKEND="module://gr.matplotlib.backend_gr"", the complaint shown in the title appeared multiple times. The figure (topo-gr.png) generated is also wrong. Can you give me some hints how to modify the script to make it work with gr? Sorry that the script is messy. The plotting related part is marked towards the end of the script. The two files referenced are in this google drive folder:
https://drive.google.com/drive/folders/1pXxzYaXTr56HUSbVATegPEGGWLjWjEk-?usp=drive_link.

Thank you.
Bin

plot.py

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions