Skip to content

WenqiJiang/matplotlib-templates

Repository files navigation

matplotlib-templates

Some templates for experimental plots.

Enviornment

python 3.7

Using default colors of a style

import matplotlib
import matplotlib.pyplot as plt
import numpy as np

plt.style.use('ggplot')

default_colors = []
for i, color in enumerate(plt.rcParams['axes.prop_cycle']):
    default_colors.append(color["color"])
    print(color["color"], type(color["color"]))

print(default_colors[0], type(default_colors[0]))

""" e.g.
rects_CPU_47  = ax0.bar(x - width/2, latency_CPU_total_47, width, color=default_colors[0])
"""

default_colors_fivethirtyeight

default_colors_ggplot

default_colors_grayscale

default_colors_seaborn-deep

default_colors_seaborn-pastel

default_colors_seaborn

Black & White Plot Series

plot

plot_black_white

plot_black_white

Other Plot Styles

bar_plot_with_error_bar

bar_and_plot

bar_and_plot

bar_and_plot

plot

3 variables: x, y, curve

plot

plot_fill

3 variables: x, y, curve

plot

bar_horizontal

bar_horizontal

bar_horizontal_percentage

bar_horizontal_percentage

grouped_bar

grouped_bar

grouped_bar_with_error_bar

grouped_bar_with_error_bar

stacked_grouped_bar

grouped_bar

violin_plot

violin_plot_single

violin_plot_multiple

violin_plot_multi_class

About

Some templates for experimental plots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages