Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Bathymetry preprocessing issue with Pitlakq version 1.6

20 views
Skip to first unread message

Silvano Salvador

unread,
Jul 14, 2021, 4:41:08 PM7/14/21
to pitlakq-users
Hi Mike,

Attached are the requested files bath.nc files for pitlakq v1.2 and v1.6.  I will follow up with the other 3 files in the next post.

Thanks,
Silvano
bath_v1.6.nc
bath_v1.2.nc

Dr. Mike Mueller

unread,
Jul 17, 2021, 3:05:11 AM7/17/21
to pitlak...@googlegroups.com
Hi Silvano,

I check your bath.nc files. Both are identical. I can reproduce your display
problem. This is due to changes in matplotlib. They seem to have changed a
default value. I fixed it my in code but need a few days to make a new release.
If you cannot wait, you can fix it with these steps:

1.

from pitlakq.postprocessing import show_bath
show_bath.__file__

This will show the location of the file show_bath.py.

2.

Open show_bath.py and search for "pylab.bar"

3.

Change

pylab.bar(pos, height, self.dxs, bottom=bottom, color=color,
linewidth=self.linewidth, edgecolor=self.edgecolor)

to:

pylab.bar(pos, height, self.dxs, bottom=bottom, color=color,
linewidth=self.linewidth, edgecolor=self.edgecolor,
align='edge')
i.e. add

align='edge'

Rerun your Notebook and see if your plot looks good.

Best,
Mike

Am 14.07.21 um 22:41 schrieb Silvano Salvador:
> --
> You received this message because you are subscribed to the Google Groups
> "pitlakq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pitlakq-user...@googlegroups.com
> <mailto:pitlakq-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pitlakq-users/4c008d08-e35f-48f4-ae2d-c30c6d6fb717n%40googlegroups.com
> <https://groups.google.com/d/msgid/pitlakq-users/4c008d08-e35f-48f4-ae2d-c30c6d6fb717n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Silvano Salvador

unread,
Jul 20, 2021, 11:25:45 AM7/20/21
to pitlakq-users
Thanks very much Mike,

Cheers,
Silvano

Reply all
Reply to author
Forward
0 new messages