Skip to content

Commit 1eef498

Browse files
committed
add default color cycle to mimic SM
1 parent 7d076fd commit 1eef498

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/smplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Load style
3030
plt.style.use(os.path.join(pkg_path, 'smplot.mplstyle'))
3131

32-
def set_style(usetex=False, fontsize=15, fontweight='normal', figsize=(6, 6), dpi=100):
32+
def set_style(usetex=False, fontsize=15, fontweight='normal', figsize=(6, 6), dpi=120):
3333
'''
3434
Set matplotlib parameters for SuperMongo style.
3535

src/smplotlib/smplot.mplstyle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,27 @@
108108
## ***************************************************************************
109109
## See https://matplotlib.org/api/artist_api.html#module-matplotlib.lines
110110
## for more information on line properties.
111-
#lines.linewidth: 1.5 # line width in points
111+
lines.linewidth: 1.2 # line width in points
112112
#lines.linestyle: - # solid line
113113
lines.color: black # has no affect on plot(); see axes.prop_cycle
114114
#lines.marker: None # the default marker
115115
#lines.markerfacecolor: auto # the default marker face color
116116
#lines.markeredgecolor: auto # the default marker edge color
117117
#lines.markeredgewidth: 1.0 # the line width around the marker symbol
118-
#lines.markersize: 6 # marker size, in points
118+
lines.markersize: 8 # marker size, in points
119119
#lines.dash_joinstyle: round # {miter, round, bevel}
120120
#lines.dash_capstyle: butt # {butt, round, projecting}
121121
#lines.solid_joinstyle: round # {miter, round, bevel}
122122
#lines.solid_capstyle: projecting # {butt, round, projecting}
123-
#lines.antialiased: True # render lines in antialiased (no jaggies)
123+
lines.antialiased: True # render lines in antialiased (no jaggies)
124124

125125
## The three standard dash patterns. These are scaled by the linewidth.
126126
lines.dashed_pattern: 6.5, 3
127-
#lines.dashdot_pattern: 6.4, 1.6, 1, 1.6
127+
lines.dashdot_pattern: 6.5, 3, 2, 3
128128
lines.dotted_pattern: 2, 4
129129
#lines.scale_dashes: True
130130

131-
#markers.fillstyle: full # {full, left, right, bottom, top, none}
131+
markers.fillstyle: none # {full, left, right, bottom, top, none}
132132

133133
#pcolor.shading: auto
134134
#pcolormesh.snap: True # Whether to snap the mesh to pixel boundaries. This is
@@ -404,7 +404,8 @@ axes.formatter.use_mathtext: True # When True, use mathtext for scientific
404404

405405
#axes.unicode_minus: True # use Unicode for the minus symbol rather than hyphen. See
406406
# https://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes
407-
#axes.prop_cycle: cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])
407+
axes.prop_cycle: cycler('color', ['k', 'e31c1c', '4200f7', '328b22', '71fcff', 'f100ff', '6bff42'])
408+
# r,g,b,c,m,lightgreen
408409
# color cycle for plot lines as list of string color specs:
409410
# single letter, long name, or web-style hex
410411
# As opposed to all other parameters in this file, the color
@@ -584,7 +585,7 @@ figure.dpi: 100 # figure dots per inch
584585
## ***************************************************************************
585586
#image.aspect: equal # {equal, auto} or a number
586587
image.interpolation: none # see help(imshow) for options
587-
image.cmap: turbo # A colormap name, gray etc...
588+
image.cmap: jet # A colormap name, gray etc...
588589
image.lut: 256 # the size of the colormap lookup table
589590
image.origin: lower # {lower, upper}
590591
#image.resample: True
@@ -607,20 +608,20 @@ image.origin: lower # {lower, upper}
607608
## ***************************************************************************
608609
## * ERRORBAR PLOTS *
609610
## ***************************************************************************
610-
errorbar.capsize: 3 # length of end cap on error bars in pixels
611+
errorbar.capsize: 2 # length of end cap on error bars in pixels
611612

612613

613614
## ***************************************************************************
614615
## * HISTOGRAM PLOTS *
615616
## ***************************************************************************
616-
#hist.bins: 10 # The default number of histogram bins or 'auto'.
617+
hist.bins: 'auto' # The default number of histogram bins or 'auto'.
617618

618619

619620
## ***************************************************************************
620621
## * SCATTER PLOTS *
621622
## ***************************************************************************
622623
#scatter.marker: o # The default marker type for scatter plots.
623-
scatter.edgecolors: black # The default edge colors for scatter plots.
624+
#scatter.edgecolors: black # The default edge colors for scatter plots.
624625

625626

626627
## ***************************************************************************
@@ -674,7 +675,7 @@ savefig.bbox: tight # {tight, standard}
674675
# 'tight' is incompatible with pipe-based animation
675676
# backends (e.g. 'ffmpeg') but will work with those
676677
# based on temporary files (e.g. 'ffmpeg_file')
677-
#savefig.pad_inches: 0.1 # Padding to be used when bbox is set to 'tight'
678+
#savefig.pad_inches: '0.1' # Padding to be used when bbox is set to 'tight'
678679
#savefig.directory: ~ # default directory in savefig dialog box,
679680
# leave empty to always use current working directory
680681
#savefig.transparent: False # setting that controls whether figures are saved with a

0 commit comments

Comments
 (0)