ComplexPlane Wrong Assign on Axis
- 主要言語
- Python
- スター
- 93.8k
- フォーク
- 7.7k
- PR マージ指標
- PR 指標を取得中
説明
### Position:
manimlib/mobject/coordinate_systems.py:171, cannot assign coordinate to the right axis
### Reproduce:
print(cp.c2p(-1,1)), it outputs [0,0,0], but the right answer is [-1, 1, 0]
### Temporal solution
revise the source code manually, and write coordinate value to the right axis
```python
def coords_to_point(self, *coords):
origin = self.x_axis.number_to_point(0)
result = np.array(origin)
# TODO: fix bug, wrong axis assign
dim = 0
for axis, coord in zip(self.get_axes(), coords):
mid = axis.number_to_point(coord) - origin
if dim == 0:
result += mid
else:
mid[dim] = mid[0]
mid[0] = origin[0]
result += mid
dim += 1
return result
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。