Skip to content

Python for healthcare modelling and data science

Snippets of Python code we find most useful in healthcare modelling and data science

  • Home
  • The Learning Hospital
  • Titanic Survival Machine Learning
  • GitHub(pdf, py, Jupyter)
  • Publications
  • Contact
  • YouTube

MatPlotLib

Simple xy line charts, and simple save to file

Scatter plot, and adding titles to axes

Bar charts

Pie charts, and adding a title

Histograms (and obtaining histogram data with NumPy)

Boxplots

Violin plots

3D wireframe and surface plots

Common modifications to charts

A simple heatmap

Adding contour lines to a heatmap

Creating a grid of subplots

Adding error bars to charts

Adding shaded areas to charts

Share this:

  • Twitter
  • Facebook

Like this:

Like Loading...
Blog at WordPress.com.
%d bloggers like this: