D:\j_Iam_TEMP\_jh\jh_Center_weight.wxmx

from  F:\_j_arch_08112024\__j_TMRG\

kill(all);

G1:4;G2:1;G:G1+G2;

hx1:1;hy1:1;hx2:2.5;hy2:0.5;

mG1x:G1*hx1;mG2x:G2*hx2;mGx:mG1x+mG2x;

h_x:(mGx)/G;

mG1y:G1*hy1;mG2y:G2*hy2;mGy:mG1y+mG2y;

h_y:(mGy)/G;

# VARIANTS NUMBER 1 (+)

draw2d(xrange = [0,4.5],
yrange = [0,3.5],
   font      = "Arial",
            font_size = 30,
title="jh_Center_weight.wxmx  Var 1 +",
   grid = true,
   proportional_axes=xy,
line_width=4,color=black,
    fill_color = "#eeeeee",
rectangle([0,0],[2,2]),
    fill_color = "#fefefe",
    rectangle([2,0],[3,1]),
    points_joined = true,
    point_size=0.1,
    line_width=1.3,
    line_type = solid,
  points([[0,1],[3,1]]), 
    points([[1,0],[1,2]]),
    points([[2,0],[2,2]]),
    label(["G1=+4",1.5,1.7]),
    label(["G2=+1",2.5,0.7]),
    color = black,
    label(["G1:4;G2:1;G:G1+G2;",2.2,3.4]),
    label(["hx1:1;hy1:1;hx2:2.5;hy2:0.5;",2.2,3.2]),
    label(["mG1x:G1*hx1;mG2x:G2*hx2;mGx:mG1x+mG2x;",2.2,3]),
    label(["h_x:(mGx)/G;",2.2,2.8]),
    label(["mG1y:G1*hy1;mG2y:G2*hy2;mGy:mG1y+mG2y;",2.2,2.6]),
    label(["h_y:(mGy)/G;",2.2,2.4]),
    points_joined = true,
    color=black,point_type = filled_circle,point_size = 1.5,
points([1,1.3,2.5],[1,0.9,0.5]),
    color=red,points_joined = false,
    points([0,1.3],[0,0.9]),
/*    color="#0e406e",
    points([1.3],[0.9]),  */
    label(["(1.3,0.9)",0.9,0.7]),
        points_joined = true,
    points([0,1.3],[0.9,0.9]),
    points([1.3,1.3],[0,0.9]),
    color="#0e406e",
     line_width=1,
    point_size=1.4,
    line_type=dashes,
    points([0,2.5],[0.5,0.5]),
    points([2.5,2.5],[0,0.5]),
    points([1,1],[0,1]),
    points([0,1],[1,1]),
       /*  GPL */
font      = "Arial",
            font_size = 16,
   color = "#0e406e",
label_orientation = 'vertical,
label(["www.k123.org.ua ",4,1.3]),
   label(["Kopanytsia Y (c)  2025",4.3,1.3])
    )$

D:\j_Iam_TEMP\_jh\jh_Center_weight_1.svg

# VARIANTS NUMBER 2 (-)

G1:6;G2:1;hx1:1.5;hx2:2.5;G:G1-G2;hy1:1;hy2:1.5;

h_x_:(G1*hx1-G2*hx2)/G;

h_y:(G1*hy1-G2*hy2)/G;

draw2d(xrange = [0,4.5],
yrange = [0,3.5],
   font      = "Arial",
            font_size = 30,
title="jh_Center_weight.wxmx  Var 2 -",
   grid = true,
   proportional_axes=xy,
line_width=4,color=black,
    fill_color = "#eeeeee",
rectangle([0,0],[3,2]),
    fill_color = "#fefefe",
    rectangle([2,1],[3,2]),
    points_joined = true,
    point_size=0.1,
    line_width=1.3,
    line_type = solid,
  points([[0,1],[3,1]]), 
    points([[1,0],[1,2]]),
    points([[2,0],[2,2]]),
    label(["G1=+6",1.5,1.7]),
    label(["G2=-1",2.5,1.7]),
    color = black,
    label(["G1:6;G2:1;hx1:1.5;hx2:2.5;",2.5,3.3]),
    label(["G:G1-G2;hy1:1;hy2:1.5;",2.5,3]),
    label(["h_x_:(G1*hx1-G2*hx2)/G;",2.5,2.7]),
    label(["h_y:(G1*hy1-G2*hy2)/G;;",2.5,2.4]),
    points_joined = true,
    color=black,point_type = filled_circle,point_size = 1.5,
points([1.5,1.3,2.5],[1,0.9,1.5]),
    color=red,points_joined = false,
    points([0,1.3],[0,0.9]),
    color="#0e406e",
    points([1.3],[0.9]),
    label(["(1.3,0.9)",0.9,0.7]),
    points_joined = true,
    points([0,1.3],[0.9,0.9]),
    points([1.3,1.3],[0,0.9]),
    color=red,
     line_width=1,
    point_size=1.4,
    line_type=dashes,
    points([0,2.5],[1.5,1.5]),
    points([2.5,2.5],[0,1.5]),
    points([1.5,1.5],[0,1]),
     points([0,1.5],[1,1]),
  /*  GPL */
font      = "Arial",
            font_size = 16,
   color = "#0e406e",
label_orientation = 'vertical,
label(["www.k123.org.ua ",4,1.3]),
   label(["Kopanytsia Y (c)  2025",4.3,1.3])
    )$;

D:\j_Iam_TEMP\_jh\jh_Center_weight_2.svg