Skip to content

Instantly share code, notes, and snippets.

// let's say there is a Struct named `Person` and you want to sort vector of that structs by a float field.
use std::cmp::Ordering;
struct Person {
name: String,
height: u32
}
impl PartialEq for Person {
@kenta-s
kenta-s / matplotlib_basic_usage.md
Last active March 21, 2018 05:02
matplotlib.pyplotの基本的な使い方

Pyplotの基本的な使い方

ほとんどPyplot公式のチュートリアルそのままの内容なので英語に抵抗がなければ本家を読むことをおすすめします。

https://matplotlib.org/users/pyplot_tutorial.html

x軸

import matplotlib.pyplot as plt