3 ms·
The author mentioned on Twitter that it was useful for quickly plotting data in Rust, with this example: fn main() { let data = vec![(4, 3), (2, 8)
by andolanra 7y ago
The author mentioned on Twitter that it was useful for quickly plotting data in Rust, with this example:
fn main() {
let data = vec![(4, 3), (2, 8), (3, 1), (4, 0)];
python! {
import matplotlib.pyplot as plt
plt.plot('data)
plt.show()
}
}
Source: https://twitter.com/m_ou_se/status/1118255841961025539 https://twitter.com/m_ou_se/status/1118255841961025539
- m0zg 7y agoThis snippet right here might actually convince me to learn Rust. I work in C++ a lot, and deal with problems where visualization would be useful if it were easy. But because nothing in C++ is ever easy, I end up not doing it in a lot of cases, sometimes to my own detriment.