Replies: 1 comment 1 reply
-
|
It seems I need to implement a method to convert the coordinates to vertices, then add the corresponding triangles to The next issue is that this naive implementation would show a coarse image and I have to perform the interpolation by myself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Recently I came up with an idea that using

eguito simulate STM images, which is based on likematplotlib.pcolormesh, and the example is in the following:The problem is that, though
eguiprovidesColorImageto show the 2D data, the STM may contains shape other than rectangles (such as parallelogram). This feature of STM image requireseguito show each point with corresponding coordinates.Therefore, the data structure should consist of two parts and be designed as below:
[[f64; n]; m])[[[f64; 2]; n]; m])Color32Then apply the function and obtain the image.
My question is which function should I use to do the job or to implement an alternative to
pcolormesh?I browsed the documentation and found
Mesh::colored_vertexmay be an appropriate one but failed to build a minimal working example.Could you please give some advice?
Much appreciation in advance.
Beta Was this translation helpful? Give feedback.
All reactions