Improved default color scheme for pylab #3075

Closed
y-p opened this Issue Mar 17, 2013 · 6 comments

Comments

Projects
None yet
2 participants
Contributor

y-p commented Mar 17, 2013

https://gist.github.com/huyng/816622

a

s={'axes.axisbelow': True,
 'axes.color_cycle': ['#348ABD',
  '#7A68A6',
  '#A60628',
  '#467821',
  '#CF4457',
  '#188487',
  '#E24A33'],
 'axes.edgecolor': '#bcbcbc',
 'axes.facecolor': '#eeeeee',
 'axes.grid': True,
 'axes.labelcolor': '#555555',
 'axes.labelsize': 'large',
 'axes.linewidth': 1.0,
 'axes.titlesize': 'x-large',
 'figure.edgecolor': 'white',
 'figure.facecolor': 'white',
 'figure.figsize': (6.0, 4.0),
 'figure.subplot.hspace': 0.5,
 'font.family': 'monospace',
 'font.monospace': ['Andale Mono',
  'Nimbus Mono L',
  'Courier New',
  'Courier',
  'Fixed',
  'Terminal',
  'monospace'],
 'font.size': 10,
 'interactive': True,
 'keymap.all_axes': ['a'],
 'keymap.back': ['left', 'c', 'backspace'],
 'keymap.forward': ['right', 'v'],
 'keymap.fullscreen': ['f'],
 'keymap.grid': ['g'],
 'keymap.home': ['h', 'r', 'home'],
 'keymap.pan': ['p'],
 'keymap.save': ['s'],
 'keymap.xscale': ['L', 'k'],
 'keymap.yscale': ['l'],
 'keymap.zoom': ['o'],
 'legend.fancybox': True,
 'lines.antialiased': True,
 'lines.linewidth': 1.0,
 'patch.antialiased': True,
 'patch.edgecolor': '#EEEEEE',
 'patch.facecolor': '#348ABD',
 'patch.linewidth': 0.5,
 'toolbar': 'toolbar2',
 'xtick.color': '#555555',
 'xtick.direction': 'in',
 'xtick.major.pad': 6.0,
 'xtick.major.size': 0.0,
 'xtick.minor.pad': 6.0,
 'xtick.minor.size': 0.0,
 'ytick.color': '#555555',
 'ytick.direction': 'in',
 'ytick.major.pad': 6.0,
 'ytick.major.size': 0.0,
 'ytick.minor.pad': 6.0,
 'ytick.minor.size': 0.0}

matplotlib.RcParams.update(s)

b

Just need to figure out a way not to clobber user's custom matplotlibrc

Contributor

y-p commented Mar 22, 2013

@jreback, this is ready to merge except I'm not sure about the option name. what do you think?

Contributor

jreback commented Mar 22, 2013

how about pd.option.display.style='mpl' (and then allow style=None to be what you call False now)

Contributor

y-p commented Mar 22, 2013

better, but the option name should indicate that it's mpl specific.
"style" may have several possible meanings in the future.

Contributor

jreback commented Mar 22, 2013

I guess pd.option.display.mpl_style='default'

Contributor

y-p commented Mar 22, 2013

sold.

Contributor

y-p commented Mar 23, 2013

y-p closed this Mar 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment