root/ipython/branches/saw/sandbox/tconfig/mplrc.conf

Revision 2556, 13.7 kB (checked in by fperez, 3 years ago)

Improve error detection and messages for errors in subsections.

Line 
1 ### MATPLOTLIBRC FORMAT
2
3 # This is a sample matplotlib configuration file.  It should be placed
4 # in HOME/.matplotlib/matplotlibrc (unix/linux like systems) and
5 # C:\Documents and Settings\yourname\.matplotlib (win32 systems)
6 #
7 # By default, the installer will overwrite the existing file in the
8 # install path, so if you want to preserve your's, please move it to
9 # your HOME dir and set the environment variable if necessary.
10 #
11 # This file is best viewed in a editor which supports ini or conf mode
12 # syntax highlighting
13 #
14 # Blank lines, or lines starting with a comment symbol, are ignored,
15 # as are trailing comments.  Other lines must have the format
16 #
17 #   key = val   # optional comment
18 #
19 # val should be valid python syntax, just as you would use when setting
20 # properties using rcParams. This should become more obvious by inspecting
21 # the default values listed herein.
22 #
23 # Colors: for the color values below, you can either use
24 #  - a matplotlib color string, such as r, k, or b
25 #  - an rgb tuple, such as (1.0, 0.5, 0.0)
26 #  - a hex string, such as #ff00ff or ff00ff
27 #  - a scalar grayscale intensity such as 0.75
28 #  - a legal html color name, eg red, blue, darkslategray
29
30 #### CONFIGURATION BEGINS HERE
31
32 # numpy, Numeric or numarray
33 numerix = 'numpy'
34
35 # True to use external maskedarray module instead of numpy.ma; this is a
36 # temporary setting for testing maskedarray.
37 maskedarray = False
38
39 # see http://matplotlib.sourceforge.net/interactive.html
40 interactive = False
41
42 # None | classic | toolbar2
43 toolbar = 'toolbar2'
44
45 # a pytz timezone string, eg US/Central or Europe/Paris
46 timezone = 'UTC'
47
48 # Where your matplotlib data lives if you installed to a non-default
49 #location.  This is where the matplotlib fonts, bitmaps, etc reside
50 datapath = '/home/fperez/.matplotlib'
51
52 #bogus = 1
53 #[bogus_section]
54 #  foo = 1
55
56 [backend]
57    
58     #[[bogus_subsection]]
59     #  bar  =1
60    
61     # 'GTKAgg', 'GTKCairo', 'QtAgg', 'Qt4Agg', 'TkAgg', 'Agg',
62     # 'Cairo', 'PS', 'PDF', 'SVG'
63     use = 'Qt4Agg'
64    
65     [[cairo]]
66         # png, ps, pdf, svg
67         format = 'png'
68    
69     [[tk]]
70         # Maintain shell focus for TkAgg
71         window_focus = False
72        
73         # tk sets PYTHONINSEPCT
74         pythoninspect = False
75    
76     [[ps]]
77         # auto, letter, legal, ledger, A0-A10, B0-B10
78         papersize = 'letter'
79        
80         # use of afm fonts, results in smaller files
81         useafm = False
82        
83         # 3 (Type3) or 42 (TrueType)
84         fonttype = 3
85        
86         [[[distiller]]]
87             # can be: None, ghostscript or xpdf
88             # xpdf intended for production of publication quality
89             # files, but requires ghostscript, xpdf and ps2eps
90             use = None
91            
92             # distiller resolution, dpi
93             resolution = 6000.0
94    
95     [[pdf]]
96         # integer from 0 to 9
97         # 0 disables compression (good for debugging)
98         compression = 6
99        
100         # 3 (Type3) or 42 (TrueType)
101         fonttype = 3
102    
103     [[svg]]
104         # write raster image data directly into the svg file
105         image_inline = True
106        
107         # suppress scaling of raster data embedded in SVG
108         image_noscale = False
109        
110         # embed character outlines in the SVG file
111         embed_chars = False
112
113 [lines]
114     # See http://matplotlib.sourceforge.net/matplotlib.lines.html for more
115     # information on line properties.
116    
117     # line width in points
118     linewidth = 1.0
119    
120     # '-','--','-.', ':', 'steps', '', ' ', or None
121     linestyle = '-'
122    
123     color = 'blue'
124    
125     # The default marker: None, 'o', '.', ',', '^', 'v', '<', '>', 's', '+',
126     # 'x', 'D', 'd', '1', '2', '3', '4', 'h', 'H', 'p', '|', '_'
127     marker = None
128    
129     # the line width around the marker symbol
130     markeredgewidth = 0.5
131    
132     # markersize, in points
133     markersize = 6.0
134    
135     # miter|round|bevel
136     dash_joinstyle = 'miter'
137     solid_joinstyle = 'miter'
138    
139     # butt|round|projecting
140     dash_capstyle = 'butt'
141     solid_capstyle = 'projecting'
142    
143     # render antialised lines (no jaggies)
144     antialiased = True
145
146 [patch]
147     # Patches are graphical objects that fill 2D space, like polygons or
148     # circles.  See
149     # http://matplotlib.sourceforge.net/matplotlib.patches.html for more
150     # information on patch properties
151    
152     # edge width in points
153     linewidth = 1.0
154    
155     facecolor = 'blue'
156     edgecolor = 'black'
157    
158     # render antialised lines (no jaggies)
159     antialiased = True
160
161 [font]
162     # font properties used by text.Text.  See
163     # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more
164     # information on font properties.  The 6 font properties used for font
165     # matching are given below with their default values.
166     #
167     # The font.family property has five values: 'serif' (e.g. Times),
168     # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
169     # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier).  Each of
170     # these font families has a default list of font names in decreasing
171     # order of priority associated with them.
172     family = 'sans-serif'
173    
174     # The font.style property has three values: normal (or roman), italic
175     # or oblique.  The oblique style will be used for italic, if it is not
176     # present.
177     style = 'normal'
178    
179     # The font.variant property has two values: normal or small-caps.  For
180     # TrueType fonts, which are scalable fonts, small-caps is equivalent
181     # to using a font size of 'smaller', or about 83% of the current font
182     # size.
183     variant = 'normal'
184    
185     # The font.weight property has effectively 13 values= normal, bold,
186     # bolder, lighter, 100, 200, 300, ..., 900.  Normal is the same as
187     # 400, and bold is 700.  bolder and lighter are relative values with
188     # respect to the current weight.
189     weight = 'normal'
190    
191     # The font.stretch property has 11 values: ultra-condensed,
192     # extra-condensed, condensed, semi-condensed, normal, semi-expanded,
193     # expanded, extra-expanded, ultra-expanded, wider, and narrower.  This
194     # property is not currently implemented.
195     stretch = 'normal'
196    
197     # The font.size property is the default font size for text, given in pts.
198     # 12pt is the standard value.
199     #
200     # Note that font.size controls default text sizes.  To configure
201     # special text sizes tick labels, axes, labels, title, etc, see the rc
202     # settings for axes and ticks. Special text sizes can be defined
203     # relative to font.size, using the following values: xx-small, x-small,
204     # small, medium, large, x-large, xx-large, larger, or smaller
205     size = 12.0
206    
207     # A search list for each of the font families
208     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']
209     sans_serif = ['Bitstream Vera Sans', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', 'sans-serif']
210     cursive = ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive']
211     fantasy = ['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact', 'Western', 'fantasy']
212     monospace = ['Bitstream Vera Sans Mono', 'Andale Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace']
213
214 [text]
215     # text properties used by text.Text.  See
216     # http://matplotlib.sourceforge.net/matplotlib.text.html for more
217     # information on text properties
218     color = 'black'
219    
220     ### LaTeX customizations
221     # See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex
222    
223     # use latex for all text handling. The following fonts
224     # are supported through the usual rc parameter settings:
225     # new century schoolbook, bookman, times, palatino,
226     # zapf chancery, charter, serif, sans-serif, helvetica,
227     # avant garde, courier, monospace, computer modern roman,
228     # computer modern sans serif, computer modern typewriter
229     # If another font is desired which can loaded using the
230     # LaTeX \usepackage command, please inquire at the
231     # matplotlib mailing list
232     usetex = False
233    
234     [[latex]]
235         # use "ucs" and "inputenc" LaTeX packages for
236         # handling unicode strings.
237         unicode = False
238        
239         # IMPROPER USE OF THE PREAMBLE WILL LEAD TO LATEX
240         # FAILURES AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT
241         # ASK FOR HELP IF THIS FEATURE DOES NOT DO WHAT YOU
242         # EXPECT IT TO.
243         # preamble is a comma separated list of LaTeX
244         # statements that are included in the LaTeX document
245         # preamble.
246         # An example:
247         # text.latex.preamble = ["\usepackage{bm}", "\usepackage{euler}"]
248         # The following packages are always loaded with usetex,
249         # so beware of package collisions: color, geometry,
250         # graphicx, type1cm, textcomp. Adobe Postscript
251         # (PSSNFS) font packages may also be loaded, depending
252         # on your font settings
253         preamble = []
254        
255         # some versions of dvipng don't handle alpha channel properly.
256         # Use True to correct and flush ~/.matplotlib/tex.cache before
257         # testing
258         dvipnghack = False
259
260 [axes]
261     # default face and edge color, default tick sizes,
262     # default fontsizes for ticklabels, and so on.  See
263     # http://matplotlib.sourceforge.net/matplotlib.axes.html#Axes
264    
265     # whether to clear the axes by default
266     hold = True
267    
268     # axes background color
269     facecolor = 'white'
270    
271     # axes edge color
272     edgecolor = 'black'
273    
274     # edge linewidth
275     linewidth = 1.0
276    
277     # display grid on regular or polar axes
278     grid = False
279     polargrid = True
280    
281     # fontsize of the axes title and labels
282     titlesize = 'large'
283     labelsize = 'medium'
284    
285     labelcolor = 'black'
286    
287     # whether axis gridlines and ticks are below the axes elements
288     # (lines, text, etc)
289     axisbelow = False
290    
291     [[formatter]]
292         # use scientific notation if log10 of the axis range is smaller
293         # than the first or larger than the second
294         limits = [-7.0, 7.0]
295
296 [xticks]
297     # see http://matplotlib.sourceforge.net/matplotlib.axis.html#Ticks
298     color = 'k'
299     labelsize = 'small'
300    
301     # direction: in or out
302     direction = 'in'
303    
304     [[major]]
305         # in points
306         size = 4.0
307         pad = 4.0
308    
309     [[minor]]
310         # in points
311         size = 2.0
312         pad = 4.0
313
314 [yticks]
315     color = 'k'
316     labelsize = 'small'
317    
318     # direction: in or out
319     direction = 'in'
320    
321     [[major]]
322         # in points
323         size = 4.0
324         pad = 4.0
325    
326     [[minor]]
327         # in points
328         size = 2.0
329         pad = 4.0
330
331 [grid]
332     color = 'black'
333    
334     # '-','--','-.', ':', 'steps', '', ' ', or None
335     linestyle = ':'
336    
337     linewidth = 0.5
338
339 [legend]
340     isaxes = True
341    
342     # the number of points in the legend line
343     numpoints = 2
344    
345     fontsize = 'medium'
346    
347     # the fractional whitespace inside the legend border
348     pad = 0.20000000000000001
349    
350     # the relative size of legend markers vs. original
351     # the following dimensions are in axes coords
352     markerscale = 1.0
353    
354     # the vertical space between the legend entries
355     labelsep = 0.01
356    
357     # the length of the legend lines
358     handlelen = 0.050000000000000003
359    
360     # the space between the legend line and legend text
361     handletextsep = 0.02
362    
363     # the border between the axes and legend edge
364     axespad = 0.02
365    
366     # Show a shadow behind the legend
367     shadow = False
368
369 [figure]
370     # See http://matplotlib.sourceforge.net/matplotlib.figure.html#Figure
371    
372     # figure size in inches
373     figsize = [8.0, 6.0]
374    
375     # figure dots per inch
376     dpi = 80.0
377    
378     # figure face and edge colors; '0.75' is scalar gray
379     facecolor = '0.75'
380     edgecolor = 'white'
381    
382     [[subplot]]
383         # The figure subplot parameters.  All dimensions are fraction of the
384         # figure width or height
385         left = 0.125
386         right = 0.90000000000000002
387         bottom = 0.10000000000000001
388         top = 0.90000000000000002
389        
390         # the amount of width or height reserved for blank space between
391         #subplots
392         wspace = 0.20000000000000001
393         hspace = 0.20000000000000001
394
395
396 [image]
397     # equal | auto | a number
398     aspect = 'equal'
399    
400     # see help(imshow) for options
401     interpolation = 'bilinear'
402     cmap = 'jet'
403    
404     # the size of the colormap lookup table
405     lut = 256
406    
407     # 'lower' or 'upper'
408     origin = 'upper'
409
410
411 [contour]
412     # 'dashed' or 'solid'
413     negative_linestyle = 'dashed'
414
415 [savefig]
416     # Saving figures
417     # the default savefig params can be different for the GUI backends.
418     # Eg, you may want a higher resolution, or to make the figure
419     # background white
420    
421     # figure dots per inch
422     dpi = 100.0
423    
424     # figure face and edge colors
425     facecolor = 'white'
426     edgecolor = 'white'
427
428 [verbose]
429     # Set the verbose flags.  This controls how much information
430     # matplotlib gives you at runtime and where it goes.  The verbosity
431     # levels are: silent, helpful, debug, debug-annoying.  Any level is
432     # inclusive of all the levels below it.  If you setting is debug,
433     # you'll get all the debug and helpful messages.  When submitting
434     # problems to the mailing-list, please set verbose to helpful or debug
435     # and paste the output into your report.
436     #
437     # The fileo gives the destination for any calls to verbose.report.
438     # These objects can a filename, or a filehandle like sys.stdout.
439     #
440     # You can override the rc default verbosity from the command line by
441     # giving the flags --verbose-LEVEL where LEVEL is one of the legal
442     # levels, eg --verbose-helpful.
443     #
444     # You can access the verbose instance in your code
445     #   from matplotlib import verbose.
446    
447     # 'silent', 'helpful', 'debug', or 'debug-annoying'
448     level = 'silent'
449    
450     # a log filename, 'sys.stdout' or 'sys.stderr'
451     fileo = 'sys.stdout'
Note: See TracBrowser for help on using the browser.