Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68209cf

Browse files
committed
Getting some more rcparams into the classic mode
1 parent e25ed78 commit 68209cf

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ lines.solid_joinstyle : round # miter|round|bevel
1616
lines.solid_capstyle : projecting # butt|round|projecting
1717
lines.antialiased : True # render lines in antialised (no jaggies)
1818

19+
### Marker props
20+
markers.fillstyle: full
21+
1922
### PATCHES
2023
# Patches are graphical objects that fill 2D space, like polygons or
2124
# circles. See
@@ -109,6 +112,7 @@ text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURE
109112
# beware of package collisions: color, geometry, graphicx,
110113
# type1cm, textcomp. Adobe Postscript (PSSNFS) font packages
111114
# may also be loaded, depending on your font settings
115+
text.latex.preview : False
112116

113117
text.dvipnghack : None # some versions of dvipng don't handle alpha
114118
# channel properly. Use True to correct
@@ -165,6 +169,8 @@ axes.facecolor : w # axes background color
165169
axes.edgecolor : k # axes edge color
166170
axes.linewidth : 1.0 # edge linewidth
167171
axes.grid : False # display grid or not
172+
axes.grid.which : major
173+
axes.grid.axis : both
168174
axes.titlesize : large # fontsize of the axes title
169175
axes.titleweight : normal # font weight for axes title
170176
axes.labelsize : medium # fontsize of the x any y labels
@@ -198,14 +204,18 @@ axes.color_cycle : b, g, r, c, m, y, k # color cycle for plot lines
198204
# web-style hex
199205
axes.xmargin : 0 # x margin. See `axes.Axes.margins`
200206
axes.ymargin : 0 # y margin See `axes.Axes.margins`
201-
207+
axes.spines.bottom : True
208+
axes.spines.left : True
209+
axes.spines.right : True
210+
axes.spines.top : True
202211
polaraxes.grid : True # display grid on polar axes
203212
axes3d.grid : True # display grid on 3d axes
204213

205214
### TICKS
206215
# see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick
207216
xtick.major.size : 4 # major tick size in points
208217
xtick.minor.size : 2 # minor tick size in points
218+
xtick.minor.visible : False
209219
xtick.major.width : 0.5 # major tick width in points
210220
xtick.minor.width : 0.5 # minor tick width in points
211221
xtick.major.pad : 4 # distance to major tick label in points
@@ -216,6 +226,7 @@ xtick.direction : in # direction: in, out, or inout
216226

217227
ytick.major.size : 4 # major tick size in points
218228
ytick.minor.size : 2 # minor tick size in points
229+
ytick.minor.visible : False
219230
ytick.major.width : 0.5 # major tick width in points
220231
ytick.minor.width : 0.5 # minor tick width in points
221232
ytick.major.pad : 4 # distance to major tick label in points
@@ -269,6 +280,7 @@ figure.autolayout : False # When True, automatically adjust subplot
269280
figure.max_open_warning : 20 # The maximum number of figures to open through
270281
# the pyplot interface before emitting a warning.
271282
# If less than one this feature is disabled.
283+
figure.frameon : True
272284

273285
# The figure subplot parameters. All dimensions are a fraction of the
274286
# figure width or height
@@ -292,6 +304,43 @@ image.composite_image : True
292304
contour.negative_linestyle : dashed # dashed | solid
293305
contour.corner_mask : True
294306

307+
# errorbar props
308+
errorbar.capsize: 3
309+
310+
### Boxplots
311+
boxplot.bootstrap: None
312+
boxplot.boxprops.color: b
313+
boxplot.boxprops.linestyle: -
314+
boxplot.boxprops.linewidth: 1.0
315+
boxplot.capprops.color: k
316+
boxplot.capprops.linestyle: -
317+
boxplot.capprops.linewidth: 1.0
318+
boxplot.flierprops.color: b
319+
boxplot.flierprops.linestyle: -
320+
boxplot.flierprops.linewidth: 1.0
321+
boxplot.flierprops.marker: +
322+
boxplot.flierprops.markeredgecolor: k
323+
boxplot.flierprops.markerfacecolor: b
324+
boxplot.flierprops.markersize: 6.0
325+
boxplot.meanline: False
326+
boxplot.meanprops.color: r
327+
boxplot.meanprops.linestyle: -
328+
boxplot.meanprops.linewidth: 1.0
329+
boxplot.medianprops.color: r
330+
boxplot.medianprops.linestyle: -
331+
boxplot.medianprops.linewidth: 1.0
332+
boxplot.notch: False
333+
boxplot.patchartist: False
334+
boxplot.showbox: True
335+
boxplot.showcaps: True
336+
boxplot.showfliers: True
337+
boxplot.showmeans: False
338+
boxplot.vertical: True
339+
boxplot.whiskerprops.color: b
340+
boxplot.whiskerprops.linestyle: --
341+
boxplot.whiskerprops.linewidth: 1.0
342+
boxplot.whiskers: 1.5
343+
295344
### Agg rendering
296345
### Warning: experimental, 2008/10/10
297346
agg.path.chunksize : 0 # 0 to disable; values in the range
@@ -306,7 +355,7 @@ agg.path.chunksize : 0 # 0 to disable; values in the range
306355
path.simplify : True # When True, simplify paths by removing "invisible"
307356
# points to reduce file size and increase rendering
308357
# speed
309-
path.simplify_threshold : 0.111111111111
358+
path.simplify_threshold : 0.1111111111111111
310359
# The threshold of similarity below which
311360
# vertices will be removed in the simplification
312361
# process
@@ -320,6 +369,7 @@ path.sketch : None # May be none, or a 3-tuple of the form (scale, length,
320369
# is the length of the wiggle along the line (in
321370
# pixels). *randomness* is the factor by which
322371
# the length is randomly scaled.
372+
path.effects :
323373

324374
# the default savefig params can be different from the display params
325375
# e.g., you may want a higher resolution, or to make the figure
@@ -339,6 +389,10 @@ savefig.directory : ~ # default directory in savefig dialog box,
339389
# leave empty to always use current working directory
340390
savefig.transparent : False # setting that controls whether figures are saved with a
341391
# transparent background by default
392+
savefig.frameon : True
393+
savefig.orientation : portrait
394+
395+
nbagg.transparent: True
342396

343397
# tk backend params
344398
tk.window_focus : False # Maintain shell focus for TkAgg
@@ -413,6 +467,8 @@ keymap.yscale : l # toggle scaling of y-axes ('log'/'linear')
413467
keymap.xscale : k, L # toggle scaling of x-axes ('log'/'linear')
414468
keymap.all_axes : a # enable all axes
415469

470+
toolbar: toolbar2
471+
416472
###ANIMATION settings
417473
animation.writer : ffmpeg # MovieWriter 'backend' to use
418474
animation.codec : mpeg4 # Codec to use for writing movie
@@ -432,3 +488,5 @@ animation.mencoder_args: # Additional arguments to pass to mencoder
432488
animation.convert_path: convert # Path to ImageMagick's convert binary.
433489
# On Windows use the full path since convert
434490
# is also the name of a system tool.
491+
animation.convert_args:
492+
animation.html: none

0 commit comments

Comments
 (0)