How to draw a line graph in a 2D oblique coordinate system?

3 ビュー (過去 30 日間)
xd
xd 2024 年 6 月 2 日
編集済み: xd 2025 年 2 月 9 日
请教,如何画2D斜坐标系的线图?
Please tell me how to draw a line drawing in a 2D oblique coordinate system?
I need coordinate axes X&Y is drown in oblique mode and/or with parallelogram grid。

回答 (1 件)

halleyhit
halleyhit 2024 年 6 月 19 日
編集済み: Torsten 2024 年 7 月 28 日
酱紫?
Jiang Zi?
i=sqrt(-1);
x_v=1;
y_v=(1+i)/sqrt(2);%定义y轴的方向
x=1:10;
y=1:10;
data=x*x_v+y*y_v;%把原来的数据x-y变到新坐标系
x=0:10;
y=zeros(1,11);
xaxes=x*x_v+y*y_v;%把原来的x轴变到新坐标系
x=zeros(1,11);
y=0:10;
yaxes=x*x_v+y*y_v;%把原来的y轴变到新坐标系
plot(real(data),imag(data),'blue')
hold on
plot(real(xaxes),imag(xaxes),'red')
plot(real(yaxes),imag(yaxes),'red')
hold off
  1 件のコメント
xd
xd 2024 年 7 月 28 日
編集済み: xd 2025 年 2 月 9 日
这还是直角坐标系中画线。不是画斜坐标系。
This is still a line drawn in the Cartesian coordinate system. It is not an oblique coordinate system.
I need coordinate axes X&Y is drown in oblique mode and/or with parallelogram grid。

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGeometric Geodesy についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!