Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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