Skip to content
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

utils.plot: fix _tkinter.TclError via plt.switch_backend('Agg') #947

Merged
merged 2 commits into from
Jan 20, 2023

Conversation

falkamelung
Copy link
Contributor

@falkamelung falkamelung commented Jan 19, 2023

Description of proposed changes
This addresses this issue
#928

When I said that it does not work it was a non-MintPy script. My bad.

Reminders

@yunjunz
Copy link
Member

yunjunz commented Jan 19, 2023

Hi @falkamelung, I could not see the actual code change in this PR, because the file is not in the right location (mintpy.utils.plot.py), and it does not seem to be based on the latest version.

Are you saying the suggested change here (#928 (comment)) works?

Fix the `_tkinter.TckError: couldn't connect to display "localhost:38.0"` error by setting the matplotlib backend to Agg, in the following two functions, when saving figures without displaying:
+ `plot_num_triplet_with_nonzero_integer_ambiguity()`, used in the `smallbaselineApp.py --dostep quick_overview` step
+ `plot_timeseries_rms()`, used in the `smallbaselineApp.py --dostep timeseries_RMS` step
@yunjunz yunjunz changed the title plot.py: Agg fix utils.plot: fix _tkinter.TclError via plt.switch_backend('Agg') Jan 20, 2023
@yunjunz yunjunz self-requested a review January 20, 2023 05:29
@yunjunz yunjunz merged commit ed3ce70 into insarlab:main Jan 20, 2023
@falkamelung falkamelung deleted the mpl_plot_fix branch July 25, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

couldn't connect to display error for smallbaselineApp.py batch job from tmux
2 participants