MCPcopy Create free account
hub / github.com/holoviz/hvplot / settings

Method settings

hvplot/ui.py:852–883  ·  view source on GitHub ↗

Return a dictionary of the customized settings. This dictionary can be reused as an unpacked input to the explorer or a call to the `.hvplot` accessor. .. code-block:: hvplot.explorer(df, **settings) df.hvplot(**settings) Returns ----

(self)

Source from the content-addressed store, hash-verified

850 _hv.save(self._hvplot, filename, **kwargs)
851
852 def settings(self):
853 """Return a dictionary of the customized settings.
854
855 This dictionary can be reused as an unpacked input to the explorer or
856 a call to the `.hvplot` accessor.
857
858 .. code-block::
859
860 hvplot.explorer(df, **settings)
861 df.hvplot(**settings)
862
863 Returns
864 -------
865 dict
866 Customized settings.
867 """
868 settings = {}
869 for controller in self._controllers.values():
870 params = set(controller.param) - {'name', 'explorer'}
871 for p in params:
872 value = getattr(controller, p)
873 if value != controller.param[p].default:
874 settings[p] = value
875 for p in self._controls.parameters:
876 value = getattr(self, p)
877 if value != self.param[p].default or p == 'kind':
878 settings[p] = value
879 if 'y_multi' in settings:
880 settings['y'] = settings.pop('y_multi')
881 settings.pop('opts', None)
882 settings = {k: v for k, v in sorted(list(settings.items()))}
883 return settings
884
885
886class hvGeomExplorer(hvPlotExplorer):

Callers 3

plot_codeMethod · 0.95
test_explorer_settingsFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_explorer_settingsFunction · 0.64