diff --git a/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py b/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py index fd8d4ba465988c5235a9853e18e7e5d55d7e03ec..0e3c7fc2c699ceec6534a043a512ff809d8184d3 100644 --- a/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py +++ b/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py @@ -193,7 +193,7 @@ def Base_displayImage(self, image_object=None): XXX: This function is intented to be called from Base_executeJupyter or Jupyter frontend.That's why printing string and returning None. Also, it clears the plot for Matplotlib object after every call, so - in case of saving the plot, its essential to call Base_savePlot before + in case of saving the plot, its essential to call Base_saveImage before calling Base_displayImage. Parameters @@ -242,7 +242,7 @@ def Base_displayImage(self, image_object=None): print figdata return None -def Base_savePlot(self, plot=None, reference=None): +def Base_saveImage(self, plot=None, reference=None, **kw): """ Saves generated plots from matplotlib in ERP5 Image module diff --git a/bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_savePlot.xml b/bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_saveImage.xml similarity index 78% rename from bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_savePlot.xml rename to bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_saveImage.xml index 3ab04b3b434c98622b191909e9035eaac65ace6a..5ce69e3e13c2ad3045026c03486d7f8dad84f553 100644 --- a/bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_savePlot.xml +++ b/bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_saveImage.xml @@ -8,7 +8,7 @@ <dictionary> <item> <key> <string>_function</string> </key> - <value> <string>Base_savePlot</string> </value> + <value> <string>Base_saveImage</string> </value> </item> <item> <key> <string>_module</string> </key> @@ -16,11 +16,11 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>Base_savePlot</string> </value> + <value> <string>Base_saveImage</string> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>Base_savePlot</string> </value> + <value> <string>Base_saveImage</string> </value> </item> </dictionary> </pickle>