diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2019-05-28 08:16:16 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2019-05-28 08:16:16 +0200 |
commit | a763e5d1b3921b3194f3d4e94ab9de3fbe08bbdd (patch) | |
tree | 45d462ed36a5522e9f3b9fde6c4ec4918c2ae8e3 /silx/sx/_plot3d.py | |
parent | cebdc9244c019224846cb8d2668080fe386a6adc (diff) |
New upstream version 0.10.1+dfsg
Diffstat (limited to 'silx/sx/_plot3d.py')
-rw-r--r-- | silx/sx/_plot3d.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/silx/sx/_plot3d.py b/silx/sx/_plot3d.py index 42ebf80..da4bad4 100644 --- a/silx/sx/_plot3d.py +++ b/silx/sx/_plot3d.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2018 European Synchrotron Radiation Facility +# Copyright (c) 2018-2019 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -177,7 +177,7 @@ def points3d(x, y, z=None, colormap='viridis', vmin=None, vmax=None, - mode='o'): + mode=None): """ Plot a 3D scatter plot in a :class:`~silx.gui.plot3d.SceneWindow.SceneWindow` widget. @@ -239,7 +239,8 @@ def points3d(x, y, z=None, colormap = Colormap(name=colormap, vmin=vmin, vmax=vmax) scatter.setColormap(colormap) - scatter.setSymbol(mode) + if mode is not None: + scatter.setSymbol(mode) window.show() |