그래프 작성기 사용자 지정: 원이 좌표와 일치하지 않음여러분 모두에게,
그래프 빌더에서 사용자 정의 그래프를 통해 원을 그리려고 합니다.
그리고 원이 데이터 포인트와 일치하지 않는다는 것을 확인하십시오.
캔버스에서 원이 데이터 포인트와 정확히 같은 위치에 오도록 하려면 어떻게 해야 할까요?
y에는 괜찮은데 x에는 안 되는 이유는 무엇일까요? 다른 방법은 없을까요?
감사합니다. 안녕히 계세요, 게오르크 드림
Georg_0-1789394255151.pngGeorg_0-1789394255151.pngGeorg_0-1789394255151.png
New Table( "Circle Data",
Add Rows( 72 ),
Compress File When Saved( 1 ),
New Script(
"y coord vs. x coord", JSL Quote(Graph Builder(show control panel(0),
Size( 540, 540 ),
Variables( X( :x coord ), Y( :y coord ) ),
Elements( Points( X, Y, Legend( 4 ) ), Smoother( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", FrameBox,
{Add Graphics Script( 2, Description( "" ), Circle( {0, 0}, 1 ) )}
)
)
);
) ,
As String( 1 )
),
New Column( "Degree", Numeric, "Continuous", Formula( Row() * 5 ), Set Display Width( 74 ) ),
New Column( "x coord", Numeric, "Continuous", Formula( Cosine( :Degree * (Pi() / 180) ) ), Set Selected, Set Display Width( 123 ) ),
New Column( "y coord", Numeric, "Continuous", Formula( Sine( :Degree * (Pi() / 180) ) ), Set Display Width( 123 ) )
);
제목: 그래프 작성기 사용자 지정: 원이 좌표와 일치하지 않음"원을 어떻게 그리나요?" 라는 글의 3/4 지점에서 이 내용을 다루고 있습니다. 크기/배율->크기를 등각 투영으로 바꾸는 옵션을 사용해 보세요.
제목: 그래프 작성기 사용자 지정: 원이 좌표와 일치하지 않음크기를 등각 투영으로 바꾸면 이 문제가 해결될 것입니다.
Names Default To Here(1);
dt = New Table( "Circle Data",
Add Rows( 72 ),
Compress File When Saved( 1 ),
New Script(
"y coord vs. x coord", JSL Quote(Graph Builder(show control panel(0),
Size( 540, 540 ),
Variables( X( :x coord ), Y( :y coord ) ),
Elements( Points( X, Y, Legend( 4 ) ), Smoother( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", FrameBox,
{Add Graphics Script( 2, Description( "" ), Circle( {0, 0}, 1 ) )}
)
)
);
) ,
As String( 1 )
),
New Column( "Degree", Numeric, "Continuous", Formula( Row() * 5 ), Set Display Width( 74 ) ),
New Column( "x coord", Numeric, "Continuous", Formula( Cosine( :Degree * (Pi() / 180) ) ), Set Selected, Set Display Width( 123 ) ),
New Column( "y coord", Numeric, "Continuous", Formula( Sine( :Degree * (Pi() / 180) ) ), Set Display Width( 123 ) )
);
gb = dt << Run Script("y coord vs. x coord");
framebox = Report(gb)[FrameBox(1)];
framebox << Size To Isometric;