Skip to content

Instantly share code, notes, and snippets.

@Ethan00Si
Ethan00Si / draw.py
Created May 10, 2021 12:21
adjust order of legend using matplotlib.pyplot
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
data_list = []
w_list = [3,4,2,1,5]
for i in w_list:
x = [x for x in range(0,100,10)]