Fix problem with black background in snapshot export

This commit is contained in:
Gaute Lindkvist
2020-01-08 14:52:28 +01:00
parent 3fc7378b8f
commit a58d854030
11 changed files with 44 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ class Plot(PdmObject):
Returns:
A list of files exported
"""
"""
res = self._execute_command(exportWellLogPlotData=Cmd.ExportWellLogPlotDataRequest(exportFormat='LAS',
viewId=self.view_id,
exportFolder=export_folder,

View File

@@ -157,7 +157,9 @@ class Project(PdmObject):
pdm_objects = self.descendants("RimPlotWindow")
plot_list = []
for pdm_object in pdm_objects:
plot_list.append(Plot(pdm_object))
plot = Plot(pdm_object)
if plot.view_id != -1:
plot_list.append(plot)
return plot_list
def plot(self, view_id):