Commit 197e24c6 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_data_notebook bt5: Rename Base_savePlot to Base_saveImage and add kwargs...

erp5_data_notebook bt5: Rename Base_savePlot to Base_saveImage and add kwargs in parameters for the external function
parent d9479ed4
...@@ -193,7 +193,7 @@ def Base_displayImage(self, image_object=None): ...@@ -193,7 +193,7 @@ def Base_displayImage(self, image_object=None):
XXX: This function is intented to be called from Base_executeJupyter XXX: This function is intented to be called from Base_executeJupyter
or Jupyter frontend.That's why printing string and returning None. or Jupyter frontend.That's why printing string and returning None.
Also, it clears the plot for Matplotlib object after every call, so 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. calling Base_displayImage.
Parameters Parameters
...@@ -242,7 +242,7 @@ def Base_displayImage(self, image_object=None): ...@@ -242,7 +242,7 @@ def Base_displayImage(self, image_object=None):
print figdata print figdata
return None 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 Saves generated plots from matplotlib in ERP5 Image module
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_function</string> </key> <key> <string>_function</string> </key>
<value> <string>Base_savePlot</string> </value> <value> <string>Base_saveImage</string> </value>
</item> </item>
<item> <item>
<key> <string>_module</string> </key> <key> <string>_module</string> </key>
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Base_savePlot</string> </value> <value> <string>Base_saveImage</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Base_savePlot</string> </value> <value> <string>Base_saveImage</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment