Giter Club home page Giter Club logo

Comments (7)

CamDavidsonPilon avatar CamDavidsonPilon commented on May 19, 2024

Yes, I did leave a note on the README (admittedly near the bottom) about this. What I'll do is, at the first plot in Chapter 1, leave a note detailing how to replicate the graph's styles using the matplotlibrc file.

(btw the matplotlibrc file I use is the the styles/ directory)

from probabilistic-programming-and-bayesian-methods-for-hackers.

 avatar commented on May 19, 2024

My bad, I missed that.

from probabilistic-programming-and-bayesian-methods-for-hackers.

 avatar commented on May 19, 2024

It's possible to handle this in a similar way to the css style hack you use,

mpl.rcParams.update(myDictOfOptions)

from probabilistic-programming-and-bayesian-methods-for-hackers.

CamDavidsonPilon avatar CamDavidsonPilon commented on May 19, 2024

Not your bad, more onus is on me to provide details about replication. Thanks for informing me of this oversight!

from probabilistic-programming-and-bayesian-methods-for-hackers.

 avatar commented on May 19, 2024

I added this to another project recently:

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)

You could put that in a json file, if you don't want the noise in the nb.
it's the same style you use.

from probabilistic-programming-and-bayesian-methods-for-hackers.

CamDavidsonPilon avatar CamDavidsonPilon commented on May 19, 2024

perfect! Thanks!

from probabilistic-programming-and-bayesian-methods-for-hackers.

 avatar commented on May 19, 2024

There's probably a way to store this in the notebook itself as cell metadata,
but I don't want to bug Carreau again.

from probabilistic-programming-and-bayesian-methods-for-hackers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.