yumorishita / LiCSBAS2

GNU General Public License v3.0
18 stars 2 forks source link

Still Error in LiCSBAS11_check_unw.py #44

Closed tiggic closed 3 months ago

tiggic commented 4 months ago

Hello Yumorishita,

I still have problem following this issue, i have check and use the new version, but still giving me the same. i hope you could give solution for this one.

Thank you

Tiggi C

LiCSBAS11_check_unw.py ver1.3.3 20210402 Y. Morishita LiCSBAS11_check_unw.py -d GEOCml1

coh_thre : 0.05 unw_cov_thre : 0.3

Size : 2712 x 2776

Reading unw and cc data... 0/160th unw to identify valid area... 100/160th unw to identify valid area... 0/160th cc and unw... 100/160th cc and unw...

5/160 ifgs are discarded from further processing. ifg dates unw_cov coh_av 20170317_20170504 0.200 0.055 20170329_20170504 0.238 0.057 20170329_20170516 0.199 0.055 20170410_20170504 0.294 0.060 20170410_20170516 0.244 0.058 Traceback (most recent call last): File "/home/risk/LiCSBAS2-1.9.0/bin/LiCSBAS11_check_unw.py", line 356, in sys.exit(main()) ^^^^^^ File "/home/risk/LiCSBAS2-1.9.0/bin/LiCSBAS11_check_unw.py", line 331, in main plot_lib.plot_network(ifgdates, bperp, [], pngfile) File "/home/risk/LiCSBAS2-1.9.0/LiCSBAS_lib/LiCSBAS_plot_lib.py", line 290, in plot_network ax.grid(b=True, which='major') File "/home/risk/.pyenv/versions/miniconda3-latest/lib/python3.12/site-packages/matplotlib/axes/_base.py", line 3196, in grid self.xaxis.grid(visible, which=which, kwargs) File "/home/risk/.pyenv/versions/miniconda3-latest/lib/python3.12/site-packages/matplotlib/axis.py", line 1697, in grid self.set_tick_params(which='major', gridkw) File "/home/risk/.pyenv/versions/miniconda3-latest/lib/python3.12/site-packages/matplotlib/axis.py", line 958, in set_tick_params kwtrans = self._translate_tick_params(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/risk/.pyenv/versions/miniconda3-latest/lib/python3.12/site-packages/matplotlib/axis.py", line 1102, in _translate_tick_params raise ValueError( ValueError: keyword grid_b is not recognized; valid keywords are ['size', 'width', 'color', 'tickdir', 'pad', 'labelsize', 'labelcolor', 'labelfontfamily', 'zorder', 'gridOn', 'tick1On', 'tick2On', 'label1On', 'label2On', 'length', 'direction', 'left', 'bottom', 'right', 'top', 'labelleft', 'labelbottom', 'labelright', 'labeltop', 'labelrotation', 'grid_agg_filter', 'grid_alpha', 'grid_animated', 'grid_antialiased', 'grid_clip_box', 'grid_clip_on', 'grid_clip_path', 'grid_color', 'grid_dash_capstyle', 'grid_dash_joinstyle', 'grid_dashes', 'grid_data', 'grid_drawstyle', 'grid_figure', 'grid_fillstyle', 'grid_gapcolor', 'grid_gid', 'grid_in_layout', 'grid_label', 'grid_linestyle', 'grid_linewidth', 'grid_marker', 'grid_markeredgecolor', 'grid_markeredgewidth', 'grid_markerfacecolor', 'grid_markerfacecoloralt', 'grid_markersize', 'grid_markevery', 'grid_mouseover', 'grid_path_effects', 'grid_picker', 'grid_pickradius', 'grid_rasterized', 'grid_sketch_params', 'grid_snap', 'grid_solid_capstyle', 'grid_solid_joinstyle', 'grid_transform', 'grid_url', 'grid_visible', 'grid_xdata', 'grid_ydata', 'grid_zorder', 'grid_aa', 'grid_c', 'grid_ds', 'grid_ls', 'grid_lw', 'grid_mec', 'grid_mew', 'grid_mfc', 'grid_mfcalt', 'grid_ms']

yumorishita commented 4 months ago

You are not using the latest one because the latest one is https://github.com/yumorishita/LiCSBAS2/blob/7712d2ad66db22aa0d38fdd1f2fa20c90dd1a8ed/LiCSBAS_lib/LiCSBAS_plot_lib.py#L290 but your error message says

File "/home/risk/LiCSBAS2-1.9.0/LiCSBAS_lib/LiCSBAS_plot_lib.py", line 290, in plot_network
ax.grid(b=True, which='major')

Please use the latest version.

tiggic commented 4 months ago

Ah yes, you're right. I think i mix up the latest version.

Problem is solved. Thank you so much for your reply.

Tiggi C