You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fig.set_window_properties(Vector({50,50}),Vector({500,500})); % set the window position and size
119
+
fig.set_axes(IntervalVector({{-15,5},{-10,10}})); % set the x-axis range to [-15,5] and y-axis range to [-10,10]
120
120
121
121
The same methods can be applied on the DefaultFigure object.
122
122
@@ -125,17 +125,17 @@ The same methods can be applied on the DefaultFigure object.
125
125
.. code-tab:: py
126
126
127
127
DefaultFigure.set_window_properties([50,50],[500,500]) # set the window position and size
128
-
DefaultFigure.set_axes(axis(0,[-10,10]), axis(1,[-10,10])) # set the x-axis index to 0 and its range to [-10,10], same for y with index 1
128
+
DefaultFigure.set_axes([[-15,5],[-10,10]]) # set the x-axis range to [-15,5] and y-axis range to [-10,10]
129
129
130
130
.. code-tab:: c++
131
131
132
132
DefaultFigure::set_window_properties({50,50},{500,500}); // set the window position and size
133
-
DefaultFigure::set_axes(axis(0,{-10,10}), axis(1,{-10,10})); // set the x-axis index to 0 and its range to [-10,10], same for y with index 1
133
+
DefaultFigure::set_axes({{-15,5},{-10,10}}); // set the x-axis range to [-15,5] and y-axis range to [-10,10]
134
134
135
135
.. code-tab:: matlab
136
136
137
137
DefaultFigure().set_window_properties(Vector({50,50}),Vector({500,500})); % set the window position and size
138
-
DefaultFigure().set_axes(axis(1,Interval(-10,10)), axis(2,Interval(-10,10))); % set the x-axis index to 0 and its range to [-10,10], same for y with index 1
138
+
DefaultFigure().set_axes(IntervalVector({{-15,5},{-10,10}})); % set the x-axis range to [-15,5] and y-axis range to [-10,10]
fig1.draw_box(IntervalVector({{-1,1},{-1,1}}),StyleProperties({Color().green(),Color().red(0.2)})); % drawing a green box with red opacity values inside
28
28
fig1.draw_circle(Vector({1,1}),0.5,Color({255,155,5})); % drawing a circle at (1,1) of radius 0.5 with a custom RGB color
29
29
fig1.draw_ring(Vector({1,1}),Interval(4,6),Color().red()); % drawing a ring at (1,1) of radius [4,6] with a predefined red color
0 commit comments