diff options
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() |