Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved default color scheme for pylab #3075

Closed
ghost opened this issue Mar 17, 2013 · 6 comments
Closed

Improved default color scheme for pylab #3075

ghost opened this issue Mar 17, 2013 · 6 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost 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

@ghost
Copy link
Author

ghost commented Mar 22, 2013

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

@jreback
Copy link
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)

@ghost
Copy link
Author

ghost 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.

@jreback
Copy link
Contributor

jreback commented Mar 22, 2013

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

@ghost
Copy link
Author

ghost commented Mar 22, 2013

sold.

@ghost
Copy link
Author

ghost commented Mar 23, 2013

f6edd17

@ghost ghost closed this as completed Mar 23, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant