Skip to content

Commit

Permalink
Merge pull request #294 from slayoo/dev
Browse files Browse the repository at this point in the history
yet one more README update
  • Loading branch information
slayoo authored Oct 30, 2021
2 parents 0a3c4f0 + 68ed54a commit 3b1ccd5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,10 @@ Now let's plot the results using `matplotlib` roughly as in Fig. 5 in [Arab

```Python
def plot(psi, zlim, norm=None):
xi, yi = np.indices(psi.shape)
fig, ax = pyplot.subplots(subplot_kw={"projection": "3d"})
pyplot.gca().plot_wireframe(
*np.indices((nx, ny)),
xi+.5, yi+.5,
psi, color='red', linewidth=.5
)
ax.set_zlim(zlim)
Expand All @@ -493,8 +494,10 @@ def plot(psi, zlim, norm=None):
axis.pane.set_alpha(1)
ax.grid(False)
ax.set_zticks([])
ax.set_xlabel('x/dx')
ax.set_ylabel('y/dy')
ax.set_proj_type('ortho')
cnt = ax.contourf(xi, yi, psi, zdir='z', offset=-1, norm=norm)
cnt = ax.contourf(xi+.5, yi+.5, psi, zdir='z', offset=-1, norm=norm)
cbar = pyplot.colorbar(cnt, pad=.1, aspect=10, fraction=.04)
return cbar.norm

Expand Down Expand Up @@ -558,7 +561,8 @@ the license of the contributed code must be compatible with GPL v3.
Developing the code, we follow [The Way of Python](https://www.python.org/dev/peps/pep-0020/) and
the [KISS principle](https://en.wikipedia.org/wiki/KISS_principle).
The codebase has greatly benefited from [PyCharm code inspections](https://www.jetbrains.com/help/pycharm/code-inspection.html)
and [Pylint](https://pylint.org) code analysis (which constitutes one of the CI workflows).
and [Pylint](https://pylint.org) code analysis (Pylint checks are part of the
CI workflows).

Issues regarding any incorrect, unintuitive or undocumented bahaviour of
PyMPDATA are best to be reported on the [GitHub issue tracker](https://github.com/atmos-cloud-sim-uj/PyMPDATA/issues/new).
Expand Down

0 comments on commit 3b1ccd5

Please sign in to comment.