├── .gitignore ├── README.rst ├── rc ├── default ├── ggplotish ├── probpro └── rlike ├── screenshots ├── default.png ├── ggplotish.png ├── probpro.png └── rlike.png └── showstyle.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.py[cod] 2 | 3 | # C extensions 4 | *.so 5 | 6 | # Packages 7 | *.egg 8 | *.egg-info 9 | dist 10 | build 11 | eggs 12 | parts 13 | bin 14 | var 15 | sdist 16 | develop-eggs 17 | .installed.cfg 18 | lib 19 | lib64 20 | 21 | # Installer logs 22 | pip-log.txt 23 | 24 | # Unit test / coverage reports 25 | .coverage 26 | .tox 27 | nosetests.xml 28 | 29 | # Translations 30 | *.mo 31 | 32 | # Mr Developer 33 | .mr.developer.cfg 34 | .project 35 | .pydevproject 36 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | `matplotlibrc` demos 2 | ==================== 3 | 4 | Some -- but not all -- characteristics of matplotlib plots can be configured 5 | via the matplotlib.rcParams dictionary. 6 | 7 | Add a new matplotlibrc file to the `rc` dir, say `myrc`, and use:: 8 | 9 | $ ./showstyle.py myrc 10 | 11 | See the `showstyle.py` file for usage -- for example, note how `hist` and 12 | `scatter` grab the first color in `rcParams['axes.color_cycle']` since there's 13 | no way to set the default scatter or hist color via rcParams. 14 | 15 | See also 16 | -------- 17 | * https://github.com/olgabot/prettyplotlib 18 | * https://github.com/mwaskom/seaborn 19 | 20 | Screenshots 21 | ----------- 22 | 23 | Some included styles are: 24 | 25 | - default 26 | 27 | .. image:: screenshots/default.png 28 | 29 | - ggplotish 30 | 31 | .. image:: screenshots/ggplotish.png 32 | 33 | - probpro 34 | 35 | .. image:: screenshots/probpro.png 36 | 37 | - rlike 38 | 39 | .. image:: screenshots/rlike.png 40 | 41 | -------------------------------------------------------------------------------- /rc/default: -------------------------------------------------------------------------------- 1 | ### MATPLOTLIBRC FORMAT 2 | 3 | # This is a sample matplotlib configuration file - you can find a copy 4 | # of it on your system in 5 | # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it 6 | # there, please note that it will be overwritten in your next install. 7 | # If you want to keep a permanent local copy that will not be 8 | # overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux 9 | # like systems) and C:\Documents and Settings\yourname\.matplotlib 10 | # (win32 systems). 11 | # 12 | # This file is best viewed in a editor which supports python mode 13 | # syntax highlighting. Blank lines, or lines starting with a comment 14 | # symbol, are ignored, as are trailing comments. Other lines must 15 | # have the format 16 | # key : val # optional comment 17 | # 18 | # Colors: for the color values below, you can either use - a 19 | # matplotlib color string, such as r, k, or b - an rgb tuple, such as 20 | # (1.0, 0.5, 0.0) - a hex string, such as ff00ff or #ff00ff - a scalar 21 | # grayscale intensity such as 0.75 - a legal html color name, eg red, 22 | # blue, darkslategray 23 | 24 | #### CONFIGURATION BEGINS HERE 25 | 26 | # the default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo 27 | # CocoaAgg FltkAgg MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS 28 | # PDF SVG Template 29 | # You can also deploy your own backend outside of matplotlib by 30 | # referring to the module name (which must be in the PYTHONPATH) as 31 | # 'module://my_backend' 32 | backend : GTKAgg 33 | 34 | # If you are using the Qt4Agg backend, you can choose here 35 | # to use the PyQt4 bindings or the newer PySide bindings to 36 | # the underlying Qt4 toolkit. 37 | #backend.qt4 : PyQt4 # PyQt4 | PySide 38 | 39 | # Note that this can be overridden by the environment variable 40 | # QT_API used by Enthought Tool Suite (ETS); valid values are 41 | # "pyqt" and "pyside". The "pyqt" setting has the side effect of 42 | # forcing the use of Version 2 API for QString and QVariant. 43 | 44 | # if you are running pyplot inside a GUI and your backend choice 45 | # conflicts, we will automatically try to find a compatible one for 46 | # you if backend_fallback is True 47 | #backend_fallback: True 48 | 49 | #interactive : False 50 | #toolbar : toolbar2 # None | toolbar2 ("classic" is deprecated) 51 | #timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris 52 | 53 | # Where your matplotlib data lives if you installed to a non-default 54 | # location. This is where the matplotlib fonts, bitmaps, etc reside 55 | #datapath : /home/jdhunter/mpldata 56 | 57 | 58 | ### LINES 59 | # See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more 60 | # information on line properties. 61 | #lines.linewidth : 1.0 # line width in points 62 | #lines.linestyle : - # solid line 63 | #lines.color : blue # has no affect on plot(); see axes.color_cycle 64 | #lines.marker : None # the default marker 65 | #lines.markeredgewidth : 0.5 # the line width around the marker symbol 66 | #lines.markersize : 6 # markersize, in points 67 | #lines.dash_joinstyle : miter # miter|round|bevel 68 | #lines.dash_capstyle : butt # butt|round|projecting 69 | #lines.solid_joinstyle : miter # miter|round|bevel 70 | #lines.solid_capstyle : projecting # butt|round|projecting 71 | #lines.antialiased : True # render lines in antialised (no jaggies) 72 | 73 | ### PATCHES 74 | # Patches are graphical objects that fill 2D space, like polygons or 75 | # circles. See 76 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.patches 77 | # information on patch properties 78 | #patch.linewidth : 1.0 # edge width in points 79 | #patch.facecolor : blue 80 | #patch.edgecolor : black 81 | #patch.antialiased : True # render patches in antialised (no jaggies) 82 | 83 | ### FONT 84 | # 85 | # font properties used by text.Text. See 86 | # http://matplotlib.org/api/font_manager_api.html for more 87 | # information on font properties. The 6 font properties used for font 88 | # matching are given below with their default values. 89 | # 90 | # The font.family property has five values: 'serif' (e.g. Times), 91 | # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), 92 | # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of 93 | # these font families has a default list of font names in decreasing 94 | # order of priority associated with them. 95 | # 96 | # The font.style property has three values: normal (or roman), italic 97 | # or oblique. The oblique style will be used for italic, if it is not 98 | # present. 99 | # 100 | # The font.variant property has two values: normal or small-caps. For 101 | # TrueType fonts, which are scalable fonts, small-caps is equivalent 102 | # to using a font size of 'smaller', or about 83% of the current font 103 | # size. 104 | # 105 | # The font.weight property has effectively 13 values: normal, bold, 106 | # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as 107 | # 400, and bold is 700. bolder and lighter are relative values with 108 | # respect to the current weight. 109 | # 110 | # The font.stretch property has 11 values: ultra-condensed, 111 | # extra-condensed, condensed, semi-condensed, normal, semi-expanded, 112 | # expanded, extra-expanded, ultra-expanded, wider, and narrower. This 113 | # property is not currently implemented. 114 | # 115 | # The font.size property is the default font size for text, given in pts. 116 | # 12pt is the standard value. 117 | # 118 | #font.family : sans-serif 119 | #font.style : normal 120 | #font.variant : normal 121 | #font.weight : medium 122 | #font.stretch : normal 123 | # note that font.size controls default text sizes. To configure 124 | # special text sizes tick labels, axes, labels, title, etc, see the rc 125 | # settings for axes and ticks. Special text sizes can be defined 126 | # relative to font.size, using the following values: xx-small, x-small, 127 | # small, medium, large, x-large, xx-large, larger, or smaller 128 | #font.size : 12.0 129 | #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif 130 | #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif 131 | #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive 132 | #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy 133 | #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace 134 | 135 | ### TEXT 136 | # text properties used by text.Text. See 137 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.text for more 138 | # information on text properties 139 | 140 | #text.color : black 141 | 142 | ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex 143 | #text.usetex : False # use latex for all text handling. The following fonts 144 | # are supported through the usual rc parameter settings: 145 | # new century schoolbook, bookman, times, palatino, 146 | # zapf chancery, charter, serif, sans-serif, helvetica, 147 | # avant garde, courier, monospace, computer modern roman, 148 | # computer modern sans serif, computer modern typewriter 149 | # If another font is desired which can loaded using the 150 | # LaTeX \usepackage command, please inquire at the 151 | # matplotlib mailing list 152 | #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling 153 | # unicode strings. 154 | #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES 155 | # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP 156 | # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. 157 | # preamble is a comma separated list of LaTeX statements 158 | # that are included in the LaTeX document preamble. 159 | # An example: 160 | # text.latex.preamble : \usepackage{bm},\usepackage{euler} 161 | # The following packages are always loaded with usetex, so 162 | # beware of package collisions: color, geometry, graphicx, 163 | # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages 164 | # may also be loaded, depending on your font settings 165 | 166 | #text.dvipnghack : None # some versions of dvipng don't handle alpha 167 | # channel properly. Use True to correct 168 | # and flush ~/.matplotlib/tex.cache 169 | # before testing and False to force 170 | # correction off. None will try and 171 | # guess based on your dvipng version 172 | 173 | #text.hinting : 'auto' # May be one of the following: 174 | # 'none': Perform no hinting 175 | # 'auto': Use freetype's autohinter 176 | # 'native': Use the hinting information in the 177 | # font file, if available, and if your 178 | # freetype library supports it 179 | # 'either': Use the native hinting information, 180 | # or the autohinter if none is available. 181 | # For backward compatibility, this value may also be 182 | # True === 'auto' or False === 'none'. 183 | text.hinting_factor : 8 # Specifies the amount of softness for hinting in the 184 | # horizontal direction. A value of 1 will hint to full 185 | # pixels. A value of 2 will hint to half pixels etc. 186 | 187 | #text.antialiased : True # If True (default), the text will be antialiased. 188 | # This only affects the Agg backend. 189 | 190 | # The following settings allow you to select the fonts in math mode. 191 | # They map from a TeX font name to a fontconfig font pattern. 192 | # These settings are only used if mathtext.fontset is 'custom'. 193 | # Note that this "custom" mode is unsupported and may go away in the 194 | # future. 195 | #mathtext.cal : cursive 196 | #mathtext.rm : serif 197 | #mathtext.tt : monospace 198 | #mathtext.it : serif:italic 199 | #mathtext.bf : serif:bold 200 | #mathtext.sf : sans 201 | #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', 202 | # 'stixsans' or 'custom' 203 | #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern 204 | # fonts when a symbol can not be found in one of 205 | # the custom math fonts. 206 | 207 | #mathtext.default : it # The default font to use for math. 208 | # Can be any of the LaTeX font names, including 209 | # the special name "regular" for the same font 210 | # used in regular text. 211 | 212 | ### AXES 213 | # default face and edge color, default tick sizes, 214 | # default fontsizes for ticklabels, and so on. See 215 | # http://matplotlib.org/api/axes_api.html#module-matplotlib.axes 216 | #axes.hold : True # whether to clear the axes by default on 217 | #axes.facecolor : white # axes background color 218 | #axes.edgecolor : black # axes edge color 219 | #axes.linewidth : 1.0 # edge linewidth 220 | #axes.grid : False # display grid or not 221 | #axes.titlesize : large # fontsize of the axes title 222 | #axes.labelsize : medium # fontsize of the x any y labels 223 | #axes.labelweight : normal # weight of the x and y labels 224 | #axes.labelcolor : black 225 | #axes.axisbelow : False # whether axis gridlines and ticks are below 226 | # the axes elements (lines, text, etc) 227 | #axes.formatter.limits : -7, 7 # use scientific notation if log10 228 | # of the axis range is smaller than the 229 | # first or larger than the second 230 | #axes.formatter.use_locale : False # When True, format tick labels 231 | # according to the user's locale. 232 | # For example, use ',' as a decimal 233 | # separator in the fr_FR locale. 234 | #axes.formatter.use_mathtext : False # When True, use mathtext for scientific 235 | # notation. 236 | #axes.unicode_minus : True # use unicode for the minus symbol 237 | # rather than hyphen. See 238 | # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes 239 | #axes.color_cycle : b, g, r, c, m, y, k # color cycle for plot lines 240 | # as list of string colorspecs: 241 | # single letter, long name, or 242 | # web-style hex 243 | 244 | #polaraxes.grid : True # display grid on polar axes 245 | #axes3d.grid : True # display grid on 3d axes 246 | 247 | ### TICKS 248 | # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick 249 | #xtick.major.size : 4 # major tick size in points 250 | #xtick.minor.size : 2 # minor tick size in points 251 | #xtick.major.width : 0.5 # major tick width in points 252 | #xtick.minor.width : 0.5 # minor tick width in points 253 | #xtick.major.pad : 4 # distance to major tick label in points 254 | #xtick.minor.pad : 4 # distance to the minor tick label in points 255 | #xtick.color : k # color of the tick labels 256 | #xtick.labelsize : medium # fontsize of the tick labels 257 | #xtick.direction : in # direction: in, out, or inout 258 | 259 | #ytick.major.size : 4 # major tick size in points 260 | #ytick.minor.size : 2 # minor tick size in points 261 | #ytick.major.width : 0.5 # major tick width in points 262 | #ytick.minor.width : 0.5 # minor tick width in points 263 | #ytick.major.pad : 4 # distance to major tick label in points 264 | #ytick.minor.pad : 4 # distance to the minor tick label in points 265 | #ytick.color : k # color of the tick labels 266 | #ytick.labelsize : medium # fontsize of the tick labels 267 | #ytick.direction : in # direction: in, out, or inout 268 | 269 | 270 | ### GRIDS 271 | #grid.color : black # grid color 272 | #grid.linestyle : : # dotted 273 | #grid.linewidth : 0.5 # in points 274 | #grid.alpha : 1.0 # transparency, between 0.0 and 1.0 275 | 276 | ### Legend 277 | #legend.fancybox : False # if True, use a rounded box for the 278 | # legend, else a rectangle 279 | #legend.isaxes : True 280 | #legend.numpoints : 2 # the number of points in the legend line 281 | #legend.fontsize : large 282 | #legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border 283 | #legend.borderpad : 0.5 # border whitespace in fontsize units 284 | #legend.markerscale : 1.0 # the relative size of legend markers vs. original 285 | # the following dimensions are in axes coords 286 | #legend.labelsep : 0.010 # deprecated; the vertical space between the legend entries 287 | #legend.labelspacing : 0.5 # the vertical space between the legend entries in fraction of fontsize 288 | #legend.handlelen : 0.05 # deprecated; the length of the legend lines 289 | #legend.handlelength : 2. # the length of the legend lines in fraction of fontsize 290 | #legend.handleheight : 0.7 # the height of the legend handle in fraction of fontsize 291 | #legend.handletextsep : 0.02 # deprecated; the space between the legend line and legend text 292 | #legend.handletextpad : 0.8 # the space between the legend line and legend text in fraction of fontsize 293 | #legend.axespad : 0.02 # deprecated; the border between the axes and legend edge 294 | #legend.borderaxespad : 0.5 # the border between the axes and legend edge in fraction of fontsize 295 | #legend.columnspacing : 2. # the border between the axes and legend edge in fraction of fontsize 296 | #legend.shadow : False 297 | #legend.frameon : True # whether or not to draw a frame around legend 298 | 299 | ### FIGURE 300 | # See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure 301 | #figure.figsize : 8, 6 # figure size in inches 302 | #figure.dpi : 80 # figure dots per inch 303 | #figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray 304 | #figure.edgecolor : white # figure edgecolor 305 | #figure.autolayout : False # When True, automatically adjust subplot 306 | # parameters to make the plot fit the figure 307 | 308 | # The figure subplot parameters. All dimensions are a fraction of the 309 | # figure width or height 310 | #figure.subplot.left : 0.125 # the left side of the subplots of the figure 311 | #figure.subplot.right : 0.9 # the right side of the subplots of the figure 312 | #figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure 313 | #figure.subplot.top : 0.9 # the top of the subplots of the figure 314 | #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots 315 | #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots 316 | 317 | ### IMAGES 318 | #image.aspect : equal # equal | auto | a number 319 | #image.interpolation : bilinear # see help(imshow) for options 320 | #image.cmap : jet # gray | jet etc... 321 | #image.lut : 256 # the size of the colormap lookup table 322 | #image.origin : upper # lower | upper 323 | #image.resample : False 324 | 325 | ### CONTOUR PLOTS 326 | #contour.negative_linestyle : dashed # dashed | solid 327 | 328 | ### Agg rendering 329 | ### Warning: experimental, 2008/10/10 330 | #agg.path.chunksize : 0 # 0 to disable; values in the range 331 | # 10000 to 100000 can improve speed slightly 332 | # and prevent an Agg rendering failure 333 | # when plotting very large data sets, 334 | # especially if they are very gappy. 335 | # It may cause minor artifacts, though. 336 | # A value of 20000 is probably a good 337 | # starting point. 338 | ### SAVING FIGURES 339 | #path.simplify : True # When True, simplify paths by removing "invisible" 340 | # points to reduce file size and increase rendering 341 | # speed 342 | #path.simplify_threshold : 0.1 # The threshold of similarity below which 343 | # vertices will be removed in the simplification 344 | # process 345 | #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to 346 | # the nearest pixel when certain criteria are met. When False, 347 | # paths will never be snapped. 348 | 349 | # the default savefig params can be different from the display params 350 | # Eg, you may want a higher resolution, or to make the figure 351 | # background white 352 | #savefig.dpi : 100 # figure dots per inch 353 | #savefig.facecolor : white # figure facecolor when saving 354 | #savefig.edgecolor : white # figure edgecolor when saving 355 | #savefig.format : png # png, ps, pdf, svg 356 | #savefig.bbox : standard # 'tight' or 'standard'. 357 | #savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight' 358 | 359 | # tk backend params 360 | #tk.window_focus : False # Maintain shell focus for TkAgg 361 | 362 | # ps backend params 363 | #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 364 | #ps.useafm : False # use of afm fonts, results in small files 365 | #ps.usedistiller : False # can be: None, ghostscript or xpdf 366 | # Experimental: may produce smaller files. 367 | # xpdf intended for production of publication quality files, 368 | # but requires ghostscript, xpdf and ps2eps 369 | #ps.distiller.res : 6000 # dpi 370 | #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 371 | 372 | # pdf backend params 373 | #pdf.compression : 6 # integer from 0 to 9 374 | # 0 disables compression (good for debugging) 375 | #pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 376 | 377 | # svg backend params 378 | #svg.image_inline : True # write raster image data directly into the svg file 379 | #svg.image_noscale : False # suppress scaling of raster data embedded in SVG 380 | #svg.fonttype : 'path' # How to handle SVG fonts: 381 | # 'none': Assume fonts are installed on the machine where the SVG will be viewed. 382 | # 'path': Embed characters as paths -- supported by most SVG renderers 383 | # 'svgfont': Embed characters as SVG fonts -- supported only by Chrome, 384 | # Opera and Safari 385 | 386 | # docstring params 387 | #docstring.hardcopy = False # set this when you want to generate hardcopy docstring 388 | 389 | # Set the verbose flags. This controls how much information 390 | # matplotlib gives you at runtime and where it goes. The verbosity 391 | # levels are: silent, helpful, debug, debug-annoying. Any level is 392 | # inclusive of all the levels below it. If your setting is "debug", 393 | # you'll get all the debug and helpful messages. When submitting 394 | # problems to the mailing-list, please set verbose to "helpful" or "debug" 395 | # and paste the output into your report. 396 | # 397 | # The "fileo" gives the destination for any calls to verbose.report. 398 | # These objects can a filename, or a filehandle like sys.stdout. 399 | # 400 | # You can override the rc default verbosity from the command line by 401 | # giving the flags --verbose-LEVEL where LEVEL is one of the legal 402 | # levels, eg --verbose-helpful. 403 | # 404 | # You can access the verbose instance in your code 405 | # from matplotlib import verbose. 406 | #verbose.level : silent # one of silent, helpful, debug, debug-annoying 407 | #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr 408 | 409 | # Event keys to interact with figures/plots via keyboard. 410 | # Customize these settings according to your needs. 411 | # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') 412 | 413 | #keymap.fullscreen : f # toggling 414 | #keymap.home : h, r, home # home or reset mnemonic 415 | #keymap.back : left, c, backspace # forward / backward keys to enable 416 | #keymap.forward : right, v # left handed quick navigation 417 | #keymap.pan : p # pan mnemonic 418 | #keymap.zoom : o # zoom mnemonic 419 | #keymap.save : s # saving current figure 420 | #keymap.quit : ctrl+w # close the current figure 421 | #keymap.grid : g # switching on/off a grid in current axes 422 | #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') 423 | #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') 424 | #keymap.all_axes : a # enable all axes 425 | 426 | # Control location of examples data files 427 | #examples.directory : '' # directory to look in for custom installation 428 | 429 | ###ANIMATION settings 430 | #animation.writer : ffmpeg # MovieWriter 'backend' to use 431 | #animation.codec : mp4 # Codec to use for writing movie 432 | #animation.bitrate: -1 # Controls size/quality tradeoff for movie. 433 | # -1 implies let utility auto-determine 434 | #animation.frame_format: 'png' # Controls frame format used by temp files 435 | #animation.ffmpeg_path: 'ffmpeg' # Path to ffmpeg binary. Without full path 436 | # $PATH is searched 437 | #animation.ffmpeg_args: '' # Additional arugments to pass to mencoder 438 | #animation.mencoder_path: 'ffmpeg' # Path to mencoder binary. Without full path 439 | # $PATH is searched 440 | #animation.mencoder_args: '' # Additional arugments to pass to mencoder 441 | -------------------------------------------------------------------------------- /rc/ggplotish: -------------------------------------------------------------------------------- 1 | ### LINES 2 | # See http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.lines for more 3 | # information on line properties. 4 | lines.linewidth : 1.0 # line width in points 5 | #lines.linestyle : - # solid line 6 | lines.color : purple 7 | #lines.marker : None # the default marker 8 | #lines.markeredgewidth : 0.5 # the line width around the marker symbol 9 | #lines.markersize : 6 # markersize, in points 10 | #lines.dash_joinstyle : miter # miter|round|bevel 11 | #lines.dash_capstyle : butt # butt|round|projecting 12 | #lines.solid_joinstyle : miter # miter|round|bevel 13 | #lines.solid_capstyle : projecting # butt|round|projecting 14 | lines.antialiased : True # render lines in antialised (no jaggies) 15 | 16 | ### PATCHES 17 | # Patches are graphical objects that fill 2D space, like polygons or 18 | # circles. See 19 | # http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.patches 20 | # information on patch properties 21 | patch.linewidth : 0.5 # edge width in points 22 | patch.facecolor : FF0000 23 | patch.edgecolor : eeeeee 24 | patch.antialiased : True # render patches in antialised (no jaggies) 25 | 26 | ### FONT 27 | # 28 | # font properties used by text.Text. See 29 | # http://matplotlib.sourceforge.net/api/font_manager_api.html for more 30 | # information on font properties. The 6 font properties used for font 31 | # matching are given below with their default values. 32 | # 33 | # The font.family property has five values: 'serif' (e.g. Times), 34 | # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), 35 | # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of 36 | # these font families has a default list of font names in decreasing 37 | # order of priority associated with them. 38 | # 39 | # The font.style property has three values: normal (or roman), italic 40 | # or oblique. The oblique style will be used for italic, if it is not 41 | # present. 42 | # 43 | # The font.variant property has two values: normal or small-caps. For 44 | # TrueType fonts, which are scalable fonts, small-caps is equivalent 45 | # to using a font size of 'smaller', or about 83% of the current font 46 | # size. 47 | # 48 | # The font.weight property has effectively 13 values: normal, bold, 49 | # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as 50 | # 400, and bold is 700. bolder and lighter are relative values with 51 | # respect to the current weight. 52 | # 53 | # The font.stretch property has 11 values: ultra-condensed, 54 | # extra-condensed, condensed, semi-condensed, normal, semi-expanded, 55 | # expanded, extra-expanded, ultra-expanded, wider, and narrower. This 56 | # property is not currently implemented. 57 | # 58 | # The font.size property is the default font size for text, given in pts. 59 | # 12pt is the standard value. 60 | # 61 | font.family : Arial 62 | #font.style : normal 63 | #font.variant : normal 64 | #font.weight : medium 65 | #font.stretch : normal 66 | # note that font.size controls default text sizes. To configure 67 | # special text sizes tick labels, axes, labels, title, etc, see the rc 68 | # settings for axes and ticks. Special text sizes can be defined 69 | # relative to font.size, using the following values: xx-small, x-small, 70 | # small, medium, large, x-large, xx-large, larger, or smaller 71 | font.size : 10.0 72 | # font.serif : DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif 73 | #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif 74 | #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive 75 | #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy 76 | font.monospace : DejaVu Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace 77 | 78 | ### TEXT 79 | # text properties used by text.Text. See 80 | # http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.text for more 81 | # information on text properties 82 | 83 | #text.color : black 84 | 85 | ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex 86 | #text.usetex : False # use latex for all text handling. The following fonts 87 | # are supported through the usual rc parameter settings: 88 | # new century schoolbook, bookman, times, palatino, 89 | # zapf chancery, charter, serif, sans-serif, helvetica, 90 | # avant garde, courier, monospace, computer modern roman, 91 | # computer modern sans serif, computer modern typewriter 92 | # If another font is desired which can loaded using the 93 | # LaTeX \usepackage command, please inquire at the 94 | # matplotlib mailing list 95 | #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling 96 | # unicode strings. 97 | #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES 98 | # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP 99 | # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. 100 | # preamble is a comma separated list of LaTeX statements 101 | # that are included in the LaTeX document preamble. 102 | # An example: 103 | # text.latex.preamble : \usepackage{bm},\usepackage{euler} 104 | # The following packages are always loaded with usetex, so 105 | # beware of package collisions: color, geometry, graphicx, 106 | # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages 107 | # may also be loaded, depending on your font settings 108 | 109 | #text.dvipnghack : None # some versions of dvipng don't handle alpha 110 | # channel properly. Use True to correct 111 | # and flush ~/.matplotlib/tex.cache 112 | # before testing and False to force 113 | # correction off. None will try and 114 | # guess based on your dvipng version 115 | 116 | #text.markup : 'plain' # Affects how text, such as titles and labels, are 117 | # interpreted by default. 118 | # 'plain': As plain, unformatted text 119 | # 'tex': As TeX-like text. Text between $'s will be 120 | # formatted as a TeX math expression. 121 | # This setting has no effect when text.usetex is True. 122 | # In that case, all text will be sent to TeX for 123 | # processing. 124 | 125 | #text.hinting : True # If True, text will be hinted, otherwise not. This only 126 | # affects the Agg backend. 127 | 128 | #text.antialiased : True # If True (default), the text will be antialiased. 129 | # This only affects the Agg backend. 130 | 131 | # The following settings allow you to select the fonts in math mode. 132 | # They map from a TeX font name to a fontconfig font pattern. 133 | # These settings are only used if mathtext.fontset is 'custom'. 134 | # Note that this "custom" mode is unsupported and may go away in the 135 | # future. 136 | #mathtext.cal : cursive 137 | #mathtext.rm : serif 138 | #mathtext.tt : monospace 139 | #mathtext.it : serif:italic 140 | #mathtext.bf : serif:bold 141 | #mathtext.sf : sans 142 | #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', 143 | # 'stixsans' or 'custom' 144 | #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern 145 | # fonts when a symbol can not be found in one of 146 | # the custom math fonts. 147 | 148 | #mathtext.default : it # The default font to use for math. 149 | # Can be any of the LaTeX font names, including 150 | # the special name "regular" for the same font 151 | # used in regular text. 152 | 153 | ### AXES 154 | # default face and edge color, default tick sizes, 155 | # default fontsizes for ticklabels, and so on. See 156 | # http://matplotlib.sourceforge.net/api/axes_api.html#module-matplotlib.axes 157 | #axes.hold : True # whether to clear the axes by default on 158 | axes.facecolor : eeeeee # axes background color 159 | axes.edgecolor : bcbcbc # axes edge color 160 | axes.linewidth : 1 # edge linewidth 161 | axes.grid : True # display grid or not 162 | axes.titlesize : x-large # fontsize of the axes title 163 | axes.labelsize : large # fontsize of the x any y labels 164 | axes.labelcolor : 555555 165 | axes.axisbelow : True # whether axis gridlines and ticks are below 166 | # the axes elements (lines, text, etc) 167 | #axes.formatter.limits : -7, 7 # use scientific notation if log10 168 | # of the axis range is smaller than the 169 | # first or larger than the second 170 | #axes.formatter.use_locale : False # When True, format tick labels 171 | # according to the user's locale. 172 | # For example, use ',' as a decimal 173 | # separator in the fr_FR locale. 174 | #axes.unicode_minus : True # use unicode for the minus symbol 175 | # rather than hypen. See http://en.wikipedia.org/wiki/Plus_sign#Plus_sign 176 | axes.color_cycle : 348ABD, 7A68A6, A60628, 467821, CF4457, 188487, E24A33 177 | 178 | #polaraxes.grid : True # display grid on polar axes 179 | #axes3d.grid : True # display grid on 3d axes 180 | 181 | ### TICKS 182 | # see http://matplotlib.sourceforge.net/api/axis_api.html#matplotlib.axis.Tick 183 | xtick.major.size : 0 # major tick size in points 184 | xtick.minor.size : 0 # minor tick size in points 185 | xtick.major.pad : 6 # distance to major tick label in points 186 | xtick.minor.pad : 6 # distance to the minor tick label in points 187 | xtick.color : 555555 # color of the tick labels 188 | #xtick.labelsize : medium # fontsize of the tick labels 189 | xtick.direction : in # direction: in or out 190 | 191 | ytick.major.size : 0 # major tick size in points 192 | ytick.minor.size : 0 # minor tick size in points 193 | ytick.major.pad : 6 # distance to major tick label in points 194 | ytick.minor.pad : 6 # distance to the minor tick label in points 195 | ytick.color : 555555 # color of the tick labels 196 | #ytick.labelsize : medium # fontsize of the tick labels 197 | ytick.direction : in # direction: in or out 198 | 199 | 200 | ### GRIDS 201 | #grid.color : black # grid color 202 | #grid.linestyle : : # dotted 203 | #grid.linewidth : 0.5 # in points 204 | 205 | ### Legend 206 | legend.fancybox : True # if True, use a rounded box for the 207 | # legend, else a rectangle 208 | #legend.isaxes : True 209 | legend.numpoints : 1 # the number of points in the legend line 210 | #legend.fontsize : large 211 | #legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border 212 | #legend.borderpad : 0.5 # border whitspace in fontsize units 213 | #legend.markerscale : 1.0 # the relative size of legend markers vs. original 214 | # the following dimensions are in axes coords 215 | #legend.labelsep : 0.010 # the vertical space between the legend entries 216 | #legend.handlelen : 0.05 # the length of the legend lines 217 | #legend.handletextsep : 0.02 # the space between the legend line and legend text 218 | #legend.axespad : 0.02 # the border between the axes and legend edge 219 | #legend.shadow : False 220 | #legend.frameon : True # whether or not to draw a frame around legend 221 | 222 | ### FIGURE 223 | # See http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure 224 | figure.figsize : 11, 8 # figure size in inches 225 | #figure.dpi : 80 # figure dots per inch 226 | figure.facecolor : 1.0 # figure facecolor; 0.75 is scalar gray 227 | figure.edgecolor : 0.50 # figure edgecolor 228 | 229 | # The figure subplot parameters. All dimensions are fraction of the 230 | # figure width or height 231 | #figure.subplot.left : 0.125 # the left side of the subplots of the figure 232 | #figure.subplot.right : 0.9 # the right side of the subplots of the figure 233 | #figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure 234 | #figure.subplot.top : 0.9 # the top of the subplots of the figure 235 | #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots 236 | figure.subplot.hspace : 0.5 # the amount of height reserved for white space between subplots 237 | 238 | ### IMAGES 239 | #image.aspect : equal # equal | auto | a number 240 | #image.interpolation : bilinear # see help(imshow) for options 241 | #image.cmap : jet # gray | jet etc... 242 | #image.lut : 256 # the size of the colormap lookup table 243 | #image.origin : upper # lower | upper 244 | #image.resample : False 245 | 246 | ### CONTOUR PLOTS 247 | #contour.negative_linestyle : dashed # dashed | solid 248 | 249 | ### Agg rendering 250 | ### Warning: experimental, 2008/10/10 251 | #agg.path.chunksize : 0 # 0 to disable; values in the range 252 | # 10000 to 100000 can improve speed slightly 253 | # and prevent an Agg rendering failure 254 | # when plotting very large data sets, 255 | # especially if they are very gappy. 256 | # It may cause minor artifacts, though. 257 | # A value of 20000 is probably a good 258 | # starting point. 259 | ### SAVING FIGURES 260 | #path.simplify : True # When True, simplify paths by removing "invisible" 261 | # points to reduce file size and increase rendering 262 | # speed 263 | #path.simplify_threshold : 0.1 # The threshold of similarity below which 264 | # vertices will be removed in the simplification 265 | # process 266 | #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to 267 | # the nearest pixel when certain criteria are met. When False, 268 | # paths will never be snapped. 269 | 270 | # the default savefig params can be different from the display params 271 | # Eg, you may want a higher resolution, or to make the figure 272 | # background white 273 | #savefig.dpi : 100 # figure dots per inch 274 | #savefig.facecolor : white # figure facecolor when saving 275 | #savefig.edgecolor : white # figure edgecolor when saving 276 | #savefig.extension : auto # what extension to use for savefig('foo'), or 'auto' 277 | 278 | #cairo.format : png # png, ps, pdf, svg 279 | 280 | # tk backend params 281 | #tk.window_focus : False # Maintain shell focus for TkAgg 282 | 283 | # ps backend params 284 | #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 285 | #ps.useafm : False # use of afm fonts, results in small files 286 | #ps.usedistiller : False # can be: None, ghostscript or xpdf 287 | # Experimental: may produce smaller files. 288 | # xpdf intended for production of publication quality files, 289 | # but requires ghostscript, xpdf and ps2eps 290 | #ps.distiller.res : 6000 # dpi 291 | #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 292 | 293 | # pdf backend params 294 | #pdf.compression : 6 # integer from 0 to 9 295 | # 0 disables compression (good for debugging) 296 | #pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 297 | 298 | # svg backend params 299 | #svg.image_inline : True # write raster image data directly into the svg file 300 | #svg.image_noscale : False # suppress scaling of raster data embedded in SVG 301 | #svg.embed_char_paths : True # embed character outlines in the SVG file 302 | 303 | # docstring params 304 | #docstring.hardcopy = False # set this when you want to generate hardcopy docstring 305 | 306 | # Set the verbose flags. This controls how much information 307 | # matplotlib gives you at runtime and where it goes. The verbosity 308 | # levels are: silent, helpful, debug, debug-annoying. Any level is 309 | # inclusive of all the levels below it. If your setting is "debug", 310 | # you'll get all the debug and helpful messages. When submitting 311 | # problems to the mailing-list, please set verbose to "helpful" or "debug" 312 | # and paste the output into your report. 313 | # 314 | # The "fileo" gives the destination for any calls to verbose.report. 315 | # These objects can a filename, or a filehandle like sys.stdout. 316 | # 317 | # You can override the rc default verbosity from the command line by 318 | # giving the flags --verbose-LEVEL where LEVEL is one of the legal 319 | # levels, eg --verbose-helpful. 320 | # 321 | # You can access the verbose instance in your code 322 | # from matplotlib import verbose. 323 | #verbose.level : silent # one of silent, helpful, debug, debug-annoying 324 | #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr 325 | 326 | # Event keys to interact with figures/plots via keyboard. 327 | # Customize these settings according to your needs. 328 | # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') 329 | 330 | keymap.fullscreen : f # toggling 331 | keymap.home : h, r, home # home or reset mnemonic 332 | keymap.back : left, c, backspace # forward / backward keys to enable 333 | keymap.forward : right, v # left handed quick navigation 334 | keymap.pan : p # pan mnemonic 335 | keymap.zoom : o # zoom mnemonic 336 | keymap.save : s # saving current figure 337 | keymap.grid : g # switching on/off a grid in current axes 338 | keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') 339 | keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') 340 | keymap.all_axes : a # enable all axes 341 | -------------------------------------------------------------------------------- /rc/probpro: -------------------------------------------------------------------------------- 1 | ### MATPLOTLIBRC FORMAT 2 | 3 | # This is a sample matplotlib configuration file - you can find a copy 4 | # of it on your system in 5 | # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it 6 | # there, please note that it will be overwritten in your next install. 7 | # If you want to keep a permanent local copy that will not be 8 | # overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux 9 | # like systems) and C:\Documents and Settings\yourname\.matplotlib 10 | # (win32 systems). 11 | # 12 | # This file is best viewed in a editor which supports python mode 13 | # syntax highlighting. Blank lines, or lines starting with a comment 14 | # symbol, are ignored, as are trailing comments. Other lines must 15 | # have the format 16 | # key : val # optional comment 17 | # 18 | # Colors: for the color values below, you can either use - a 19 | # matplotlib color string, such as r, k, or b - an rgb tuple, such as 20 | # (1.0, 0.5, 0.0) - a hex string, such as ff00ff or #ff00ff - a scalar 21 | # grayscale intensity such as 0.75 - a legal html color name, eg red, 22 | # blue, darkslategray 23 | 24 | #### CONFIGURATION BEGINS HERE 25 | 26 | # the default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo 27 | # CocoaAgg FltkAgg MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS 28 | # PDF SVG Template 29 | # You can also deploy your own backend outside of matplotlib by 30 | # referring to the module name (which must be in the PYTHONPATH) as 31 | # 'module://my_backend' 32 | backend : TkAgg 33 | 34 | # If you are using the Qt4Agg backend, you can choose here 35 | # to use the PyQt4 bindings or the newer PySide bindings to 36 | # the underlying Qt4 toolkit. 37 | #backend.qt4 : PyQt4 # PyQt4 | PySide 38 | 39 | # Note that this can be overridden by the environment variable 40 | # QT_API used by Enthought Tool Suite (ETS); valid values are 41 | # "pyqt" and "pyside". The "pyqt" setting has the side effect of 42 | # forcing the use of Version 2 API for QString and QVariant. 43 | 44 | # if you are running pyplot inside a GUI and your backend choice 45 | # conflicts, we will automatically try to find a compatible one for 46 | # you if backend_fallback is True 47 | #backend_fallback: True 48 | 49 | #interactive : False 50 | #toolbar : toolbar2 # None | toolbar2 ("classic" is deprecated) 51 | #timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris 52 | 53 | # Where your matplotlib data lives if you installed to a non-default 54 | # location. This is where the matplotlib fonts, bitmaps, etc reside 55 | #datapath : /home/jdhunter/mpldata 56 | 57 | 58 | ### LINES 59 | # See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more 60 | # information on line properties. 61 | lines.linewidth : 2.0 # line width in points 62 | #lines.linestyle : - # solid line 63 | #lines.color : blue # has no affect on plot(); see axes.color_cycle 64 | #lines.marker : None # the default marker 65 | #lines.markeredgewidth : 0.5 # the line width around the marker symbol 66 | #lines.markersize : 6 # markersize, in points 67 | #lines.dash_joinstyle : miter # miter|round|bevel 68 | #lines.dash_capstyle : butt # butt|round|projecting 69 | #lines.solid_joinstyle : miter # miter|round|bevel 70 | #lines.solid_capstyle : projecting # butt|round|projecting 71 | #lines.antialiased : True # render lines in antialised (no jaggies) 72 | 73 | ### PATCHES 74 | # Patches are graphical objects that fill 2D space, like polygons or 75 | # circles. See 76 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.patches 77 | # information on patch properties 78 | patch.linewidth : 0.5 # edge width in points 79 | patch.facecolor : blue 80 | patch.edgecolor : eeeeee 81 | patch.antialiased : True 82 | 83 | ### FONT 84 | # 85 | # font properties used by text.Text. See 86 | # http://matplotlib.org/api/font_manager_api.html for more 87 | # information on font properties. The 6 font properties used for font 88 | # matching are given below with their default values. 89 | # 90 | # The font.family property has five values: 'serif' (e.g. Times), 91 | # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), 92 | # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of 93 | # these font families has a default list of font names in decreasing 94 | # order of priority associated with them. 95 | # 96 | # The font.style property has three values: normal (or roman), italic 97 | # or oblique. The oblique style will be used for italic, if it is not 98 | # present. 99 | # 100 | # The font.variant property has two values: normal or small-caps. For 101 | # TrueType fonts, which are scalable fonts, small-caps is equivalent 102 | # to using a font size of 'smaller', or about 83% of the current font 103 | # size. 104 | # 105 | # The font.weight property has effectively 13 values: normal, bold, 106 | # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as 107 | # 400, and bold is 700. bolder and lighter are relative values with 108 | # respect to the current weight. 109 | # 110 | # The font.stretch property has 11 values: ultra-condensed, 111 | # extra-condensed, condensed, semi-condensed, normal, semi-expanded, 112 | # expanded, extra-expanded, ultra-expanded, wider, and narrower. This 113 | # property is not currently implemented. 114 | # 115 | # The font.size property is the default font size for text, given in pts. 116 | # 12pt is the standard value. 117 | # 118 | #font.family : monospace 119 | #font.style : normal 120 | #font.variant : normal 121 | #font.weight : medium 122 | #font.stretch : normal 123 | # note that font.size controls default text sizes. To configure 124 | # special text sizes tick labels, axes, labels, title, etc, see the rc 125 | # settings for axes and ticks. Special text sizes can be defined 126 | # relative to font.size, using the following values: xx-small, x-small, 127 | # small, medium, large, x-large, xx-large, larger, or smaller 128 | #font.size : 12.0 129 | #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif 130 | #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif 131 | #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive 132 | #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy 133 | #font.monospace : Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace 134 | 135 | 136 | ### TEXT 137 | # text properties used by text.Text. See 138 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.text for more 139 | # information on text properties 140 | 141 | #text.color : black 142 | 143 | ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex 144 | #text.usetex : False # use latex for all text handling. The following fonts 145 | # are supported through the usual rc parameter settings: 146 | # new century schoolbook, bookman, times, palatino, 147 | # zapf chancery, charter, serif, sans-serif, helvetica, 148 | # avant garde, courier, monospace, computer modern roman, 149 | # computer modern sans serif, computer modern typewriter 150 | # If another font is desired which can loaded using the 151 | # LaTeX \usepackage command, please inquire at the 152 | # matplotlib mailing list 153 | #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling 154 | # unicode strings. 155 | #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES 156 | # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP 157 | # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. 158 | # preamble is a comma separated list of LaTeX statements 159 | # that are included in the LaTeX document preamble. 160 | # An example: 161 | # text.latex.preamble : \usepackage{bm},\usepackage{euler} 162 | # The following packages are always loaded with usetex, so 163 | # beware of package collisions: color, geometry, graphicx, 164 | # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages 165 | # may also be loaded, depending on your font settings 166 | 167 | #text.dvipnghack : None # some versions of dvipng don't handle alpha 168 | # channel properly. Use True to correct 169 | # and flush ~/.matplotlib/tex.cache 170 | # before testing and False to force 171 | # correction off. None will try and 172 | # guess based on your dvipng version 173 | 174 | #text.hinting : 'auto' # May be one of the following: 175 | # 'none': Perform no hinting 176 | # 'auto': Use freetype's autohinter 177 | # 'native': Use the hinting information in the 178 | # font file, if available, and if your 179 | # freetype library supports it 180 | # 'either': Use the native hinting information, 181 | # or the autohinter if none is available. 182 | # For backward compatibility, this value may also be 183 | # True === 'auto' or False === 'none'. 184 | text.hinting_factor : 8 # Specifies the amount of softness for hinting in the 185 | # horizontal direction. A value of 1 will hint to full 186 | # pixels. A value of 2 will hint to half pixels etc. 187 | 188 | #text.antialiased : True # If True (default), the text will be antialiased. 189 | # This only affects the Agg backend. 190 | 191 | # The following settings allow you to select the fonts in math mode. 192 | # They map from a TeX font name to a fontconfig font pattern. 193 | # These settings are only used if mathtext.fontset is 'custom'. 194 | # Note that this "custom" mode is unsupported and may go away in the 195 | # future. 196 | #mathtext.cal : cursive 197 | #mathtext.rm : serif 198 | #mathtext.tt : monospace 199 | #mathtext.it : serif:italic 200 | #mathtext.bf : serif:bold 201 | #mathtext.sf : sans 202 | mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', 203 | # 'stixsans' or 'custom' 204 | #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern 205 | # fonts when a symbol can not be found in one of 206 | # the custom math fonts. 207 | 208 | #mathtext.default : it # The default font to use for math. 209 | # Can be any of the LaTeX font names, including 210 | # the special name "regular" for the same font 211 | # used in regular text. 212 | 213 | ### AXES 214 | # default face and edge color, default tick sizes, 215 | # default fontsizes for ticklabels, and so on. See 216 | # http://matplotlib.org/api/axes_api.html#module-matplotlib.axes 217 | #axes.hold : True # whether to clear the axes by default on 218 | axes.facecolor : eeeeee # axes background color 219 | axes.edgecolor : bcbcbc # axes edge color 220 | #axes.linewidth : 1.0 # edge linewidth 221 | axes.grid : True # display grid or not 222 | axes.titlesize : x-large # fontsize of the axes title 223 | axes.labelsize : large # fontsize of the x any y labels 224 | #axes.labelweight : normal # weight of the x and y labels 225 | #axes.labelcolor : black 226 | #axes.axisbelow : False # whether axis gridlines and ticks are below 227 | # the axes elements (lines, text, etc) 228 | #axes.formatter.limits : -7, 7 # use scientific notation if log10 229 | # of the axis range is smaller than the 230 | # first or larger than the second 231 | #axes.formatter.use_locale : False # When True, format tick labels 232 | # according to the user's locale. 233 | # For example, use ',' as a decimal 234 | # separator in the fr_FR locale. 235 | #axes.formatter.use_mathtext : False # When True, use mathtext for scientific 236 | # notation. 237 | #axes.unicode_minus : True # use unicode for the minus symbol 238 | # rather than hyphen. See 239 | # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes 240 | axes.color_cycle : 348ABD, A60628, 7A68A6, 467821,D55E00, CC79A7, 56B4E9, 009E73, F0E442, 0072B2 # color cycle for plot lines 241 | # as list of string colorspecs: 242 | # single letter, long name, or 243 | # web-style hex 244 | 245 | #polaraxes.grid : True # display grid on polar axes 246 | #axes3d.grid : True # display grid on 3d axes 247 | 248 | ### TICKS 249 | # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick 250 | #xtick.major.size : 4 # major tick size in points 251 | #xtick.minor.size : 2 # minor tick size in points 252 | #xtick.major.width : 0.5 # major tick width in points 253 | #xtick.minor.width : 0.5 # minor tick width in points 254 | #xtick.major.pad : 4 # distance to major tick label in points 255 | #xtick.minor.pad : 4 # distance to the minor tick label in points 256 | #xtick.color : k # color of the tick labels 257 | #xtick.labelsize : medium # fontsize of the tick labels 258 | #xtick.direction : in # direction: in, out, or inout 259 | 260 | #ytick.major.size : 4 # major tick size in points 261 | #ytick.minor.size : 2 # minor tick size in points 262 | #ytick.major.width : 0.5 # major tick width in points 263 | #ytick.minor.width : 0.5 # minor tick width in points 264 | #ytick.major.pad : 4 # distance to major tick label in points 265 | #ytick.minor.pad : 4 # distance to the minor tick label in points 266 | #ytick.color : k # color of the tick labels 267 | #ytick.labelsize : medium # fontsize of the tick labels 268 | #ytick.direction : in # direction: in, out, or inout 269 | 270 | 271 | ### GRIDS 272 | #grid.color : black # grid color 273 | #grid.linestyle : : # dotted 274 | #grid.linewidth : 0.5 # in points 275 | #grid.alpha : 1.0 # transparency, between 0.0 and 1.0 276 | 277 | ### Legend 278 | legend.fancybox : True # if True, use a rounded box for the 279 | # legend, else a rectangle 280 | #legend.isaxes : True 281 | #legend.numpoints : 2 # the number of points in the legend line 282 | #legend.fontsize : large 283 | #legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border 284 | #legend.borderpad : 0.5 # border whitespace in fontsize units 285 | #legend.markerscale : 1.0 # the relative size of legend markers vs. original 286 | # the following dimensions are in axes coords 287 | #legend.labelsep : 0.010 # deprecated; the vertical space between the legend entries 288 | #legend.labelspacing : 0.5 # the vertical space between the legend entries in fraction of fontsize 289 | #legend.handlelen : 0.05 # deprecated; the length of the legend lines 290 | #legend.handlelength : 2. # the length of the legend lines in fraction of fontsize 291 | #legend.handleheight : 0.7 # the height of the legend handle in fraction of fontsize 292 | #legend.handletextsep : 0.02 # deprecated; the space between the legend line and legend text 293 | #legend.handletextpad : 0.8 # the space between the legend line and legend text in fraction of fontsize 294 | #legend.axespad : 0.02 # deprecated; the border between the axes and legend edge 295 | #legend.borderaxespad : 0.5 # the border between the axes and legend edge in fraction of fontsize 296 | #legend.columnspacing : 2. # the border between the axes and legend edge in fraction of fontsize 297 | #legend.shadow : False 298 | #legend.frameon : True # whether or not to draw a frame around legend 299 | 300 | ### FIGURE 301 | # See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure 302 | figure.figsize : 11, 8 # figure size in inches 303 | figure.dpi : 100 # figure dots per inch 304 | #figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray 305 | #figure.edgecolor : white # figure edgecolor 306 | #figure.autolayout : False # When True, automatically adjust subplot 307 | # parameters to make the plot fit the figure 308 | 309 | # The figure subplot parameters. All dimensions are a fraction of the 310 | # figure width or height 311 | #figure.subplot.left : 0.125 # the left side of the subplots of the figure 312 | #figure.subplot.right : 0.9 # the right side of the subplots of the figure 313 | #figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure 314 | #figure.subplot.top : 0.9 # the top of the subplots of the figure 315 | #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots 316 | #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots 317 | 318 | ### IMAGES 319 | #image.aspect : equal # equal | auto | a number 320 | #image.interpolation : bilinear # see help(imshow) for options 321 | #image.cmap : jet # gray | jet etc... 322 | #image.lut : 256 # the size of the colormap lookup table 323 | #image.origin : upper # lower | upper 324 | #image.resample : False 325 | 326 | ### CONTOUR PLOTS 327 | #contour.negative_linestyle : dashed # dashed | solid 328 | 329 | ### Agg rendering 330 | ### Warning: experimental, 2008/10/10 331 | #agg.path.chunksize : 0 # 0 to disable; values in the range 332 | # 10000 to 100000 can improve speed slightly 333 | # and prevent an Agg rendering failure 334 | # when plotting very large data sets, 335 | # especially if they are very gappy. 336 | # It may cause minor artifacts, though. 337 | # A value of 20000 is probably a good 338 | # starting point. 339 | ### SAVING FIGURES 340 | #path.simplify : True # When True, simplify paths by removing "invisible" 341 | # points to reduce file size and increase rendering 342 | # speed 343 | #path.simplify_threshold : 0.1 # The threshold of similarity below which 344 | # vertices will be removed in the simplification 345 | # process 346 | #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to 347 | # the nearest pixel when certain criteria are met. When False, 348 | # paths will never be snapped. 349 | 350 | # the default savefig params can be different from the display params 351 | # Eg, you may want a higher resolution, or to make the figure 352 | # background white 353 | savefig.dpi : 300 # figure dots per inch 354 | #savefig.facecolor : white # figure facecolor when saving 355 | #savefig.edgecolor : white # figure edgecolor when saving 356 | #savefig.format : png # png, ps, pdf, svg 357 | #savefig.bbox : standard # 'tight' or 'standard'. 358 | #savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight' 359 | 360 | # tk backend params 361 | #tk.window_focus : False # Maintain shell focus for TkAgg 362 | 363 | # ps backend params 364 | #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 365 | #ps.useafm : False # use of afm fonts, results in small files 366 | #ps.usedistiller : False # can be: None, ghostscript or xpdf 367 | # Experimental: may produce smaller files. 368 | # xpdf intended for production of publication quality files, 369 | # but requires ghostscript, xpdf and ps2eps 370 | #ps.distiller.res : 6000 # dpi 371 | #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 372 | 373 | # pdf backend params 374 | #pdf.compression : 6 # integer from 0 to 9 375 | # 0 disables compression (good for debugging) 376 | #pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 377 | 378 | # svg backend params 379 | #svg.image_inline : True # write raster image data directly into the svg file 380 | #svg.image_noscale : False # suppress scaling of raster data embedded in SVG 381 | #svg.fonttype : 'path' # How to handle SVG fonts: 382 | # 'none': Assume fonts are installed on the machine where the SVG will be viewed. 383 | # 'path': Embed characters as paths -- supported by most SVG renderers 384 | # 'svgfont': Embed characters as SVG fonts -- supported only by Chrome, 385 | # Opera and Safari 386 | 387 | # docstring params 388 | #docstring.hardcopy = False # set this when you want to generate hardcopy docstring 389 | 390 | # Set the verbose flags. This controls how much information 391 | # matplotlib gives you at runtime and where it goes. The verbosity 392 | # levels are: silent, helpful, debug, debug-annoying. Any level is 393 | # inclusive of all the levels below it. If your setting is "debug", 394 | # you'll get all the debug and helpful messages. When submitting 395 | # problems to the mailing-list, please set verbose to "helpful" or "debug" 396 | # and paste the output into your report. 397 | # 398 | # The "fileo" gives the destination for any calls to verbose.report. 399 | # These objects can a filename, or a filehandle like sys.stdout. 400 | # 401 | # You can override the rc default verbosity from the command line by 402 | # giving the flags --verbose-LEVEL where LEVEL is one of the legal 403 | # levels, eg --verbose-helpful. 404 | # 405 | # You can access the verbose instance in your code 406 | # from matplotlib import verbose. 407 | #verbose.level : silent # one of silent, helpful, debug, debug-annoying 408 | #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr 409 | 410 | # Event keys to interact with figures/plots via keyboard. 411 | # Customize these settings according to your needs. 412 | # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') 413 | 414 | #keymap.fullscreen : f # toggling 415 | #keymap.home : h, r, home # home or reset mnemonic 416 | #keymap.back : left, c, backspace # forward / backward keys to enable 417 | #keymap.forward : right, v # left handed quick navigation 418 | #keymap.pan : p # pan mnemonic 419 | #keymap.zoom : o # zoom mnemonic 420 | #keymap.save : s # saving current figure 421 | #keymap.quit : ctrl+w # close the current figure 422 | #keymap.grid : g # switching on/off a grid in current axes 423 | #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') 424 | #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') 425 | #keymap.all_axes : a # enable all axes 426 | 427 | ###ANIMATION settings 428 | #animation.writer : ffmpeg # MovieWriter 'backend' to use 429 | #animation.codec : mp4 # Codec to use for writing movie 430 | #animation.bitrate: -1 # Controls size/quality tradeoff for movie. 431 | # -1 implies let utility auto-determine 432 | #animation.frame_format: 'png' # Controls frame format used by temp files 433 | #animation.ffmpeg_path: 'ffmpeg' # Path to ffmpeg binary. Without full path 434 | # $PATH is searched 435 | #animation.ffmpeg_args: '' # Additional arugments to pass to mencoder 436 | #animation.mencoder_path: 'ffmpeg' # Path to mencoder binary. Without full path 437 | # $PATH is searched 438 | #animation.mencoder_args: '' # Additional arugments to pass to mencoder 439 | -------------------------------------------------------------------------------- /rc/rlike: -------------------------------------------------------------------------------- 1 | ### MATPLOTLIBRC FORMAT 2 | 3 | # This is a sample matplotlib configuration file - you can find a copy 4 | # of it on your system in 5 | # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it 6 | # there, please note that it will be overwritten in your next install. 7 | # If you want to keep a permanent local copy that will not be 8 | # overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux 9 | # like systems) and C:\Documents and Settings\yourname\.matplotlib 10 | # (win32 systems). 11 | # 12 | # This file is best viewed in a editor which supports python mode 13 | # syntax highlighting. Blank lines, or lines starting with a comment 14 | # symbol, are ignored, as are trailing comments. Other lines must 15 | # have the format 16 | # key : val # optional comment 17 | # 18 | # Colors: for the color values below, you can either use - a 19 | # matplotlib color string, such as r, k, or b - an rgb tuple, such as 20 | # (1.0, 0.5, 0.0) - a hex string, such as ff00ff or #ff00ff - a scalar 21 | # grayscale intensity such as 0.75 - a legal html color name, eg red, 22 | # blue, darkslategray 23 | 24 | #### CONFIGURATION BEGINS HERE 25 | 26 | # the default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo 27 | # CocoaAgg FltkAgg MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS 28 | # PDF SVG Template 29 | # You can also deploy your own backend outside of matplotlib by 30 | # referring to the module name (which must be in the PYTHONPATH) as 31 | # 'module://my_backend' 32 | # backend : GTKAgg 33 | 34 | # If you are using the Qt4Agg backend, you can choose here 35 | # to use the PyQt4 bindings or the newer PySide bindings to 36 | # the underlying Qt4 toolkit. 37 | #backend.qt4 : PyQt4 # PyQt4 | PySide 38 | 39 | # Note that this can be overridden by the environment variable 40 | # QT_API used by Enthought Tool Suite (ETS); valid values are 41 | # "pyqt" and "pyside". The "pyqt" setting has the side effect of 42 | # forcing the use of Version 2 API for QString and QVariant. 43 | 44 | # if you are running pyplot inside a GUI and your backend choice 45 | # conflicts, we will automatically try to find a compatible one for 46 | # you if backend_fallback is True 47 | #backend_fallback: True 48 | 49 | #interactive : False 50 | #toolbar : toolbar2 # None | toolbar2 ("classic" is deprecated) 51 | #timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris 52 | 53 | # Where your matplotlib data lives if you installed to a non-default 54 | # location. This is where the matplotlib fonts, bitmaps, etc reside 55 | #datapath : /home/jdhunter/mpldata 56 | 57 | 58 | ### LINES 59 | # See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more 60 | # information on line properties. 61 | #lines.linewidth : 1.0 # line width in points 62 | #lines.linestyle : - # solid line 63 | #lines.color : blue # has no affect on plot(); see axes.color_cycle 64 | lines.marker : o # the default marker 65 | #lines.markeredgewidth : 0.5 # the line width around the marker symbol 66 | #lines.markersize : 6 # markersize, in points 67 | #lines.dash_joinstyle : miter # miter|round|bevel 68 | #lines.dash_capstyle : butt # butt|round|projecting 69 | #lines.solid_joinstyle : miter # miter|round|bevel 70 | #lines.solid_capstyle : projecting # butt|round|projecting 71 | #lines.antialiased : True # render lines in antialised (no jaggies) 72 | 73 | ### PATCHES 74 | # Patches are graphical objects that fill 2D space, like polygons or 75 | # circles. See 76 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.patches 77 | # information on patch properties 78 | #patch.linewidth : 1.0 # edge width in points 79 | patch.facecolor : 0.5 80 | #patch.edgecolor : black 81 | #patch.antialiased : True # render patches in antialised (no jaggies) 82 | 83 | ### FONT 84 | # 85 | # font properties used by text.Text. See 86 | # http://matplotlib.org/api/font_manager_api.html for more 87 | # information on font properties. The 6 font properties used for font 88 | # matching are given below with their default values. 89 | # 90 | # The font.family property has five values: 'serif' (e.g. Times), 91 | # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), 92 | # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of 93 | # these font families has a default list of font names in decreasing 94 | # order of priority associated with them. 95 | # 96 | # The font.style property has three values: normal (or roman), italic 97 | # or oblique. The oblique style will be used for italic, if it is not 98 | # present. 99 | # 100 | # The font.variant property has two values: normal or small-caps. For 101 | # TrueType fonts, which are scalable fonts, small-caps is equivalent 102 | # to using a font size of 'smaller', or about 83% of the current font 103 | # size. 104 | # 105 | # The font.weight property has effectively 13 values: normal, bold, 106 | # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as 107 | # 400, and bold is 700. bolder and lighter are relative values with 108 | # respect to the current weight. 109 | # 110 | # The font.stretch property has 11 values: ultra-condensed, 111 | # extra-condensed, condensed, semi-condensed, normal, semi-expanded, 112 | # expanded, extra-expanded, ultra-expanded, wider, and narrower. This 113 | # property is not currently implemented. 114 | # 115 | # The font.size property is the default font size for text, given in pts. 116 | # 12pt is the standard value. 117 | # 118 | font.family : Arial 119 | #font.style : normal 120 | #font.variant : normal 121 | #font.weight : medium 122 | #font.stretch : normal 123 | # note that font.size controls default text sizes. To configure 124 | # special text sizes tick labels, axes, labels, title, etc, see the rc 125 | # settings for axes and ticks. Special text sizes can be defined 126 | # relative to font.size, using the following values: xx-small, x-small, 127 | # small, medium, large, x-large, xx-large, larger, or smaller 128 | #font.size : 12.0 129 | #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif 130 | #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif 131 | #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive 132 | #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy 133 | #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace 134 | 135 | ### TEXT 136 | # text properties used by text.Text. See 137 | # http://matplotlib.org/api/artist_api.html#module-matplotlib.text for more 138 | # information on text properties 139 | 140 | #text.color : black 141 | 142 | ### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex 143 | #text.usetex : False # use latex for all text handling. The following fonts 144 | # are supported through the usual rc parameter settings: 145 | # new century schoolbook, bookman, times, palatino, 146 | # zapf chancery, charter, serif, sans-serif, helvetica, 147 | # avant garde, courier, monospace, computer modern roman, 148 | # computer modern sans serif, computer modern typewriter 149 | # If another font is desired which can loaded using the 150 | # LaTeX \usepackage command, please inquire at the 151 | # matplotlib mailing list 152 | #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling 153 | # unicode strings. 154 | #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES 155 | # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP 156 | # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. 157 | # preamble is a comma separated list of LaTeX statements 158 | # that are included in the LaTeX document preamble. 159 | # An example: 160 | # text.latex.preamble : \usepackage{bm},\usepackage{euler} 161 | # The following packages are always loaded with usetex, so 162 | # beware of package collisions: color, geometry, graphicx, 163 | # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages 164 | # may also be loaded, depending on your font settings 165 | 166 | #text.dvipnghack : None # some versions of dvipng don't handle alpha 167 | # channel properly. Use True to correct 168 | # and flush ~/.matplotlib/tex.cache 169 | # before testing and False to force 170 | # correction off. None will try and 171 | # guess based on your dvipng version 172 | 173 | #text.hinting : 'auto' # May be one of the following: 174 | # 'none': Perform no hinting 175 | # 'auto': Use freetype's autohinter 176 | # 'native': Use the hinting information in the 177 | # font file, if available, and if your 178 | # freetype library supports it 179 | # 'either': Use the native hinting information, 180 | # or the autohinter if none is available. 181 | # For backward compatibility, this value may also be 182 | # True === 'auto' or False === 'none'. 183 | text.hinting_factor : 8 # Specifies the amount of softness for hinting in the 184 | # horizontal direction. A value of 1 will hint to full 185 | # pixels. A value of 2 will hint to half pixels etc. 186 | 187 | #text.antialiased : True # If True (default), the text will be antialiased. 188 | # This only affects the Agg backend. 189 | 190 | # The following settings allow you to select the fonts in math mode. 191 | # They map from a TeX font name to a fontconfig font pattern. 192 | # These settings are only used if mathtext.fontset is 'custom'. 193 | # Note that this "custom" mode is unsupported and may go away in the 194 | # future. 195 | #mathtext.cal : cursive 196 | #mathtext.rm : serif 197 | #mathtext.tt : monospace 198 | #mathtext.it : serif:italic 199 | #mathtext.bf : serif:bold 200 | #mathtext.sf : sans 201 | #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', 202 | # 'stixsans' or 'custom' 203 | #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern 204 | # fonts when a symbol can not be found in one of 205 | # the custom math fonts. 206 | 207 | #mathtext.default : it # The default font to use for math. 208 | # Can be any of the LaTeX font names, including 209 | # the special name "regular" for the same font 210 | # used in regular text. 211 | 212 | ### AXES 213 | # default face and edge color, default tick sizes, 214 | # default fontsizes for ticklabels, and so on. See 215 | # http://matplotlib.org/api/axes_api.html#module-matplotlib.axes 216 | #axes.hold : True # whether to clear the axes by default on 217 | #axes.facecolor : white # axes background color 218 | #axes.edgecolor : black # axes edge color 219 | #axes.linewidth : 1.0 # edge linewidth 220 | #axes.grid : False # display grid or not 221 | #axes.titlesize : large # fontsize of the axes title 222 | #axes.labelsize : medium # fontsize of the x any y labels 223 | #axes.labelweight : normal # weight of the x and y labels 224 | #axes.labelcolor : black 225 | #axes.axisbelow : False # whether axis gridlines and ticks are below 226 | # the axes elements (lines, text, etc) 227 | #axes.formatter.limits : -7, 7 # use scientific notation if log10 228 | # of the axis range is smaller than the 229 | # first or larger than the second 230 | #axes.formatter.use_locale : False # When True, format tick labels 231 | # according to the user's locale. 232 | # For example, use ',' as a decimal 233 | # separator in the fr_FR locale. 234 | #axes.formatter.use_mathtext : False # When True, use mathtext for scientific 235 | # notation. 236 | #axes.unicode_minus : True # use unicode for the minus symbol 237 | # rather than hyphen. See 238 | # http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes 239 | axes.color_cycle : 0.5, 4b6983, 990000, 267726, df421e, 887fa3 240 | #b, g, r, c, m, y, k # color cycle for plot lines 241 | # as list of string colorspecs: 242 | # single letter, long name, or 243 | # web-style hex 244 | 245 | #polaraxes.grid : True # display grid on polar axes 246 | #axes3d.grid : True # display grid on 3d axes 247 | 248 | ### TICKS 249 | # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick 250 | xtick.major.size : 4 # major tick size in points 251 | #xtick.minor.size : 2 # minor tick size in points 252 | #xtick.major.width : 0.5 # major tick width in points 253 | #xtick.minor.width : 0.5 # minor tick width in points 254 | #xtick.major.pad : 4 # distance to major tick label in points 255 | #xtick.minor.pad : 4 # distance to the minor tick label in points 256 | #xtick.color : k # color of the tick labels 257 | #xtick.labelsize : medium # fontsize of the tick labels 258 | xtick.direction : out # direction: in, out, or inout 259 | 260 | ytick.major.size : 4 # major tick size in points 261 | #ytick.minor.size : 2 # minor tick size in points 262 | #ytick.major.width : 0.5 # major tick width in points 263 | #ytick.minor.width : 0.5 # minor tick width in points 264 | #ytick.major.pad : 4 # distance to major tick label in points 265 | #ytick.minor.pad : 4 # distance to the minor tick label in points 266 | #ytick.color : k # color of the tick labels 267 | #ytick.labelsize : medium # fontsize of the tick labels 268 | ytick.direction : out # direction: in, out, or inout 269 | 270 | 271 | ### GRIDS 272 | #grid.color : black # grid color 273 | #grid.linestyle : : # dotted 274 | #grid.linewidth : 0.5 # in points 275 | #grid.alpha : 1.0 # transparency, between 0.0 and 1.0 276 | 277 | ### Legend 278 | legend.fancybox : True # if True, use a rounded box for the 279 | # legend, else a rectangle 280 | #legend.isaxes : True 281 | #legend.numpoints : 2 # the number of points in the legend line 282 | legend.fontsize : medium 283 | #legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border 284 | #legend.borderpad : 0.5 # border whitespace in fontsize units 285 | #legend.markerscale : 1.0 # the relative size of legend markers vs. original 286 | # the following dimensions are in axes coords 287 | #legend.labelsep : 0.010 # deprecated; the vertical space between the legend entries 288 | #legend.labelspacing : 0.5 # the vertical space between the legend entries in fraction of fontsize 289 | #legend.handlelen : 0.05 # deprecated; the length of the legend lines 290 | #legend.handlelength : 2. # the length of the legend lines in fraction of fontsize 291 | #legend.handleheight : 0.7 # the height of the legend handle in fraction of fontsize 292 | #legend.handletextsep : 0.02 # deprecated; the space between the legend line and legend text 293 | #legend.handletextpad : 0.8 # the space between the legend line and legend text in fraction of fontsize 294 | #legend.axespad : 0.02 # deprecated; the border between the axes and legend edge 295 | #legend.borderaxespad : 0.5 # the border between the axes and legend edge in fraction of fontsize 296 | #legend.columnspacing : 2. # the border between the axes and legend edge in fraction of fontsize 297 | #legend.shadow : False 298 | #legend.frameon : True # whether or not to draw a frame around legend 299 | 300 | ### FIGURE 301 | # See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure 302 | figure.figsize : 8, 8 # figure size in inches 303 | #figure.dpi : 80 # figure dots per inch 304 | figure.facecolor : white # figure facecolor; 0.75 is scalar gray 305 | #figure.edgecolor : white # figure edgecolor 306 | #figure.autolayout : False # When True, automatically adjust subplot 307 | # parameters to make the plot fit the figure 308 | 309 | # The figure subplot parameters. All dimensions are a fraction of the 310 | # figure width or height 311 | #figure.subplot.left : 0.125 # the left side of the subplots of the figure 312 | #figure.subplot.right : 0.9 # the right side of the subplots of the figure 313 | #figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure 314 | #figure.subplot.top : 0.9 # the top of the subplots of the figure 315 | #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots 316 | #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots 317 | 318 | ### IMAGES 319 | #image.aspect : equal # equal | auto | a number 320 | #image.interpolation : bilinear # see help(imshow) for options 321 | image.cmap : Spectral # gray | jet etc... 322 | #image.lut : 256 # the size of the colormap lookup table 323 | #image.origin : upper # lower | upper 324 | #image.resample : False 325 | 326 | ### CONTOUR PLOTS 327 | #contour.negative_linestyle : dashed # dashed | solid 328 | 329 | ### Agg rendering 330 | ### Warning: experimental, 2008/10/10 331 | #agg.path.chunksize : 0 # 0 to disable; values in the range 332 | # 10000 to 100000 can improve speed slightly 333 | # and prevent an Agg rendering failure 334 | # when plotting very large data sets, 335 | # especially if they are very gappy. 336 | # It may cause minor artifacts, though. 337 | # A value of 20000 is probably a good 338 | # starting point. 339 | ### SAVING FIGURES 340 | #path.simplify : True # When True, simplify paths by removing "invisible" 341 | # points to reduce file size and increase rendering 342 | # speed 343 | #path.simplify_threshold : 0.1 # The threshold of similarity below which 344 | # vertices will be removed in the simplification 345 | # process 346 | #path.snap : True # When True, rectilinear axis-aligned paths will be snapped to 347 | # the nearest pixel when certain criteria are met. When False, 348 | # paths will never be snapped. 349 | 350 | # the default savefig params can be different from the display params 351 | # Eg, you may want a higher resolution, or to make the figure 352 | # background white 353 | #savefig.dpi : 100 # figure dots per inch 354 | #savefig.facecolor : white # figure facecolor when saving 355 | #savefig.edgecolor : white # figure edgecolor when saving 356 | #savefig.format : png # png, ps, pdf, svg 357 | #savefig.bbox : standard # 'tight' or 'standard'. 358 | #savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight' 359 | 360 | # tk backend params 361 | #tk.window_focus : False # Maintain shell focus for TkAgg 362 | 363 | # ps backend params 364 | #ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 365 | #ps.useafm : False # use of afm fonts, results in small files 366 | #ps.usedistiller : False # can be: None, ghostscript or xpdf 367 | # Experimental: may produce smaller files. 368 | # xpdf intended for production of publication quality files, 369 | # but requires ghostscript, xpdf and ps2eps 370 | #ps.distiller.res : 6000 # dpi 371 | #ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 372 | 373 | # pdf backend params 374 | #pdf.compression : 6 # integer from 0 to 9 375 | # 0 disables compression (good for debugging) 376 | #pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) 377 | 378 | # svg backend params 379 | #svg.image_inline : True # write raster image data directly into the svg file 380 | #svg.image_noscale : False # suppress scaling of raster data embedded in SVG 381 | #svg.fonttype : 'path' # How to handle SVG fonts: 382 | # 'none': Assume fonts are installed on the machine where the SVG will be viewed. 383 | # 'path': Embed characters as paths -- supported by most SVG renderers 384 | # 'svgfont': Embed characters as SVG fonts -- supported only by Chrome, 385 | # Opera and Safari 386 | 387 | # docstring params 388 | #docstring.hardcopy = False # set this when you want to generate hardcopy docstring 389 | 390 | # Set the verbose flags. This controls how much information 391 | # matplotlib gives you at runtime and where it goes. The verbosity 392 | # levels are: silent, helpful, debug, debug-annoying. Any level is 393 | # inclusive of all the levels below it. If your setting is "debug", 394 | # you'll get all the debug and helpful messages. When submitting 395 | # problems to the mailing-list, please set verbose to "helpful" or "debug" 396 | # and paste the output into your report. 397 | # 398 | # The "fileo" gives the destination for any calls to verbose.report. 399 | # These objects can a filename, or a filehandle like sys.stdout. 400 | # 401 | # You can override the rc default verbosity from the command line by 402 | # giving the flags --verbose-LEVEL where LEVEL is one of the legal 403 | # levels, eg --verbose-helpful. 404 | # 405 | # You can access the verbose instance in your code 406 | # from matplotlib import verbose. 407 | #verbose.level : silent # one of silent, helpful, debug, debug-annoying 408 | #verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr 409 | 410 | # Event keys to interact with figures/plots via keyboard. 411 | # Customize these settings according to your needs. 412 | # Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '') 413 | 414 | #keymap.fullscreen : f # toggling 415 | #keymap.home : h, r, home # home or reset mnemonic 416 | #keymap.back : left, c, backspace # forward / backward keys to enable 417 | #keymap.forward : right, v # left handed quick navigation 418 | #keymap.pan : p # pan mnemonic 419 | #keymap.zoom : o # zoom mnemonic 420 | #keymap.save : s # saving current figure 421 | #keymap.quit : ctrl+w # close the current figure 422 | #keymap.grid : g # switching on/off a grid in current axes 423 | #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') 424 | #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') 425 | #keymap.all_axes : a # enable all axes 426 | 427 | # Control location of examples data files 428 | #examples.directory : '' # directory to look in for custom installation 429 | 430 | ###ANIMATION settings 431 | #animation.writer : ffmpeg # MovieWriter 'backend' to use 432 | #animation.codec : mp4 # Codec to use for writing movie 433 | #animation.bitrate: -1 # Controls size/quality tradeoff for movie. 434 | # -1 implies let utility auto-determine 435 | #animation.frame_format: 'png' # Controls frame format used by temp files 436 | #animation.ffmpeg_path: 'ffmpeg' # Path to ffmpeg binary. Without full path 437 | # $PATH is searched 438 | #animation.ffmpeg_args: '' # Additional arugments to pass to mencoder 439 | #animation.mencoder_path: 'ffmpeg' # Path to mencoder binary. Without full path 440 | # $PATH is searched 441 | #animation.mencoder_args: '' # Additional arugments to pass to mencoder 442 | -------------------------------------------------------------------------------- /screenshots/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daler/matplotlibrc/9fec2fc1adb03792f382c9b52aa7448b9fe03550/screenshots/default.png -------------------------------------------------------------------------------- /screenshots/ggplotish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daler/matplotlibrc/9fec2fc1adb03792f382c9b52aa7448b9fe03550/screenshots/ggplotish.png -------------------------------------------------------------------------------- /screenshots/probpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daler/matplotlibrc/9fec2fc1adb03792f382c9b52aa7448b9fe03550/screenshots/probpro.png -------------------------------------------------------------------------------- /screenshots/rlike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daler/matplotlibrc/9fec2fc1adb03792f382c9b52aa7448b9fe03550/screenshots/rlike.png -------------------------------------------------------------------------------- /showstyle.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from matplotlib import pyplot as plt 4 | import matplotlib 5 | import numpy as np 6 | import os 7 | import argparse 8 | HERE = os.path.dirname(__file__) 9 | available = os.listdir(os.path.join(HERE, 'rc')) 10 | 11 | ap = argparse.ArgumentParser() 12 | ap.add_argument('style', help='Which rc file to use. One of %s' % available) 13 | ap.add_argument('--plot', default='all', help='One of [scatter, hist, line, image], or ' 14 | 'a comma-separated list of a subset. Default is all.') 15 | ap.add_argument('-o', '--output', required=False, help='Render the plot to a file') 16 | args = ap.parse_args() 17 | 18 | matplotlib.rc_file(os.path.join(HERE, 'rc', args.style)) 19 | 20 | def lineplot(ax): 21 | x = np.linspace(0, 4*np.pi, 100) 22 | y = np.sin(x) 23 | for i, offset in enumerate((np.arange(5) / 3.)): 24 | ax.plot(x, y + offset, label='line %s' % i) 25 | ax.set_ylabel('y values') 26 | ax.set_xlabel('x values') 27 | ax.set_title('demo plot') 28 | ax.legend(loc='best') 29 | 30 | def scatterplot(ax): 31 | x = np.random.random(1000) 32 | y = np.random.random(1000) 33 | ax.scatter(x, y, label='scatter 1', 34 | c=matplotlib.rcParams['axes.color_cycle'][0], 35 | s=50) 36 | ax.set_ylabel('y values') 37 | ax.set_xlabel('x values') 38 | ax.set_title('demo plot') 39 | ax.legend(loc='best') 40 | 41 | def histogram(ax): 42 | x = np.random.poisson(4, 1000) 43 | ax.hist(x, label='hist 1') 44 | ax.set_ylabel('y values') 45 | ax.set_xlabel('x values') 46 | ax.set_title('demo plot') 47 | ax.legend(loc='best') 48 | 49 | fig = plt.figure(figsize=(11, 8)) 50 | 51 | def image(ax): 52 | ax.imshow(np.random.random((100, 100))) 53 | 54 | if 'line' in args.plot or args.plot == 'all': 55 | ax = fig.add_subplot(221) 56 | lineplot(ax) 57 | 58 | if 'scatter' in args.plot or args.plot == 'all': 59 | ax = fig.add_subplot(222) 60 | scatterplot(ax) 61 | 62 | if 'hist' in args.plot or args.plot == 'all': 63 | ax = fig.add_subplot(223) 64 | histogram(ax) 65 | 66 | if 'image' in args.plot or args.plot == 'all': 67 | ax = fig.add_subplot(224) 68 | image(ax) 69 | 70 | plt.tight_layout() 71 | if args.output: 72 | plt.savefig(args.output) 73 | else: 74 | plt.show() 75 | --------------------------------------------------------------------------------