mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Python command for setting plot window size
This commit is contained in:
@@ -8,8 +8,10 @@ import rips
|
||||
# Load instance
|
||||
resinsight = rips.Instance.find()
|
||||
|
||||
# Set window size
|
||||
# Set window sizes
|
||||
resinsight.set_main_window_size(width=800, height=500)
|
||||
resinsight.set_plot_window_size(width=1000, height=1000)
|
||||
|
||||
|
||||
# Retrieve first case
|
||||
case = resinsight.project.cases()[0]
|
||||
|
||||
@@ -253,7 +253,19 @@ class Instance:
|
||||
width | Width in pixels | Integer
|
||||
height | Height in pixels | Integer
|
||||
"""
|
||||
return self.__execute_command(setMainWindowSize=Cmd.SetMainWindowSizeParams(
|
||||
return self.__execute_command(setMainWindowSize=Cmd.SetWindowSizeParams(
|
||||
width=width, height=height))
|
||||
|
||||
def set_plot_window_size(self, width, height):
|
||||
"""
|
||||
Set the plot window size in pixels
|
||||
|
||||
Parameter | Description | Type
|
||||
--------- | ---------------- | -----
|
||||
width | Width in pixels | Integer
|
||||
height | Height in pixels | Integer
|
||||
"""
|
||||
return self.__execute_command(setPlotWindowSize=Cmd.SetWindowSizeParams(
|
||||
width=width, height=height))
|
||||
|
||||
def major_version(self):
|
||||
|
||||
Reference in New Issue
Block a user