From 106aa0a7b54dbc26962ae65e9ae654f6af688975 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Fri, 10 Nov 2017 08:33:47 +0100 Subject: [PATCH] Refactored lbmpy.phasefield module --- plot2d.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plot2d.py b/plot2d.py index 0e90de4aa..f0e409be4 100644 --- a/plot2d.py +++ b/plot2d.py @@ -44,6 +44,13 @@ def scalarField(field, **kwargs): return res +def scalarFieldContour(field, **kwargs): + field = np.swapaxes(field, 0, 1) + res = contour(field, **kwargs) + axis('equal') + return res + + def multipleScalarFields(field, **kwargs): subPlots = field.shape[-1] for i in range(subPlots): -- GitLab