Comments (7)
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.
My bad, I missed that.
from probabilistic-programming-and-bayesian-methods-for-hackers.
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.
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.
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.
perfect! Thanks!
from probabilistic-programming-and-bayesian-methods-for-hackers.
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)
- Ch2, tensorflow import issue HOT 1
- definition of a continuous distribution in chap 1
- Bug in Ch6_priors_pymc3.ipynb
- Chapter 2 link to GreenhillWardSacks paper is broken. HOT 1
- Bug in Chapter 1 Pyro Version: Exponential Distribution Input HOT 2
- Port book to PyMC 4.0 HOT 7
- Chapter2 -- error in plot_artificial_sms_dataset() function
- Chpt #6; Example stock returns: ystockquote is not working
- Chapter 2 -- tfp.bijectors.AffineScalar is deprecated
- Chapter 2: description regarding the separation plot for Fig. 2.3.2
- Chapter 3 minor question
- Crack
- Chapter 6: Bayesian Multi-armed Bandits Code
- Chapter 1 TF2: from __future__ imports must occur at the beginning of the file
- TypeError (cycler) when trying to update matplotlib 3.5.2 with the custom styles HOT 2
- Ch3.type error at Example: Unsupervised Clustering using a Mixture Model HOT 2
- `pandas_datareader` error in chapter 6 HOT 1
- Chapter 1: Bug in plotting prior & posterior probabilities due to giving lw a string as an input HOT 1
- Recommend Turing.jl for tech stack
- chapter 1 - running on mac metal m2 with tfp - run into error InvalidArgumentError: 730 nodes in a cycle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probabilistic-programming-and-bayesian-methods-for-hackers.