Model.xyplotcreateandsize#
- Model.xyplotcreateandsize(plot_name, like_plot, xmin, xmax, ymin, ymax)#
Creates an xy plot with the indicated position and dimensions.
- Parameters:
plot_name (hwString) – The name of the plot to be created.
like_plot (hwString) – The name of the plot from which the new plot obtains its default values.
xmin (double) – The leftmost boundary of the plot on the screen, expressed as a fraction of the window dimensions.
xmax (double) – The rightmost boundary of the plot on the screen.
ymin (double) – The top boundary of the plot on the screen.
ymax (double) – The bottom boundary of the plot on the screen.
Example#
Create a plot situated in the upper left corner of the screen , and span : math:1/3 of the width and : math:1/3 of the height of the screen#import hm import hm.entities as ent model = hm.Model() model.xyplotcreateandsize( plot_name="myplot", like_plot="", xmin=0.0, xmax=0.33333, ymin=0.0, ymax=0.33333 )